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}"
65 "string label" : "Open a new Window",
70 "xtype" : "SeparatorMenuItem",
75 "activate" : " ( ) => {\n Resources.singleton().fetchStart();\n}"
77 "string label" : "Download updated Resources",
84 "activate" : "() => {\n About.singleton().el.show();\n }"
87 "string label" : "About the Builder",
94 "* pack" : "set_image",
96 "utf8 icon_name" : "help-about",
110 "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL",
111 "$ homogeneous" : false,
116 "* pack" : "pack_start,true,true,0",
117 "# int lastWidth" : 0,
126 "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL",
131 "* pack" : "pack_start,false,true,0",
139 "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL"
146 "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL"
156 "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL",
160 "size_allocate" : " ( alloc) => {\n if (_this.windowstate == null) {\n return;\n }\n _this.windowstate.resizeCanvas(); \n \n}"
162 "id" : "clutterembed",
163 "* init" : " var stage = this.el.get_stage();\n stage.set_background_color( Clutter.Color.from_string(\"#000\"));\n \n \n",
165 "* pack" : "pack_start,true,true,0",
166 "$ xns" : "GtkClutter",
170 "* 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}",
172 "* pack" : "get_stage().add_child",
173 "$ xns" : "GtkClutter"
177 "* 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}",
179 "* pack" : "get_stage().add_child",
180 "$ xns" : "GtkClutter"
183 "id" : "codeeditview",
184 "* 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}",
186 "* pack" : "get_stage().add_child",
187 "$ xns" : "GtkClutter"
190 "id" : "addpropsview",
191 "* 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}",
193 "* pack" : "get_stage().add_child",
194 "$ xns" : "GtkClutter"
197 "id" : "projecteditview",
198 "* 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}",
200 "* pack" : "get_stage().add_child",
201 "$ xns" : "GtkClutter"
204 "id" : "buttonlayout",
205 "* 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}",
207 "* pack" : "get_stage().add_child",
211 "$ orientation" : "Clutter.Orientation.VERTICAL",
212 "xtype" : "BoxLayout",
214 "* prop" : "layout_manager"
218 "* init" : "this.el.set_size(50,50);",
220 "* pack" : "add_child",
224 "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);",
226 "* pack" : "add_child",
227 "$ xns" : "GtkClutter",
231 "clicked" : " ( ) => {\n \n _this.windowstate.switchState(WindowState.State.PREVIEW);\n \n\n}"
233 "utf8 tooltip_text" : "Back",
236 "width_request" : 50,
238 "height_request" : 50,
241 "utf8 icon_name" : "go-previous",
242 "* pack" : "set_image",
253 "id" : "projectbutton",
254 "* init" : "this.el.set_size(50,50);",
256 "* pack" : "add_child",
260 "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);",
261 "* pack" : "add_child",
263 "$ xns" : "GtkClutter",
267 "clicked" : " ( ) => {\n _this.windowstate.switchState(WindowState.State.FILES);\n \n\n}"
271 "width_request" : 50,
273 "height_request" : 50,
274 "$ tooltop_text" : "\"Open File\"",
278 "utf8 icon_name" : "document-open",
279 "* pack" : "set_image",
289 "id" : "editfilebutton",
290 "* init" : "this.el.set_size(50.0f,50.0f);",
292 "* pack" : "add_child",
296 "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);",
297 "* pack" : "add_child",
299 "$ xns" : "GtkClutter",
303 "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}"
307 "width_request" : 50,
309 "$ tooltip_text" : "\"File Details\"",
310 "height_request" : 50,
313 "* pack" : "set_image",
315 "utf8 icon_name" : "document-properties",
325 "id" : "projecteditbutton",
326 "* init" : "this.el.set_size(50,50);",
328 "* pack" : "add_child",
332 "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);",
333 "* pack" : "add_child",
335 "$ xns" : "GtkClutter",
339 "clicked" : " ( ) => {\n _this.windowstate.switchState(WindowState.State.PROJECT);\n \n\n\n}"
343 "width_request" : 50,
345 "$ tooltip_text" : "\"Project Details\"",
346 "height_request" : 50,
349 "utf8 icon_name" : "emblem-system",
350 "* pack" : "set_image",
362 "enter_event" : "( event) => {\n this.el.background_color = new Clutter.Color.from_string(\"#333\");\n return false;\n}",
363 "leave_event" : "( event) => {\n this.el.background_color = new Clutter.Color.from_string(\"#000\");\n return false;\n}"
365 "id" : "objectshowbutton",
366 "* init" : "this.el.set_size(50,50);",
368 "* pack" : "add_child",
372 "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);",
373 "* pack" : "add_child",
375 "$ xns" : "GtkClutter",
379 "clicked" : " ( ) => {\n \n _this.windowstate.switchState(WindowState.State.OBJECT);\n \n \n}"
383 "width_request" : 50,
385 "$ tooltip_text" : "\"Add Child Element\"",
386 "height_request" : 50,
390 "utf8 icon_name" : "list-add",
391 "* pack" : "set_image",
401 "id" : "addpropbutton",
402 "* init" : "this.el.set_size(50,50);",
404 "* pack" : "add_child",
408 "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);",
409 "* pack" : "add_child",
411 "$ xns" : "GtkClutter",
415 "clicked" : " ( ) => {\n \n _this.windowstate.switchState(WindowState.State.PROP);\n \n\n}"
419 "width_request" : 50,
421 "$ tooltip_text" : "\"Add Property\"",
422 "height_request" : 50,
425 "* pack" : "set_image",
427 "utf8 icon_name" : "format-justify-left",
437 "id" : "addlistenerbutton",
438 "* init" : "this.el.set_size(50,50);",
440 "* pack" : "add_child",
444 "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);",
445 "* pack" : "add_child",
447 "$ xns" : "GtkClutter",
451 "clicked" : " ( ) => {\n \n _this.windowstate.switchState(WindowState.State.LISTENER);\n \n\n\n}"
455 "width_request" : 50,
457 "$ tooltip_text" : "\"Add Event Code\"",
458 "height_request" : 50,
461 "utf8 icon_name" : "appointment-new",
462 "* pack" : "set_image",
473 "id" : "addprojectbutton",
474 "* init" : "this.el.set_size(50.0f,50.0f);",
476 "* pack" : "add_child",
480 "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);",
481 "* pack" : "add_child",
483 "$ xns" : "GtkClutter",
487 "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}"
491 "width_request" : 50,
493 "$ tooltip_text" : "\"New\\nProj.\"",
494 "height_request" : 50,
497 "* pack" : "set_image",
499 "utf8 icon_name" : "folder-new",
509 "id" : "addfilebutton",
510 "* init" : "this.el.set_size(50.0f,50.0f);",
512 "* pack" : "add_child",
516 "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);",
517 "* pack" : "add_child",
519 "$ xns" : "GtkClutter",
523 "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}"
527 "width_request" : 50,
529 "$ tooltip_text" : "\"Add File\"",
530 "height_request" : 50,
534 "utf8 icon_name" : "document-new",
535 "* pack" : "set_image",
545 "id" : "delprojectbutton",
546 "* init" : "this.el.set_size(50,50);",
548 "* pack" : "add_child",
552 "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);",
553 "* pack" : "add_child",
555 "$ xns" : "GtkClutter",
559 "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}"
563 "width_request" : 50,
565 "$ tooltip_text" : "\"Delete Project\"",
566 "height_request" : 50,
569 "* pack" : "set_image",
571 "utf8 icon_name" : "user-trash",
589 "bool homogeneous" : false,
591 "* pack" : "pack_end,false,true,0",
596 "string label" : " ",
597 "* pack" : "pack_start,true,true,0",
601 "bool show_text" : true,
603 "ulong handler_id" : "-1",
604 "* 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",
605 "xtype" : "ProgressBar",
606 "* pack" : "pack_start,true,true,0",
610 "* pack" : "pack_end,false,true,0",
615 "string label" : "Compile Status:",
617 "xtype" : "MenuItem",
622 "button_press_event" : "() => {\n if (this.popup == null) {\n this.popup = new Xcls_ValaCompileErrors();\n this.popup.window = _this;\n }\n if (_this.statusbar_warnings.popup != null && _this.statusbar_warnings.popup.active) {\n _this.statusbar_warnings.popup.active = false;\n _this.statusbar_warnings.popup.el.hide();\n }\n if (_this.statusbar_depricated.popup != null && _this.statusbar_depricated.popup.active) {\n _this.statusbar_depricated.popup.active = false;\n _this.statusbar_depricated.popup.el.hide();\n }\n \n if (this.popup.active) {\n this.popup.active = false;\n this.popup.el.hide();\n return true;\n }\n \n this.popup.show(this.notices, this.el);\n return true;\n}"
624 "bool always_show_image" : true,
625 "id" : "statusbar_errors",
626 "Xcls_ValaCompileErrors popup" : "",
627 "string label" : "Errors",
629 "xtype" : "ImageMenuItem",
630 "# Json.Object notices" : "new Json.Object() ",
634 "utf8 icon_name" : "dialog-error",
635 "* pack" : "set_image",
643 "button_press_event" : "() => {\n if (this.popup == null) {\n this.popup = new Xcls_ValaCompileErrors();\n this.popup.window = _this;\n }\n \n if (_this.statusbar_errors.popup != null && _this.statusbar_errors.popup.active) {\n _this.statusbar_errors.popup.active = false;\n _this.statusbar_errors.popup.el.hide();\n }\n if (_this.statusbar_depricated.popup != null && _this.statusbar_depricated.popup.active) {\n _this.statusbar_depricated.popup.active = false;\n _this.statusbar_depricated.popup.el.hide();\n }\n \n if (this.popup.active) {\n this.popup.active = false;\n this.popup.el.hide();\n return true;\n }\n this.popup.show(this.notices, this.el);\n return true;\n}"
645 "bool always_show_image" : true,
646 "id" : "statusbar_warnings",
647 "Xcls_ValaCompileErrors popup" : "",
649 "string label" : "Warnings",
650 "xtype" : "ImageMenuItem",
651 "# Json.Object notices" : "new Json.Object()",
656 "utf8 icon_name" : "dialog-warning",
657 "* pack" : "set_image",
664 "button_press_event" : "() => {\n if (this.popup == null) {\n this.popup = new Xcls_ValaCompileErrors();\n this.popup.window = _this;\n }\n \n if (_this.statusbar_errors.popup != null && _this.statusbar_errors.popup.active) {\n _this.statusbar_errors.popup.active = false;\n _this.statusbar_errors.popup.el.hide();\n }\n if (_this.statusbar_warnings.popup != null && _this.statusbar_warnings.popup.active) {\n _this.statusbar_warnings.popup.active = false;\n _this.statusbar_warnings.popup.el.hide();\n }\n \n if (this.popup.active) {\n this.popup.active = false;\n this.popup.el.hide();\n return true;\n }\n this.popup.show(this.notices, this.el);\n return true;\n}"
666 "bool always_show_image" : true,
667 "id" : "statusbar_depricated",
668 "Xcls_ValaCompileErrors popup" : "",
669 "string label" : "Depricated",
671 "xtype" : "ImageMenuItem",
672 "# Json.Object notices" : "new Json.Object()",
676 "* pack" : "set_image",
678 "utf8 icon_name" : "dialog-information",