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 hideAddListener" : "() {\n _this.backbutton.el.hide();\n _this.projectbutton.el.show(); \n _this.projecteditbutton.el.show();\n _this.editfilebutton.el.show(); \n _this.addpropsview.el.save_easing_state();\n var el = _this.rooview.el;\n el.save_easing_state();\n\n \n el.set_scale(1.0f,1.0f);\n _this.addpropsview.el.set_scale(0.0f,0.0f);\n _this.state = \"edit\";\n\n \n //_this.clutterfiles.loadProject(_this.project);\n\n el.restore_easing_state();\n _this.addpropsview.el.restore_easing_state(); \n }",
16 "| 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",
17 "# int no_windows" : 1,
18 "# Project.Project project" : "null",
19 "# bool children_loaded" : false,
20 "| void hideCodeEdit" : "() {\n //this.code_editor.saveContents();\n _this.backbutton.el.hide();\n\n _this.projectbutton.el.show(); \n _this.projecteditbutton.el.show();\n _this.editfilebutton.el.show(); \n \n \n \n _this.codeeditview.el.save_easing_state();\n var el = _this.rooview.el;\n el.save_easing_state();\n\n \n el.set_scale(1.0f,1.0f);\n _this.codeeditview.el.set_scale(0.0f,0.0f);\n _this.state = \"edit\";\n\n \n //_this.clutterfiles.loadProject(_this.project);\n\n el.restore_easing_state();\n _this.codeeditview.el.restore_easing_state(); \n }",
21 "| void showAddProp" : "() {\n\n \n var ae = this.left_tree.getActiveElement();\n if (ae == null) {\n return;\n }\n _this.backbutton.el.show();\n _this.projectbutton.el.hide();\n _this.editfilebutton.el.hide();\n _this.projecteditbutton.el.hide(); \n \n \n \n //this.rooview.el.hide();\n this.add_props.el.show_all();\n this.add_props.show(\n Palete.factory(this.project.xtype), \n \"props\",\n ae.fqn()\n );\n\n _this.addpropsview.el.save_easing_state();\n \n var el = _this.rooview.el;\n el.save_easing_state();\n _this.clutterembed.setSizesAlloc(\"addprop\");\n \n \n\n _this.addpropsview.el.set_scale(1.0f,1.0f);\n \n \n \n //_this.clutterfiles.loadProject(_this.project);\n\n el.restore_easing_state();\n _this.addpropsview.el.restore_easing_state();\n this.state = \"addprop\";\n}",
22 "| void showViewEditing" : " ( ) {\n this.editpane.el.show();\n // this.rooview.el.show();\n this.left_projects.el.hide();\n \n _this.addprojectbutton.el.hide(); \n _this.delprojectbutton.el.hide();\n _this.addfilebutton.el.hide(); \n _this.backbutton.el.hide();\n _this.new_window.el.hide(); \n \n \n _this.projectbutton.el.show(); \n _this.editfilebutton.el.show(); \n _this.projecteditbutton.el.show();\n _this.objectshowbutton.el.show();\n _this.addpropbutton.el.show(); \n _this.addlistenerbutton.el.show(); \n\n \n var el = _this.rooview.el;\n el.save_easing_state();\n \n \n el.set_rotation_angle(Clutter.RotateAxis.Y_AXIS, 0.0f);\n el.set_scale(1.0f,1.0f);\n _this.state = \"edit\";\n // _this.mainpane.el.set_position(_this.leftpane.lastWidth);\n _this.clutterfiles.el.hide();\n \n el.restore_easing_state();\n \n print(\"show view editing\");\n}",
24 "| void hideProjectEdit" : " () {\n // return to editing state..\n \n _this.projectbutton.el.show();\n _this.projecteditbutton.el.show();\n _this.backbutton.el.hide();\n _this.editfilebutton.el.show(); \n\n \n if (this.project.xtype == \"Roo\") {\n \n //this.projectsettings.show(this.project);\n } else {\n\n this.vala_projectsettings.project.writeConfig();\n }\n _this.projecteditview.el.save_easing_state();\n var el = _this.rooview.el;\n el.save_easing_state();\n\n \n el.set_scale(1.0f,1.0f);\n _this.projecteditview.el.set_scale(1.0f,0.0f);\n _this.state = \"edit\";\n\n \n //_this.clutterfiles.loadProject(_this.project);\n\n el.restore_easing_state();\n _this.projecteditview.el.restore_easing_state(); \n \n}\n",
25 "default_height" : 500,
26 "# Xcls_WindowLeftProjects left_projects" : "null",
28 "| void showProjectEdit" : " () {\n // make the browser smaller, and show the edit dialog\n \n \n _this.projectbutton.el.hide();\n _this.projecteditbutton.el.hide();\n _this.editfilebutton.el.hide();\n \n _this.backbutton.el.show();\n \n //this.rooview.el.hide();\n \n \n if (this.project.xtype == \"Roo\") {\n this.projectsettings.el.show_all();\n this.projectsettings.show(this.project);\n } else {\n this.vala_projectsettings.el.show_all();\n this.vala_projectsettings.show((Project.Gtk)this.project);\n }\n _this.projecteditview.el.save_easing_state();\n \n var el = _this.rooview.el;\n el.save_easing_state();\n \n \n el.set_scale(0.5f,0.5f);\n\n _this.projecteditview.el.set_scale(1.0f,1.0f);\n \n _this.state = \"projectedit\";\n \n \n //_this.clutterfiles.loadProject(_this.project);\n\n el.restore_easing_state();\n _this.projecteditview.el.restore_easing_state();\n // print(\"show view browsing\");\n \n}\n",
29 "# Xcls_WindowRooView window_rooview" : "null",
30 "| void showAddListener" : "() {\n\n \n \n var ae = this.left_tree.getActiveElement();\n if (ae == null) {\n return;\n }\n \n _this.backbutton.el.show();\n _this.projectbutton.el.hide();\n _this.editfilebutton.el.hide();\n _this.projecteditbutton.el.hide(); \n \n \n //this.rooview.el.hide();\n this.add_props.el.show_all();\n this.add_props.show(\n Palete.factory(this.project.xtype), \n \"signals\",\n ae.fqn()\n );\n //this.rightpalete.show(this.project);\n\n _this.addpropsview.el.save_easing_state();\n \n var el = _this.rooview.el;\n el.save_easing_state();\n \n _this.clutterembed.setSizesAlloc(\"addlistener\");\n\n \n \n\n _this.addpropsview.el.set_scale(1.0f,1.0f);\n \n \n \n //_this.clutterfiles.loadProject(_this.project);\n\n el.restore_easing_state();\n _this.addpropsview.el.restore_easing_state();\n this.state = \"addlistener\";\n}",
31 "default_width" : 800,
33 "$ type" : "Gtk.WindowType.TOPLEVEL",
34 "| void hideAddProp" : "() {\n _this.backbutton.el.hide();\n _this.projectbutton.el.show(); \n _this.projecteditbutton.el.show();\n _this.editfilebutton.el.show(); \n _this.addpropsview.el.save_easing_state();\n \n var el = _this.rooview.el;\n el.save_easing_state();\n\n \n el.set_scale(1.0f,1.0f);\n _this.addpropsview.el.set_scale(0.0f,0.0f);\n _this.state = \"edit\";\n\n \n //_this.clutterfiles.loadProject(_this.project);\n\n el.restore_easing_state();\n _this.addpropsview.el.restore_easing_state(); \n }",
35 "# Xcls_WindowLeftTree left_tree" : "null",
36 "# Editor code_editor" : "null",
37 "| void showCodeEdit" : "(JsRender.JsRender file, JsRender.Node node, string ptype, string key)\n{\n // this is a bit different,\n // it's not called via a button - but triggered by the prop edit class signal.\n // so it has to hide any other state..\n \n switch(this.state) {\n case \"object\":\n this.hideObject();\n break;\n case \"addprop\":\n this.hideAddProp();\n break;\n case \"addlistener\":\n this.hideAddListener();\n break;\n }\n \n _this.backbutton.el.show();\n \n _this.projectbutton.el.hide();\n _this.editfilebutton.el.hide();\n _this.projecteditbutton.el.hide(); \n // more?? \n \n //this.rooview.el.hide();\n this.code_editor.el.show_all();\n this.code_editor.show(\n file,\n node,\n ptype,\n key\n );\n\n _this.codeeditview.el.save_easing_state();\n \n var el = _this.rooview.el;\n el.save_easing_state();\n _this.clutterembed.setSizesAlloc(\"codedit\");\n \n _this.codeeditview.el.set_scale(1.0f,1.0f);\n \n \n \n //_this.clutterfiles.loadProject(_this.project);\n\n el.restore_easing_state();\n _this.codeeditview.el.restore_easing_state();\n this.state = \"codeedit\";\n}\n",
38 "# Xcls_DialogNewComponent new_file_dialog" : "null",
39 "WindowState windowstate" : "null",
40 "# Xcls_ProjectSettings projectsettings" : "null",
41 "| void setTitle" : " (string str) {\n this.el.set_title(this.title + \" - \" + str);\n}\n",
42 "| 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}",
44 "# Xcls_ClutterFiles clutterfiles" : "null",
45 "# Xcls_LeftProps left_props" : "null",
46 "| void hideViewEditing" : " ( ) {\n\n// show the file navigation...\n this.windowstate.set(WindowState.State.FILES);\n\n}",
47 "# Xcls_RightPalete rightpalete" : "null",
48 "# string title" : "\"Application Builder\"",
49 "# ValaProjectSettings vala_projectsettings" : "null",
50 "# Xcls_WindowAddProp add_props" : "null",
51 "| void showObject" : "() {\n\n \n // what's the active node on the left hand side..\n \n var n = _this.left_tree.getActiveElement();\n\n if (_this.left_tree.model.file == null) {\n return;\n }\n \n if (n == null && _this.left_tree.model.file.tree != null) {\n return;\n }\n \n _this.backbutton.el.show();\n _this.projectbutton.el.hide();\n _this.editfilebutton.el.hide();\n _this.projecteditbutton.el.hide(); \n \n \n //this.rooview.el.hide();\n this.rightpalete.el.show_all();\n this.rightpalete.load(_this.left_tree.getActiveFile().palete(), n == null ? \"*top\" : n.fqn());\n\n \n //this.rightpalete.show(this.project);\n\n _this.objectview.el.save_easing_state();\n \n var el = _this.rooview.el;\n el.save_easing_state();\n \n _this.clutterembed.setSizesAlloc(\"object\");\n \n\n _this.objectview.el.set_scale(1.0f,1.0f);\n \n \n \n //_this.clutterfiles.loadProject(_this.project);\n\n el.restore_easing_state();\n _this.objectview.el.restore_easing_state();\n this.state = \"object\";\n}",
52 "* init" : " this.state = \"files\";\n\t \n //this.el.show_all();\n \n ",
53 "| void hideObject" : "() {\n // return to editing state..\n \n _this.projecteditbutton.el.show();\n _this.backbutton.el.hide();\n _this.projectbutton.el.show(); \n _this.editfilebutton.el.show(); \n _this.objectview.el.save_easing_state();\n var el = _this.rooview.el;\n el.save_easing_state();\n\n \n el.set_scale(1.0f,1.0f);\n _this.objectview.el.set_scale(0.0f,0.0f);\n _this.state = \"edit\";\n\n \n //_this.clutterfiles.loadProject(_this.project);\n\n el.restore_easing_state();\n _this.objectview.el.restore_easing_state(); \n \n\n}",
54 "# Xcls_GtkView window_gladeview" : "null",
61 "$ homogeneous" : false,
66 "* pack" : "pack_end,true,true,0",
67 "# int lastWidth" : 0,
80 "* pack" : "pack_start,false,true,0",
106 "size_allocate" : " ( alloc) => {\n this.windowstate.resizeCanvasElements(alloc); \n \n}"
108 "id" : "clutterembed",
109 "* init" : " var stage = this.el.get_stage();\n stage.set_background_color( Clutter.Color.from_string(\"#000\"));\n \n \n",
111 "* pack" : "pack_start,true,true,0",
112 "$ xns" : "GtkClutter",
116 "* 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}",
118 "* pack" : "get_stage().add_child",
119 "$ xns" : "GtkClutter"
123 "* 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}",
125 "* pack" : "get_stage().add_child",
126 "$ xns" : "GtkClutter"
129 "id" : "codeeditview",
130 "* 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}",
132 "* pack" : "get_stage().add_child",
133 "$ xns" : "GtkClutter"
136 "id" : "addpropsview",
137 "* 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}",
139 "* pack" : "get_stage().add_child",
140 "$ xns" : "GtkClutter"
143 "id" : "projecteditview",
144 "* 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}",
146 "* pack" : "get_stage().add_child",
147 "$ xns" : "GtkClutter"
150 "id" : "buttonlayout",
151 "* 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}",
153 "* pack" : "get_stage().add_child",
157 "$ orientation" : "Clutter.Orientation.VERTICAL",
158 "xtype" : "BoxLayout",
160 "* prop" : "layout_manager"
164 "* init" : "this.el.set_size(50,50);",
166 "* pack" : "add_child",
170 "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);",
172 "* pack" : "add_child",
173 "$ xns" : "GtkClutter",
177 "clicked" : " ( ) => {\n \n this.windowstate.switchState(WindowState.State.PREVIEW);\n \n\n}"
179 "utf8 tooltip_text" : "Back",
182 "width_request" : 50,
184 "height_request" : 50,
187 "* pack" : "set_image",
189 "utf8 icon_name" : "go-previous",
199 "id" : "projectbutton",
200 "* init" : "this.el.set_size(50,50);",
202 "* pack" : "add_child",
206 "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);",
207 "* pack" : "add_child",
209 "$ xns" : "GtkClutter",
213 "clicked" : " ( ) => {\n this.windowstate.switchState(WindowState.State.PROJECT);\n \n\n}"
217 "width_request" : 50,
219 "height_request" : 50,
220 "$ tooltop_text" : "\"Open File\"",
223 "utf8 icon_name" : "document-open",
224 "* pack" : "set_image",
235 "id" : "editfilebutton",
236 "* init" : "this.el.set_size(50.0f,50.0f);",
238 "* pack" : "add_child",
242 "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);",
243 "* pack" : "add_child",
245 "$ xns" : "GtkClutter",
249 "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}"
253 "width_request" : 50,
255 "$ tooltip_text" : "\"File Details\"",
256 "height_request" : 50,
260 "utf8 icon_name" : "document-properties",
261 "* pack" : "set_image",
271 "id" : "projecteditbutton",
272 "* init" : "this.el.set_size(50,50);",
274 "* pack" : "add_child",
278 "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);",
279 "* pack" : "add_child",
281 "$ xns" : "GtkClutter",
285 "clicked" : " ( ) => {\n this.windowstate.switchState(WindowState.State.PROJECT);\n \n\n\n}"
289 "width_request" : 50,
291 "$ tooltip_text" : "\"Project Details\"",
292 "height_request" : 50,
295 "* pack" : "set_image",
297 "utf8 icon_name" : "emblem-system",
308 "button_press_event" : " ( ) => {\n \n \n \n switch (_this.state) {\n\n \n case \"addprop\":\n _this.hideAddProp();\n _this.showObject();\n break;\n case \"addlistener\":\n _this.hideAddListener();\n _this.showObject();\n break;\n\n// show \n case \"edit\":\n _this.showObject();\n break;\n \n// hide \n case \"object\":\n _this.hideObject();\n break;\n break;\n \n default:\n print(\"unhandled add objects from %s\\n\",_this.state);\n break;\n }\n return false; \n\n\n}",
309 "enter_event" : "( event) => {\n this.el.background_color = new Clutter.Color.from_string(\"#333\");\n return false;\n}",
310 "leave_event" : "( event) => {\n this.el.background_color = new Clutter.Color.from_string(\"#000\");\n return false;\n}"
312 "id" : "objectshowbutton",
313 "* init" : "this.el.set_size(50,50);",
315 "* pack" : "add_child",
319 "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);",
320 "* pack" : "add_child",
322 "$ xns" : "GtkClutter",
326 "clicked" : " ( ) => {\n \n this.windowstate.switchState(WindowState.State.OBJECT);\n \n\n\n}"
330 "width_request" : 50,
332 "$ tooltip_text" : "\"Add Child Element\"",
333 "height_request" : 50,
336 "utf8 icon_name" : "list-add",
337 "* pack" : "set_image",
348 "id" : "addpropbutton",
349 "* init" : "this.el.set_size(50,50);",
351 "* pack" : "add_child",
355 "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);",
356 "* pack" : "add_child",
358 "$ xns" : "GtkClutter",
362 "clicked" : " ( ) => {\n \n this.windowstate.switchState(WindowState.State.PROP);\n \n\n}"
366 "width_request" : 50,
368 "$ tooltip_text" : "\"Add Property\"",
369 "height_request" : 50,
373 "utf8 icon_name" : "format-justify-left",
374 "* pack" : "set_image",
384 "id" : "addlistenerbutton",
385 "* init" : "this.el.set_size(50,50);",
387 "* pack" : "add_child",
391 "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);",
392 "* pack" : "add_child",
394 "$ xns" : "GtkClutter",
398 "clicked" : " ( ) => {\n \n \n \n switch (_this.state) {\n case \"edit\":\n _this.showAddListener();\n break;\n \n \n case \"addlistener\":\n _this.hideAddListener();\n break;\n\n \n case \"addprop\":\n _this.hideAddProp();\n _this.showAddListener();\n break;\n case \"object\":\n _this.hideObject();\n _this.showAddListener();\n break;\n \n default:\n print(\"unhandled add listener from %s\\n\",_this.state);\n\n break;\n \n }\n return ; \n\n\n}"
402 "width_request" : 50,
404 "$ tooltip_text" : "\"Add Event Code\"",
405 "height_request" : 50,
408 "* pack" : "set_image",
410 "utf8 icon_name" : "appointment-new",
420 "id" : "addprojectbutton",
421 "* init" : "this.el.set_size(50.0f,50.0f);",
423 "* pack" : "add_child",
427 "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);",
428 "* pack" : "add_child",
430 "$ xns" : "GtkClutter",
434 "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 _this.left_projects.is_loaded = false; \n _this.left_projects.load();\n _this.left_projects.selectProject(p);\n return ; \n\n\n}"
438 "width_request" : 50,
440 "$ tooltip_text" : "\"New\\nProj.\"",
441 "height_request" : 50,
445 "utf8 icon_name" : "folder-new",
446 "* pack" : "set_image",
456 "id" : "addfilebutton",
457 "* init" : "this.el.set_size(50.0f,50.0f);",
459 "* pack" : "add_child",
463 "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);",
464 "* pack" : "add_child",
466 "$ xns" : "GtkClutter",
470 "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.new_file_dialog.show(f);\n \n return ; \n}"
474 "width_request" : 50,
476 "$ tooltip_text" : "\"Add File\"",
477 "height_request" : 50,
480 "utf8 icon_name" : "document-new",
481 "* pack" : "set_image",
492 "id" : "delprojectbutton",
493 "* init" : "this.el.set_size(50,50);",
495 "* pack" : "add_child",
499 "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);",
500 "* pack" : "add_child",
502 "$ xns" : "GtkClutter",
506 "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.left_projects.is_loaded = false;\n _this.left_projects.load();\n _this.clutterfiles.clearFiles();\n\n}"
510 "width_request" : 50,
512 "$ tooltip_text" : "\"Delelte Project\"",
513 "height_request" : 50,
517 "utf8 icon_name" : "user-trash",
518 "* pack" : "set_image",
529 "* init" : "this.el.set_size(50,50);",
531 "* pack" : "add_child",
535 "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);",
536 "* pack" : "add_child",
538 "$ xns" : "GtkClutter",
542 "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.hideViewEditing();\n}"
544 "utf8 tooltip_text" : "Open New Window",
547 "width_request" : 50,
549 "height_request" : 50,
553 "utf8 icon_name" : "window-new",
554 "* pack" : "set_image",