5 "path" : "/home/alan/gitlive/app.Builder.js/src/Builder4/MainWindow.bjs",
8 "build_module" : "builder",
12 "delete_event" : " ( event) => {\n return false;\n}",
13 "destroy" : "() => {\n Xcls_MainWindow.singleton().no_windows--;\n \n Resources.singleton().disconnect(_this.statusbar.handler_id);\n \n \n if (Xcls_MainWindow.singleton().no_windows < 1) {\n\n Gtk.main_quit();\n }\n}",
14 "show" : " ( ) => {\n // hide the file editing..\n \n //this.hideViewEditing();\n _this.statusbar.el.hide();\n _this.statusbar_errors.el.hide();\n _this.statusbar_warnings.el.hide();\n _this.statusbar_depricated.el.hide();\n \n \n Resources.singleton().checkResources();\n\n}"
17 "default_width" : 800,
18 "* init" : " \n\t \n //this.el.show_all();\n \n ",
19 "# Project.Project project" : "null",
20 "# string title" : "\"Application Builder\"",
22 "# int no_windows" : 1,
23 "default_height" : 500,
24 "| 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 \n\n\n\n}\n",
26 "| void show" : "() {\n \n this.el.show_all();\n\n}",
27 "# WindowState windowstate" : "null",
29 "$ type" : "Gtk.WindowType.TOPLEVEL",
30 "| void setTitle" : " (string str) {\n this.headerbar.el.set_title(this.title + \" - \" + str);\n} \n",
34 "xtype" : "HeaderBar",
35 "* pack" : "set_titlebar",
36 "bool show_close_button" : true,
38 "string title" : "Application Builder",
41 "* pack" : "pack_start",
44 "Gtk.Orientation orientation" : "Gtk.Orientation.HORIZONTAL",
47 "bool use_popover" : false,
48 "xtype" : "MenuButton",
54 "* init" : "{\n this.el.show_all();\n}\n",
56 "* pack" : "set_popup",
61 "activate" : " ( ) => {\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}"
63 "string label" : "Open a new Window",
70 "xtype" : "SeparatorMenuItem",
75 "activate" : " ( ) => {\n Resources.singleton().fetchStart();\n}"
78 "string label" : "Download updated Resources",
84 "activate" : "() => {\n About.singleton().el.show();\n }"
88 "string label" : "About the Builder",
94 "utf8 icon_name" : "help-about",
95 "* pack" : "set_image",
110 "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL",
111 "$ homogeneous" : false,
116 "* pack" : "pack_start,true,true,0",
117 "# int lastWidth" : 0,
120 "Gtk.Orientation orientation" : "Gtk.Orientation.HORIZONTAL",
127 "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL",
132 "* pack" : "pack_start,false,true,0",
158 "size_allocate" : " ( alloc) => {\n if (_this.windowstate == null) {\n return;\n }\n _this.windowstate.resizeCanvas(); \n \n}"
160 "id" : "clutterembed",
161 "* init" : " var stage = this.el.get_stage();\n stage.set_background_color( Clutter.Color.from_string(\"#000\"));\n \n \n",
163 "* pack" : "pack_start,true,true,0",
164 "$ xns" : "GtkClutter",
168 "* 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}",
170 "* pack" : "get_stage().add_child",
171 "$ xns" : "GtkClutter"
175 "* 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}",
177 "* pack" : "get_stage().add_child",
178 "$ xns" : "GtkClutter"
181 "id" : "codeeditview",
182 "* 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}",
184 "* pack" : "get_stage().add_child",
185 "$ xns" : "GtkClutter"
188 "id" : "addpropsview",
189 "* 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}",
191 "* pack" : "get_stage().add_child",
192 "$ xns" : "GtkClutter"
195 "id" : "projecteditview",
196 "* 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}",
198 "* pack" : "get_stage().add_child",
199 "$ xns" : "GtkClutter"
202 "id" : "buttonlayout",
203 "* 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}",
205 "* pack" : "get_stage().add_child",
209 "$ orientation" : "Clutter.Orientation.VERTICAL",
210 "xtype" : "BoxLayout",
212 "* prop" : "layout_manager"
216 "* init" : "this.el.set_size(50,50);",
218 "* pack" : "add_child",
222 "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);",
224 "* pack" : "add_child",
225 "$ xns" : "GtkClutter",
229 "clicked" : " ( ) => {\n \n _this.windowstate.switchState(WindowState.State.PREVIEW);\n \n\n}"
231 "utf8 tooltip_text" : "Back",
234 "width_request" : 50,
236 "height_request" : 50,
240 "utf8 icon_name" : "go-previous",
241 "* pack" : "set_image",
251 "id" : "projectbutton",
252 "* init" : "this.el.set_size(50,50);",
254 "* pack" : "add_child",
258 "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);",
259 "* pack" : "add_child",
261 "$ xns" : "GtkClutter",
265 "clicked" : " ( ) => {\n _this.windowstate.switchState(WindowState.State.FILES);\n \n\n}"
269 "width_request" : 50,
271 "height_request" : 50,
272 "$ tooltop_text" : "\"Open File\"",
275 "* pack" : "set_image",
277 "utf8 icon_name" : "document-open",
287 "id" : "editfilebutton",
288 "* init" : "this.el.set_size(50.0f,50.0f);",
290 "* pack" : "add_child",
294 "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);",
295 "* pack" : "add_child",
297 "$ xns" : "GtkClutter",
301 "clicked" : " ( ) => {\n \n // create a new file in project..\n if (_this.project == null || _this.windowstate.left_tree.model.file == null) {\n return ;\n }\n _this.windowstate.file_details.show(\n _this.windowstate.left_tree.model.file, this.el\n );\n \n return ; \n\n\n}"
305 "width_request" : 50,
307 "$ tooltip_text" : "\"File Details\"",
308 "height_request" : 50,
311 "utf8 icon_name" : "document-properties",
312 "* pack" : "set_image",
323 "id" : "projecteditbutton",
324 "* init" : "this.el.set_size(50,50);",
326 "* pack" : "add_child",
330 "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);",
331 "* pack" : "add_child",
333 "$ xns" : "GtkClutter",
337 "clicked" : " ( ) => {\n _this.windowstate.switchState(WindowState.State.PROJECT);\n \n\n\n}"
341 "width_request" : 50,
343 "$ tooltip_text" : "\"Project Details\"",
344 "height_request" : 50,
348 "utf8 icon_name" : "emblem-system",
349 "* pack" : "set_image",
360 "enter_event" : "( event) => {\n this.el.background_color = new Clutter.Color.from_string(\"#333\");\n return false;\n}",
361 "leave_event" : "( event) => {\n this.el.background_color = new Clutter.Color.from_string(\"#000\");\n return false;\n}"
363 "id" : "objectshowbutton",
364 "* init" : "this.el.set_size(50,50);",
366 "* pack" : "add_child",
370 "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);",
371 "* pack" : "add_child",
373 "$ xns" : "GtkClutter",
377 "clicked" : " ( ) => {\n \n _this.windowstate.switchState(WindowState.State.OBJECT);\n \n \n}"
381 "width_request" : 50,
383 "$ tooltip_text" : "\"Add Child Element\"",
384 "height_request" : 50,
387 "* pack" : "set_image",
389 "utf8 icon_name" : "list-add",
399 "id" : "addpropbutton",
400 "* init" : "this.el.set_size(50,50);",
402 "* pack" : "add_child",
406 "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);",
407 "* pack" : "add_child",
409 "$ xns" : "GtkClutter",
413 "clicked" : " ( ) => {\n \n _this.windowstate.switchState(WindowState.State.PROP);\n \n\n}"
417 "width_request" : 50,
419 "$ tooltip_text" : "\"Add Property\"",
420 "height_request" : 50,
423 "utf8 icon_name" : "format-justify-left",
424 "* pack" : "set_image",
435 "id" : "addlistenerbutton",
436 "* init" : "this.el.set_size(50,50);",
438 "* pack" : "add_child",
442 "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);",
443 "* pack" : "add_child",
445 "$ xns" : "GtkClutter",
449 "clicked" : " ( ) => {\n \n _this.windowstate.switchState(WindowState.State.LISTENER);\n \n\n\n}"
453 "width_request" : 50,
455 "$ tooltip_text" : "\"Add Event Code\"",
456 "height_request" : 50,
460 "utf8 icon_name" : "appointment-new",
461 "* pack" : "set_image",
471 "id" : "addprojectbutton",
472 "* init" : "this.el.set_size(50.0f,50.0f);",
474 "* pack" : "add_child",
478 "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);",
479 "* pack" : "add_child",
481 "$ xns" : "GtkClutter",
485 "clicked" : " ( ) => {\n \n // create a new file in project..\n //Xcls_DialogNewComponent.singleton().show(\n var pe = 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}"
489 "width_request" : 50,
491 "$ tooltip_text" : "\"New\\nProj.\"",
492 "height_request" : 50,
495 "utf8 icon_name" : "folder-new",
496 "* pack" : "set_image",
507 "id" : "addfilebutton",
508 "* init" : "this.el.set_size(50.0f,50.0f);",
510 "* pack" : "add_child",
514 "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);",
515 "* pack" : "add_child",
517 "$ xns" : "GtkClutter",
521 "clicked" : " () => {\n // create a new file in project..\n \n // what's the currently selected project...\n var proj = _this.windowstate.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 \n _this.windowstate.file_details.show(\n f, this.el\n );\n \n \n return ; \n}"
525 "width_request" : 50,
527 "$ tooltip_text" : "\"Add File\"",
528 "height_request" : 50,
531 "* pack" : "set_image",
533 "utf8 icon_name" : "document-new",
543 "id" : "delprojectbutton",
544 "* init" : "this.el.set_size(50,50);",
546 "* pack" : "add_child",
550 "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);",
551 "* pack" : "add_child",
553 "$ xns" : "GtkClutter",
557 "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.windowstate.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}"
561 "width_request" : 50,
563 "$ tooltip_text" : "\"Delete Project\"",
564 "height_request" : 50,
567 "utf8 icon_name" : "user-trash",
568 "* pack" : "set_image",
587 "bool homogeneous" : false,
589 "* pack" : "pack_end,false,true,0",
593 "* pack" : "pack_start,true,true,0",
595 "string label" : " ",
599 "bool show_text" : true,
601 "ulong handler_id" : "-1",
602 "* init" : "{\n this.handler_id = Resources.singleton().updateProgress.connect((pos,total) => {\n if (pos < 1) {\n this.el.hide();\n _this.mainpane.el.set_sensitive(true);\n \n return;\n }\n _this.mainpane.el.set_sensitive(false);\n this.el.show();\n this.el.set_fraction ((1.0f * pos) / (1.0f * total));\n this.el.set_text(\"Fetching Resource : %s/%s\".printf(pos.to_string(), total.to_string()));\n \n });\n}\n",
603 "xtype" : "ProgressBar",
604 "* pack" : "pack_start,true,true,0",
608 "* pack" : "pack_end,false,true,0",
613 "xtype" : "MenuItem",
614 "string label" : "Compile Status:",
620 "button_press_event" : "() => {\n if (this.popup == null) {\n this.popup = new Xcls_ValaCompileErrors();\n this.popup.window = _this;\n }\n \n \n this.popup.show(this.notices, this.el);\n return true;\n}"
622 "bool always_show_image" : true,
623 "id" : "statusbar_errors",
624 "| void setNotices" : "(Json.Object nots, int qty) {\n this.el.show();\n this.el.label = qty.to_string() + \" Errors\";\n this.notices = nots;\n\n}\n",
625 "Xcls_ValaCompileErrors popup" : "",
626 "string label" : "Errors",
628 "xtype" : "ImageMenuItem",
629 "# Json.Object notices" : "new Json.Object() ",
634 "utf8 icon_name" : "dialog-error",
635 "* pack" : "set_image",
642 "button_press_event" : "() => {\n if (this.popup == null) {\n this.popup = new Xcls_ValaCompileErrors();\n this.popup.window = _this;\n }\n \n this.popup.show(this.notices, this.el);\n return true;\n}"
644 "bool always_show_image" : true,
645 "id" : "statusbar_warnings",
646 "| void setNotices" : "(Json.Object nots, int qty) {\n this.el.show();\n this.el.label = qty.to_string() + \" Warnings\";\n this.notices = nots;\n\n}\n",
647 "Xcls_ValaCompileErrors popup" : "",
649 "string label" : "Warnings",
650 "xtype" : "ImageMenuItem",
651 "# Json.Object notices" : "new Json.Object()",
655 "* pack" : "set_image",
657 "utf8 icon_name" : "dialog-warning",
664 "button_press_event" : "() => {\n if (this.popup == null) {\n this.popup = new Xcls_ValaCompileErrors();\n this.popup.window = _this;\n }\n \n \n this.popup.show(this.notices, this.el);\n return true;\n}"
666 "bool always_show_image" : true,
667 "id" : "statusbar_depricated",
668 "| void setNotices" : "(Json.Object nots, int qty) {\n this.el.show();\n this.el.label = qty.to_string() + \" Depricated\";\n this.notices = nots;\n\n}\n",
669 "Xcls_ValaCompileErrors popup" : "",
670 "string label" : "Depricated",
672 "xtype" : "ImageMenuItem",
673 "# Json.Object notices" : "new Json.Object()",
677 "utf8 icon_name" : "dialog-information",
678 "* pack" : "set_image",