|
From: Michael B. <mi...@mi...> - 2003-10-22 20:45:24
|
Raymond,
Exactly what I needed :)
I've implemented this SODA feature and it looks like it's working fine ( I
had to change some of the copy and paste methods), I will just do some more
fine tuning and then I upload it with some other fixes.
Cheers
Michael
Den 03-10-21 18.50, skrev "Raymond Irving" <xw...@ya...>:
>
> Wow! Visual DynAPI Editor is here and it's looking
> real good!
>
>> From my test it works in Mozilla 1.4 on windows!
>
> Lot's of stuff to comment on but I'll only focus on
> the save and load feature for now:
>
> Why not use the SODA format to convert a JavaScript
> object into XML and then save that format to disk?
> When loading all you have to do is to use FileReader
> and load the project then convert the info back into a
> JavaScript object using SODA.
>
> Example:
>
> p = {}; // new project object
> p.name = "VDE Demo";
> p.layers = []; // collection, etc
> p.whatever_goes_here = some_value_here;
>
> // convert js object into XML format
> data = IOElement.ws_Var2SODA(p);
> ....
> // save the data to disk
> .....
>
> // load data using FileReader
> ...
> // convert data back to js object
> p = IOElement.ws_SODA2Var(data);
> ...
> // now you can use p as you would any js object
>
>
> What do you think?
>
>
> --
> Raymond Irving
>
>
>
>
>
>
>
> --- Michael Bystrom <mi...@mi...>
> wrote:
>> Hello List Folk,
>>
>> Well I've finished my first version of the VDE
>> (Visual DynAPI Editor) I've
>> changed the name as Raymond suggested. :) has a nice
>> ring to it.
>>
>> Well there is a lot of things to talk about. So here
>> goes.
>>
>>
>> THIS IS ONLY TESTED IN MAC MOZILLA.
>> And is working fine. So now you know.
>>
>>
>> I don?t think we should bother with a NS4 or IE4
>> support.
>> Just concentrate on making it stabile and fast on
>> fully DOM browsers.
>>
>>
>> I know that VDE does not work in Mac ie5 and I don't
>> think it will ever....
>>
>> 1) Almost all of the main code is rewritten.
>> 2) I changed the way that the layers are created
>> using a marker script.
>> Click on the add button, click on the grid and drag
>> the maker to the size
>> you'd like. Also the it will automatically use the
>> clicked layer as the
>> parent layer.
>> 3) To go in to edit mode click on the layer and hold
>> still for 400 ms and
>> you are in edit mode and do your thing then simple
>> click will reset.
>> 4) delete is in checkbox mode so each layer you
>> click will be deleted (and
>> childern) checkbox will reset when you click on it
>> again.
>> 5) add HTML/content is also in checkbox mode
>> 6) lock is also in checkbox mode
>> 7) copy is in semi checkbox mode click on the button
>> then click on the
>> layer(s) you want to copy the click on the paste
>> button and then on
>> Grid/layers you want the copy to past to.
>> 8) Move layers are in checkbox mode click button,
>> then layer, then where you
>> want to move it to Layers/Grid ( I will change this
>> so that you can add the
>> layers at a later time)
>> 9) visibility is in checkbox mode '
>> 10) link mode is in checkbox mode click on the
>> layers you want to link
>> To remove or add click on the button and hold down
>> for 400ms and you will be
>> in edit mode then you can remove or add. The first
>> layer you click in edit
>> mode will be the parent and the rest will be linked
>> of removed from/to this
>> layer. Linked layers will not copy to paste. And I
>> don't know if it should
>> allow a link to children outside it's parent layer.
>>
>> 11) I have not done save, preview ,save HTML ,save
>> DVE because I would like
>> a new save system. Here is my idea I would like to
>> use a XML file as the
>> save file. Then maybe the dynapi and VDE could
>> import as a premade widget
>> sorta like this.
>>
>> dynapi.importXML("mywebsite.xml")
>>
>> And then dynapi creates the project without any
>> code. This is how the IOS
>> will load all it's components. So I ask you if you
>> have ideas or anything
>>
>> 12) I set up a relative x,y,w,h system so it the
>> boxes where you would write
>> the size and location you can now use %. "50%" etc..
>>
>> 13) color working but I'm not done with it...
>> 14) Image is not working yet.
>> 15) I included the new spock debuger as main info
>> window. note that I will
>> probably change some of the info structure, It's
>> sorta in debug mode but I
>> tried to remove all the stupid stuff that I use :)
>>
>> That?s it for now. Please let me know what you think
>> and PLEASE help me
>> debug it on windows. If you have a code question
>> mail the list and I'll try
>> to answer it. But please do USE Spock, if you try to
>> trace a object to see
>> what it does use use ex:
>>
>> dump( o.getX() )
>>
>>
>> IOS library is also done but I'll have not collected
>> all the examples and
>> code but I will have that for you in a day or so.
>>
>> You can download it here (at the bottom of the page)
>> http://www.michaelbystrom.com/download.php
>>
>> Have fun.
>> Michael
|