src/Builder4/DialogNewComponent.bjs
authorAlan Knowles <alan@roojs.com>
Mon, 27 Apr 2015 09:37:42 +0000 (17:37 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 27 Apr 2015 09:37:42 +0000 (17:37 +0800)
src/Builder4/DialogNewComponent.vala

src/Builder4/DialogNewComponent.bjs
src/Builder4/DialogNewComponent.vala

index 86d43e1..86aed21 100644 (file)
@@ -13,8 +13,8 @@
     "show" : "(self)  => {\n  this.el.show_all();\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                                                    \n}    ",
-   "@ void success" : "(Project.Project pr, JsRender.JsRender file)",
    "id" : "DialogNewComponent",
+   "@ void success" : "(Project.Project pr, JsRender.JsRender file)",
    "default_width" : 500,
    "$ deletable" : true,
    "# Project.Project project" : "",
@@ -74,8 +74,8 @@
         },
         {
          "label" : "Region",
-         "tooltip_text" : "center, north, south, east, west",
          "$ visible" : true,
+         "tooltip_text" : "center, north, south, east, west",
          "xalign" : 0.90000000000000002,
          "* pack" : "attach_defaults,0,1,2,3",
          "xtype" : "Label",
          "x_options" : 4,
          "$ xns" : "Gtk"
         },
+        {
+         "id" : "modOrder",
+         "$ visible" : true,
+         "xtype" : "Entry",
+         "* pack" : "attach_defaults,1,2,5,6",
+         "$ xns" : "Gtk"
+        },
+        {
+         "label" : "Order (for tabs)",
+         "$ visible" : true,
+         "xalign" : 0.90000000000000002,
+         "* pack" : "attach_defaults,0,1,5,6",
+         "xtype" : "Label",
+         "$ justify" : "Gtk.Justification.RIGHT",
+         "x_options" : 4,
+         "$ xns" : "Gtk"
+        },
         {
          "id" : "modOrder",
          "$ visible" : true,
     },
     {
      "label" : "Cancel",
-     "* pack" : "add_action_widget,0",
      "xtype" : "Button",
+     "* pack" : "add_action_widget,0",
      "$ xns" : "Gtk"
     },
     {
      "label" : "OK",
-     "* pack" : "add_action_widget,1",
      "xtype" : "Button",
+     "* pack" : "add_action_widget,1",
      "$ xns" : "Gtk"
     }
    ]
index bca2056..9709267 100644 (file)
@@ -17,6 +17,7 @@ public class Xcls_DialogNewComponent : Object
     public Xcls_region region;
     public Xcls_parent parent;
     public Xcls_permname permname;
+    public Xcls_modOrder modOrder;
     public Xcls_modOrder modOrder;
 
         // my vars (def)
@@ -42,10 +43,10 @@ public class Xcls_DialogNewComponent : Object
         var child_0 = new Xcls_VBox2( _this );
         child_0.ref();
         this.el.get_content_area().add (  child_0.el  );
-        var child_1 = new Xcls_Button16( _this );
+        var child_1 = new Xcls_Button18( _this );
         child_1.ref();
         this.el.add_action_widget (  child_1.el , 0 );
-        var child_2 = new Xcls_Button17( _this );
+        var child_2 = new Xcls_Button19( _this );
         child_2.ref();
         this.el.add_action_widget (  child_2.el , 1 );
 
@@ -281,6 +282,12 @@ public class Xcls_DialogNewComponent : Object
             var child_11 = new Xcls_modOrder( _this );
             child_11.ref();
             this.el.attach_defaults (  child_11.el , 1,2,5,6 );
+            var child_12 = new Xcls_Label16( _this );
+            child_12.ref();
+            this.el.attach_defaults (  child_12.el , 0,1,5,6 );
+            var child_13 = new Xcls_modOrder( _this );
+            child_13.ref();
+            this.el.attach_defaults (  child_13.el , 1,2,5,6 );
         }
 
         // user defined functions 
@@ -567,7 +574,54 @@ public class Xcls_DialogNewComponent : Object
 
         // user defined functions 
     }
-    public class Xcls_Button16 : Object 
+    public class Xcls_Label16 : Object 
+    {
+        public Gtk.Label el;
+        private Xcls_DialogNewComponent  _this;
+
+
+            // my vars (def)
+
+        // ctor 
+        public Xcls_Label16(Xcls_DialogNewComponent _owner )
+        {
+            _this = _owner;
+            this.el = new Gtk.Label( "Order (for tabs)" );
+
+            // my vars (dec)
+
+            // set gobject values
+            this.el.justify = Gtk.Justification.RIGHT;
+            this.el.xalign = 0.900000f;
+            this.el.visible = true;
+        }
+
+        // user defined functions 
+    }
+    public class Xcls_modOrder : Object 
+    {
+        public Gtk.Entry el;
+        private Xcls_DialogNewComponent  _this;
+
+
+            // my vars (def)
+
+        // ctor 
+        public Xcls_modOrder(Xcls_DialogNewComponent _owner )
+        {
+            _this = _owner;
+            _this.modOrder = this;
+            this.el = new Gtk.Entry();
+
+            // my vars (dec)
+
+            // set gobject values
+            this.el.visible = true;
+        }
+
+        // user defined functions 
+    }
+    public class Xcls_Button18 : Object 
     {
         public Gtk.Button el;
         private Xcls_DialogNewComponent  _this;
@@ -576,7 +630,7 @@ public class Xcls_DialogNewComponent : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_Button16(Xcls_DialogNewComponent _owner )
+        public Xcls_Button18(Xcls_DialogNewComponent _owner )
         {
             _this = _owner;
             this.el = new Gtk.Button();
@@ -589,7 +643,7 @@ public class Xcls_DialogNewComponent : Object
 
         // user defined functions 
     }
-    public class Xcls_Button17 : Object 
+    public class Xcls_Button19 : Object 
     {
         public Gtk.Button el;
         private Xcls_DialogNewComponent  _this;
@@ -598,7 +652,7 @@ public class Xcls_DialogNewComponent : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_Button17(Xcls_DialogNewComponent _owner )
+        public Xcls_Button19(Xcls_DialogNewComponent _owner )
         {
             _this = _owner;
             this.el = new Gtk.Button();