src/Builder4/PopoverFileDetails.vala
"id" : "PopoverFileDetails",
"@ void success" : "(Project.Project pr, JsRender.JsRender file)",
"| void show" : "(JsRender.JsRender c, Gtk.Widget btn) \n{\n this.project = c.project;\n \n \n \n //if (!this.el) {\n //this.init();\n //}\n \n _this.name.el.set_text(c.name);\n _this.title.el.set_text(c.title);\n _this.parent.el.set_text(c.parent); \n _this.region.el.set_text(c.region);\n _this.modOrder.el.set_text(c.modOrder);\n _this.permname.el.set_text(c.permname);\n \n if (c.path.length > 0) {\n \n this.save_btn.el.set_label(\"Save\");\n } else {\n this.save_btn.el.set_label(\"Create\");\n }\n \n var ar = new Gee.ArrayList<string>();\n _this.dbmodel.loadData(ar,\"\");\n // load the modules... if relivant..\n if (this.project.xtype == \"Gtk\") {\n var p = (Project.Gtk)c.project;\n var cg = p.compilegroups;\n\n var iter = cg.map_iterator();\n while(iter.next()) {\n var key = iter.get_key();\n if (key == \"_default_\") {\n continue;\n }\n ar.add(key);\n };\n _this.dbmodel.loadData(ar, c.build_module);\n\n }\n \n \n _this.file = c;\n //console.log('show all');\n this.el.set_modal(true);\n this.el.set_relative_to(btn);\n\n this.el.set_position(Gtk.PositionType.RIGHT);\n \n // window + header?\n \n this.el.show_all();\n \n //this.success = c.success;\n \n \n}",
+ "bool done" : true,
"# Project.Project project" : "",
"xtype" : "Popover",
"Gtk.PositionType position" : "Gtk.PositionType.RIGHT",
// my vars (def)
public signal void success (Project.Project pr, JsRender.JsRender file);
+ public bool done;
public Project.Project project;
public JsRender.JsRender file;
public Xcls_MainWindow mainwindow;
this.el = new Gtk.Popover( null );
// my vars (dec)
+ this.done = true;
this.file = null;
this.mainwindow = null;