How about using special extensions to represent the file types? Visual DynAPI Project: *.vdp (or .vdf, .vde, etc) Visual DynAPI Widget: *.vdw (or .vdd, .vdh, .vdc, etc)
The .vdw could be used to store the widget's properties, functions, etc. I guess wou could use SODA to easily create such a file, agree? IMO it's very easy and very expandable: widgetInfo ={ name:'Widget Name', version: '1.0.0', description:'Widget\'s Description', libraryname:'dynapi.gui.MyWidget', functions: { myname1:['arguments','description'], myname2:['arguments','description'] }, properties: { myproperty1:'description', myproperty2:'description', }, events:{ myevent1:['arugments','description'], } } This js object can then be converted into a SODA format and then saved into a .vdw file. The vde can then be used to read the .vdw files to get information about the widget. The vde might have to include something like a widgets.js file and widgets/ folder which stores the names of the .vdw files widgets/mywidget.vdw widgets/widgets.js inside widgets.js we could have the following: vde.RegisterWidget('MyWidget','mywidget.vdw'); vde.RegisterWidget('MyWidget2','mywidget2.vdw'); The vde could then have a section that list all registered widgets. From this list the user can then select the widgets that that would like to appear inside the vde's toolbox (or widget) box. It's at this point that the .vdw files are loaded and the information stored inside the vde. With this method the vde could list any number of available widgets but only the ones used inside the toolbox are loaded. The toolbox could be placed at the left-hand side of the vde to display the selected widgets. The user could then click on the widget and then click and drag an area inside the document to create the widget. At this point the widget is created and the cover layer is then added to it to prevent events from been triggered -- Raymond Irving --- Doug Melvin <[EMAIL PROTECTED]> wrote: > Possible a seperate "descripter" file. > These would mean not loading the function outside of > the VDE.. > > Like: DynTree.js and DynTree.Descriptor.js > and put the descriptors in a seperate folder for > managability. > > ----- Original Message ----- > From: "Daniel Tiru" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, October 24, 2003 6:19 AM > Subject: RE: [Dynapi-Dev] VDE-0.1rc3 release > > > > Hi again! > > > > What i was thinking about is that we maybee make a > separate "function" > > for each widget that is implemented to the VDE > returning the things > > needed in a nice format. > > > > Like > > getWidgetInfo(mywidget) { > > // returns two arrays or something with all the > arguments > > // needed for the constructor and one with the > methods for the > > // widget. Maybee even some general info on what > the widget is? > > } > > > > Is this possible to do and how to do it, i dont > know the answer but > > myabee this solution can be a quite quick one? > > > > I agree with the adding of this project to the > cvs. > > > > Regards > > Daniel > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On > Behalf Of Raymond > > Irving > > Sent: den 23 oktober 2003 22:12 > > To: [EMAIL PROTECTED] > > Subject: Re: [Dynapi-Dev] VDE-0.1rc3 release > > > > > > > > See below: > > > > --- Michael Bystrom <[EMAIL PROTECTED]> > > wrote: > > > > > > I also wrote a VDE wrapper that lets you import > the > > > saved vde xml file > > > directly into the dynapi, and it will recreate > the > > > project for you. > > > > Not sure how this works but will look into it. > > > > > I also gave Spock a little face lift so that it > > > doesn't feel left out. > > > > Ok, but now I can hardly see the button outlines. > > > > > If anybody got Ideas for the add event or add > widget > > > please let me know. > > > > Add widget should be the last thing that we do. > It's > > very complex and will require us to design a some > kind > > of header file as Daniel had suggested. > > > > I think add events to widgets should be much > easier to > > do. Here how I think it can be done: > > > > 1) Double click on a layer to open up a code > window. > > This window will contain a drop down menu of the > > various events. > > > > 2) The user then selects the event and then enter > som > > code in a text box below the drop down menu and > then > > click ok. This should then save the text into some > > events collection object. > > > > > And please help debug on windows > > > > Will do. > > > > Have you ever tried creating a very large project > with > > the vde? You should try it and then try saving and > > loading the project to how it performs performs. > > > > SODA takes a longer time to convert a js object > into > > string and back than it would a js array. Where > > possible it's best to use arrays. For the > DataSource > > class I had to use to following format inorder to > get > > better performance when working with lots of data. > > > > record={ > > dataRowIndex:0, > > dataRowCount:4, > > fieldnames:['id','fname'], > > fieldvalues:[ > > [1,'mary'], > > [1,'jane'], > > [1,'john'], > > [1,'paul'], > > ] > > } > > > > > > -- > > Raymond Irving > > > > > http://www.michaelbystrom.com/download.php > > > (at the bottom of the page VDE-0.1rc3) > > > > > > Michael > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by: The SF.net > > > Donation Program. > > > Do you like what SourceForge.net is doing for > the > > > Open > > > Source Community? Make a contribution, and help > us > > > add new > > > features and functionality. Click here: > http://sourceforge.net/donate/ > > > _______________________________________________ > > > Dynapi-Dev mailing list > > > [EMAIL PROTECTED] > > > > > > http://www.mail-archive.com/[EMAIL PROTECTED]/ > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product > search > > http://shopping.yahoo.com > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: The SF.net > Donation Program. Do you > > like what SourceForge.net is doing for the Open > Source Community? Make > > a contribution, and help us add new features and > functionality. Click > > here: http://sourceforge.net/donate/ > > _______________________________________________ > > Dynapi-Dev mailing list > > [EMAIL PROTECTED] > > > http://www.mail-archive.com/[EMAIL PROTECTED]/ > > > > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: The SF.net > Donation Program. > > Do you like what SourceForge.net is doing for the > Open > > Source Community? Make a contribution, and help > us add new > > features and functionality. Click here: > http://sourceforge.net/donate/ > > _______________________________________________ > > Dynapi-Dev mailing list > > [EMAIL PROTECTED] > > > http://www.mail-archive.com/[EMAIL PROTECTED]/ > === message truncated === __________________________________ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ ------------------------------------------------------- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ _______________________________________________ Dynapi-Dev mailing list [EMAIL PROTECTED] http://www.mail-archive.com/[EMAIL PROTECTED]/