NewBranch.bjs
authorAlan Knowles <alan@roojs.com>
Tue, 30 Oct 2018 08:44:36 +0000 (16:44 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 30 Oct 2018 08:44:36 +0000 (16:44 +0800)
NewBranch.vala

NewBranch.bjs
NewBranch.vala

index ff1c0ab..9c4549a 100644 (file)
@@ -16,6 +16,7 @@
    "|   void updateFileFromEntry" : "() {\n\n        _this.file.title = _this.title.el.get_text();\n        _this.file.region = _this.region.el.get_text();            \n        _this.file.parent = _this.parent.el.get_text();                        \n        _this.file.permname = _this.permname.el.get_text();                                    \n        _this.file.modOrder = _this.modOrder.el.get_text();\n        \n        if (_this.file.name.length  > 0 && _this.file.name != _this.name.el.get_text()) {\n            _this.file.renameTo(_this.name.el.get_text());\n        }\n        // store the module...\n        _this.file.build_module = \"\";        \n         Gtk.TreeIter iter; \n        if (_this.build_module.el.get_active_iter (out iter)) {\n             Value vfname;\n             this.dbmodel.el.get_value (iter, 0, out vfname);\n             if (((string)vfname).length > 0) {\n                 _this.file.build_module = (string)vfname;\n             }\n    \n        }\n        \n        \n\n                                                    \n}    ",
    "id" : "DialogNewComponent",
    "default_width" : 500,
+   "@ void success" : "(Project.Project pr, JsRender.JsRender file)",
    "$ deletable" : true,
    "title" : "New Component",
    "xtype" : "Dialog",
index e75d2d5..1cda5a7 100644 (file)
@@ -23,6 +23,7 @@ public class Xcls_DialogNewComponent : Object
     public Xcls_dbmodel dbmodel;
 
         // my vars (def)
+    public signal void success (Project.Project pr, JsRender.JsRender file);
 
     // ctor
     public Xcls_DialogNewComponent()