1 //<Script type="text/javascript">
5 console = imports.console;
6 Builder = imports['Builder.js']
7 var _this = Builder.Window;
12 * right - top = preview - webkit?
13 * right - bottom = soruceview
15 * Palete... as toolbar??? - changes depending on what you pick?
17 * Not sure how to do Gtk version.. - our preview might be fun... = probably have to do a gtkhbox.. or something..
26 Seed.print('window loaded');
28 function create() // parent?
33 xnsid: 'Builder.Window',
37 type: Gtk.WindowType.TOPLEVEL,
39 'delete-event' : function (widget, event) {
42 destroy : function (widget) {
45 _new : function(self) {
48 _rendered : function()
50 Builder.MidPropTree._win.hideWin();
51 Builder.RightPalete._palete.hide();
55 var pr = new Builder.Provider.Project.Roo({
56 file : "/home/alan/test.json"
62 //console.log("loaded");
65 Builder.projects.push(pr);
66 Builder.LeftProjectTree._model.loadProject(pr);
67 Builder.LeftProjectTree._expander.el.set_expanded(true);
78 set_border_width : [ 0 ],
79 set_title : [ 'Application Builder' ],
80 set_default_size: [900, 600],
102 set_position : [ 400 ]
105 _new : function(self) {
110 // in my original design - the child elements get loaded by a 'module loader...',
130 set_position : [ 300 ]
138 cls : Builder.LeftTopPanel
153 packing : [ 'pack_start', false, true, 0 ],
158 cls : Builder.LeftProps
166 cls : Builder.LeftPanel
177 cls : Builder.MidPropTree
196 set_position : [ 300 ]
206 cls : Builder.RightBrowser
212 packing : ['pack_start', false , false ],
214 //set_position : [ 300 ]
217 // Builder.ProjectTree.create()
221 label : 'Console Goes here'
238 cls : Builder.RightEditor
251 cls : Builder.RightPalete