5 "path" : "/home/alan/gitlive/app.Builder.js/src/Builder4/MainWindow.bjs",
11 "delete_event" : " ( event) => {\n return false;\n}",
12 "destroy" : "() => {\n Xcls_MainWindow.singleton().no_windows--;\n \n if (Xcls_MainWindow.singleton().no_windows < 1) {\n\n Gtk.main_quit();\n }\n}",
13 "show" : " ( ) => {\n // hide the file editing..\n \n //this.hideViewEditing();\n}"
15 "| void initChildren" : " () {\n // this needs putting in a better place..\n this.windowstate = new WindowState(this);\n \n\n //w.el.show_all();\n var tl = new Clutter.Timeline(6000);\n tl.set_repeat_count(-1);\n tl.start();\n tl.ref();\n\n this.children_loaded = true;\n\n\n\n\n}\n",
16 "# int no_windows" : 1,
17 "# Project.Project project" : "null",
18 "# bool children_loaded" : false,
20 "default_height" : 500,
21 "# Xcls_WindowLeftProjects left_projects" : "null",
23 "# Xcls_WindowRooView window_rooview" : "null",
24 "default_width" : 800,
26 "$ type" : "Gtk.WindowType.TOPLEVEL",
27 "# Xcls_WindowLeftTree left_tree" : "null",
28 "# Editor code_editor" : "null",
29 "# Xcls_DialogNewComponent new_file_dialog" : "null",
30 "# Xcls_ProjectSettings projectsettings" : "null",
31 "| void setTitle" : " (string str) {\n this.el.set_title(this.title + \" - \" + str);\n}\n",
32 "| void show" : "() {\n this.left_tree =new Xcls_WindowLeftTree();\n _this.vbox.el.pack_start(this.left_tree.el,true, true,0);\n this.el.show_all();\n\n}",
34 "# Xcls_ClutterFiles clutterfiles" : "null",
35 "# Xcls_LeftProps left_props" : "null",
36 "# Xcls_RightPalete rightpalete" : "null",
37 "# string title" : "\"Application Builder\"",
38 "# ValaProjectSettings vala_projectsettings" : "null",
39 "# Xcls_WindowAddProp add_props" : "null",
40 "* init" : " this.state = \"files\";\n\t \n //this.el.show_all();\n \n ",
41 "# WindowState windowstate" : "null",
42 "# Xcls_GtkView window_gladeview" : "null",
49 "$ homogeneous" : false,
54 "* pack" : "pack_end,true,true,0",
55 "# int lastWidth" : 0,
67 "* pack" : "pack_start,false,true,0",
94 "size_allocate" : " ( alloc) => {\n _this.windowstate.resizeCanvasElements(alloc); \n \n}"
96 "id" : "clutterembed",
97 "* init" : " var stage = this.el.get_stage();\n stage.set_background_color( Clutter.Color.from_string(\"#000\"));\n \n \n",
99 "* pack" : "pack_start,true,true,0",
100 "$ xns" : "GtkClutter",
104 "* init" : "{\n \n \n this.el.add_constraint(\n new Clutter.AlignConstraint(\n _this.clutterembed.el.get_stage(), \n Clutter.AlignAxis.X_AXIS,\n 1.0f\n )\n );\n \n //this.el.set_position(100,100);\n this.el.set_pivot_point(1.0f,1.0f);\n \n this.el.set_size(_this.clutterembed.el.get_stage().width-50,\n _this.clutterembed.el.get_stage().height);\n \n}",
106 "* pack" : "get_stage().add_child",
107 "$ xns" : "GtkClutter"
111 "* init" : "{\n \n /*\n this.el.add_constraint(\n new Clutter.AlignConstraint(\n _this.clutterembed.el.get_stage(), \n Clutter.AlignAxis.X_AXIS,\n 0.0f\n )\n );\n */\n this.el.fixed_x = 50.0f;\n this.el.fixed_y = 0.0f;\n //this.el.set_position(100,100);\n this.el.set_pivot_point(0.0f,0.0f);\n this.el.set_scale(0.0f,1.0f);\n this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,\n _this.clutterembed.el.get_stage().height);\n \n}",
113 "* pack" : "get_stage().add_child",
114 "$ xns" : "GtkClutter"
117 "id" : "codeeditview",
118 "* init" : "{\n \n /*\n this.el.add_constraint(\n new Clutter.AlignConstraint(\n _this.clutterembed.el.get_stage(), \n Clutter.AlignAxis.X_AXIS,\n 0.0f\n )\n );\n */\n this.el.fixed_x = 50.0f;\n this.el.fixed_y = 0.0f;\n //this.el.set_position(100,100);\n this.el.set_pivot_point(0.0f,0.0f);\n this.el.set_scale(0.0f,1.0f);\n this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,\n _this.clutterembed.el.get_stage().height);\n \n}",
120 "* pack" : "get_stage().add_child",
121 "$ xns" : "GtkClutter"
124 "id" : "addpropsview",
125 "* init" : "{\n \n /*\n this.el.add_constraint(\n new Clutter.AlignConstraint(\n _this.clutterembed.el.get_stage(), \n Clutter.AlignAxis.X_AXIS,\n 0.0f\n )\n );\n */\n this.el.fixed_x = 50.0f;\n this.el.fixed_y = 0.0f;\n //this.el.set_position(100,100);\n this.el.set_pivot_point(0.0f,0.0f);\n this.el.set_scale(0.0f,1.0f);\n this.el.set_size((_this.clutterembed.el.get_stage().width-50)/2,\n _this.clutterembed.el.get_stage().height);\n \n}",
127 "* pack" : "get_stage().add_child",
128 "$ xns" : "GtkClutter"
131 "id" : "projecteditview",
132 "* init" : "{\n \n \n this.el.add_constraint(\n new Clutter.AlignConstraint(\n _this.clutterembed.el.get_stage(), \n Clutter.AlignAxis.X_AXIS,\n 1.0f\n )\n );\n \n //this.el.set_position(100,100);\n this.el.set_pivot_point(0.0f,0.0f);\n this.el.set_scale(1.0f,0.0f);\n this.el.set_size(_this.clutterembed.el.get_stage().width-50,\n _this.clutterembed.el.get_stage().height /2);\n \n}",
134 "* pack" : "get_stage().add_child",
135 "$ xns" : "GtkClutter"
138 "id" : "buttonlayout",
139 "* init" : "{\n \n this.el.add_constraint(\n new Clutter.AlignConstraint(\n _this.clutterembed.el.get_stage(), \n Clutter.AlignAxis.X_AXIS,\n 0.0f\n )\n );\n \n \n //this.el.set_position(100,100);\n this.el.set_pivot_point(0.5f,0.5f);\n this.el.set_size(50,\n _this.clutterembed.el.get_stage().height);\n \n}",
141 "* pack" : "get_stage().add_child",
145 "$ orientation" : "Clutter.Orientation.VERTICAL",
146 "xtype" : "BoxLayout",
148 "* prop" : "layout_manager"
152 "* init" : "this.el.set_size(50,50);",
154 "* pack" : "add_child",
158 "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);",
159 "* pack" : "add_child",
161 "$ xns" : "GtkClutter",
165 "clicked" : " ( ) => {\n \n _this.windowstate.switchState(WindowState.State.PREVIEW);\n \n\n}"
167 "utf8 tooltip_text" : "Back",
170 "width_request" : 50,
172 "height_request" : 50,
175 "utf8 icon_name" : "go-previous",
176 "* pack" : "set_image",
187 "id" : "projectbutton",
188 "* init" : "this.el.set_size(50,50);",
190 "* pack" : "add_child",
194 "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);",
196 "* pack" : "add_child",
197 "$ xns" : "GtkClutter",
201 "clicked" : " ( ) => {\n _this.windowstate.switchState(WindowState.State.PROJECT);\n \n\n}"
205 "width_request" : 50,
207 "height_request" : 50,
208 "$ tooltop_text" : "\"Open File\"",
212 "utf8 icon_name" : "document-open",
213 "* pack" : "set_image",
223 "id" : "editfilebutton",
224 "* init" : "this.el.set_size(50.0f,50.0f);",
226 "* pack" : "add_child",
230 "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);",
232 "* pack" : "add_child",
233 "$ xns" : "GtkClutter",
237 "clicked" : " ( ) => {\n \n // create a new file in project..\n if (_this.project == null || _this.left_tree.model.file == null) {\n return ;\n }\n _this.windowstate.new_file_dialog.show(_this.left_tree.model.file);\n \n return ; \n\n\n}"
241 "width_request" : 50,
243 "$ tooltip_text" : "\"File Details\"",
244 "height_request" : 50,
247 "* pack" : "set_image",
249 "utf8 icon_name" : "document-properties",
259 "id" : "projecteditbutton",
260 "* init" : "this.el.set_size(50,50);",
262 "* pack" : "add_child",
266 "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);",
268 "* pack" : "add_child",
269 "$ xns" : "GtkClutter",
273 "clicked" : " ( ) => {\n _this.windowstate.switchState(WindowState.State.PROJECT);\n \n\n\n}"
277 "width_request" : 50,
279 "$ tooltip_text" : "\"Project Details\"",
280 "height_request" : 50,
283 "utf8 icon_name" : "emblem-system",
284 "* pack" : "set_image",
296 "enter_event" : "( event) => {\n this.el.background_color = new Clutter.Color.from_string(\"#333\");\n return false;\n}",
297 "leave_event" : "( event) => {\n this.el.background_color = new Clutter.Color.from_string(\"#000\");\n return false;\n}"
299 "id" : "objectshowbutton",
300 "* init" : "this.el.set_size(50,50);",
302 "* pack" : "add_child",
306 "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);",
308 "* pack" : "add_child",
309 "$ xns" : "GtkClutter",
313 "clicked" : " ( ) => {\n \n _this.windowstate.switchState(WindowState.State.OBJECT);\n \n \n}"
317 "width_request" : 50,
319 "$ tooltip_text" : "\"Add Child Element\"",
320 "height_request" : 50,
324 "utf8 icon_name" : "list-add",
325 "* pack" : "set_image",
335 "id" : "addpropbutton",
336 "* init" : "this.el.set_size(50,50);",
338 "* pack" : "add_child",
342 "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);",
344 "* pack" : "add_child",
345 "$ xns" : "GtkClutter",
349 "clicked" : " ( ) => {\n \n _this.windowstate.switchState(WindowState.State.PROP);\n \n\n}"
353 "width_request" : 50,
355 "$ tooltip_text" : "\"Add Property\"",
356 "height_request" : 50,
359 "* pack" : "set_image",
361 "utf8 icon_name" : "format-justify-left",
371 "id" : "addlistenerbutton",
372 "* init" : "this.el.set_size(50,50);",
374 "* pack" : "add_child",
378 "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);",
380 "* pack" : "add_child",
381 "$ xns" : "GtkClutter",
385 "clicked" : " ( ) => {\n \n _this.windowstate.switchState(WindowState.State.LISTENER);\n \n\n\n}"
389 "width_request" : 50,
391 "$ tooltip_text" : "\"Add Event Code\"",
392 "height_request" : 50,
395 "utf8 icon_name" : "appointment-new",
396 "* pack" : "set_image",
407 "id" : "addprojectbutton",
408 "* init" : "this.el.set_size(50.0f,50.0f);",
410 "* pack" : "add_child",
414 "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);",
416 "* pack" : "add_child",
417 "$ xns" : "GtkClutter",
421 "clicked" : " ( ) => {\n \n // create a new file in project..\n //Xcls_DialogNewComponent.singleton().show(\n var pe = Xcls_EditProject.singleton();\n pe.el.set_transient_for(_this.el);\n pe.el.set_modal(true); \n \n var p = pe.show();\n\n if (p == null) {\n return;\n }\n \n \n _this.windowstate.left_projects.is_loaded = false; \n _this.windowstate.left_projects.load();\n _this.windowstate.left_projects.selectProject(p);\n return ; \n\n\n}"
425 "width_request" : 50,
427 "$ tooltip_text" : "\"New\\nProj.\"",
428 "height_request" : 50,
431 "* pack" : "set_image",
433 "utf8 icon_name" : "folder-new",
443 "id" : "addfilebutton",
444 "* init" : "this.el.set_size(50.0f,50.0f);",
446 "* pack" : "add_child",
450 "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);",
452 "* pack" : "add_child",
453 "$ xns" : "GtkClutter",
457 "clicked" : " () => {\n // create a new file in project..\n \n // what's the currently selected project...\n var proj = _this.left_projects.getSelectedProject();\n \n if (proj == null) {\n return ;\n }\n \n \n \n var f = JsRender.JsRender.factory(proj.xtype, proj, \"\");\n _this.project = proj;\n _this.windowstate.new_file_dialog.show(f);\n \n return ; \n}"
461 "width_request" : 50,
463 "$ tooltip_text" : "\"Add File\"",
464 "height_request" : 50,
468 "utf8 icon_name" : "document-new",
469 "* pack" : "set_image",
479 "id" : "delprojectbutton",
480 "* init" : "this.el.set_size(50,50);",
482 "* pack" : "add_child",
486 "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);",
488 "* pack" : "add_child",
489 "$ xns" : "GtkClutter",
493 "clicked" : " ( ) => {\n \n var cd = DialogConfirm.singleton();\n cd.el.set_transient_for(_this.el);\n cd.el.set_modal(true);\n\n var project = _this.left_projects.getSelectedProject();\n if (project == null) {\n print(\"SKIP - no project\\n\");\n return;\n }\n \n \n if (Gtk.ResponseType.YES != cd.show(\"Confirm\", \n \"Are you sure you want to delete project %s\".printf(project.name))) {\n return;\n }\n \n\n // confirm?\n Project.Project.remove(project);\n _this.project = null;\n \n _this.windowstate.left_projects.is_loaded = false;\n _this.windowstate.left_projects.load();\n _this.windowstate.clutterfiles.clearFiles();\n\n}"
497 "width_request" : 50,
499 "$ tooltip_text" : "\"Delelte Project\"",
500 "height_request" : 50,
503 "* pack" : "set_image",
505 "utf8 icon_name" : "user-trash",
516 "* init" : "this.el.set_size(50,50);",
518 "* pack" : "add_child",
522 "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);",
524 "* pack" : "add_child",
525 "$ xns" : "GtkClutter",
529 "clicked" : " ( ) => {\n Xcls_MainWindow.singleton().no_windows++;\n var w = new Xcls_MainWindow();\n w.ref();\n\n w.el.show_all();\n w.initChildren();\n w.windowstate.switchState(WindowState.State.FILES);\n}"
531 "utf8 tooltip_text" : "Open New Window",
534 "width_request" : 50,
536 "height_request" : 50,
539 "* pack" : "set_image",
541 "utf8 icon_name" : "window-new",