NewBranch.bjs
[gitlive] / NewBranch.bjs
index 028643e..dd8877a 100644 (file)
   {
    "listeners" : {
     "delete_event" : "(self, event) => {\n    this.el.hide();\n    return true; \n    //test  \n}\n ",
-    "response" : " (self, response_id) =>  { \n  \n\t \n}",
-    "show" : "(self)  => {\n  this.el.show_all();\n  //test\n}"
+    "response" : " (self, response_id) =>  { \n  \n\t GLib.debug(\"got %d\", (int) response_id);\n}",
+    "show" : "(self)  => {\n  this.el.run();\n  //test\n}"
    },
-   "|   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",
+   "title" : "Create a working branch ",
    "xtype" : "Dialog",
-   "|   void show" : "( ) \n{\n    \n    \n    //this.success = c.success;\n    \n    \n}",
+   "|   void show" : "( ) \n{\n     // this.el.set_gravity(Gdk.Gravity.NORTH);\n    this.el.move((Gdk.Screen.width() / 2)- 250 ,0);\n    this.el.show_all();\n      \n}",
    "default_height" : 200,
    "$ modal" : true,
    "$ xns" : "Gtk",
        "xtype" : "Table",
        "n_columns" : 2,
        "$ xns" : "Gtk",
-       "n_rows" : 3,
+       "n_rows" : 2,
        "$ homogeneous" : true,
        "items" : [
         {
-         "label" : "Module to build (Vala only)",
+         "label" : "Select Ticket",
          "$ visible" : true,
          "xalign" : 0.90000000000000002,
          "* pack" : "attach_defaults,0,1,0,1",
@@ -51,7 +48,7 @@
         {
          "id" : "build_module",
          "* init" : "this.el.add_attribute(_this.dbcellrenderer.el , \"markup\", 1 );",
-         "* pack" : "attach_defaults,1,2,1,2",
+         "* pack" : "attach_defaults,1,2,0,1",
          "xtype" : "ComboBox",
          "$ xns" : "Gtk",
          "items" : [
@@ -73,7 +70,7 @@
          ]
         },
         {
-         "label" : "Component Name",
+         "label" : "or use this as branch name",
          "xalign" : 0.90000000000000002,
          "* pack" : "attach_defaults,0,1,1,2",
          "xtype" : "Label",
      ]
     },
     {
-     "label" : "Cancel",
+     "label" : "Do not create Branch",
      "* pack" : "add_action_widget,0",
      "xtype" : "Button",
+     "Gtk.ReliefStyle relief" : "Gtk.ReliefStyle.NONE",
      "$ xns" : "Gtk"
     },
     {
-     "label" : "OK",
+     "label" : "Create Branch",
      "* pack" : "add_action_widget,1",
      "xtype" : "Button",
      "$ xns" : "Gtk"