NewBranch.bjs
authorAlan Knowles <alan@roojs.com>
Fri, 14 Dec 2018 02:12:09 +0000 (10:12 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 14 Dec 2018 02:12:09 +0000 (10:12 +0800)
NewBranch.vala

NewBranch.bjs
NewBranch.vala

index 209f1df..92c97f8 100644 (file)
        "n_rows" : 5,
        "int margin" : 2,
        "items" : [
+        {
+         "label" : "Project",
+         "$ visible" : true,
+         "Gtk.Align halign" : "Gtk.Align.START",
+         "* pack" : "attach_defaults,0,1,0,1",
+         "xtype" : "Label",
+         "$ justify" : "Gtk.Justification.RIGHT",
+         "x_options" : 4,
+         "$ xns" : "Gtk"
+        },
         {
          "label" : "Project",
          "$ visible" : true,
index 62e20a5..457fc74 100644 (file)
@@ -42,10 +42,10 @@ public class NewBranch : 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_Button10( _this );
+        var child_1 = new Xcls_Button11( _this );
         child_1.ref();
         this.el.add_action_widget (  child_1.el , 0 );
-        var child_2 = new Xcls_Button11( _this );
+        var child_2 = new Xcls_Button12( _this );
         child_2.ref();
         this.el.add_action_widget (  child_2.el , 1 );
 
@@ -172,15 +172,18 @@ public class NewBranch : Object
             var child_0 = new Xcls_Label4( _this );
             child_0.ref();
             this.el.attach_defaults (  child_0.el , 0,1,0,1 );
-            var child_1 = new Xcls_ticketsel( _this );
+            var child_1 = new Xcls_Label5( _this );
             child_1.ref();
-            this.el.attach_defaults (  child_1.el , 2,5,1,2 );
-            var child_2 = new Xcls_Label8( _this );
+            this.el.attach_defaults (  child_1.el , 0,1,0,1 );
+            var child_2 = new Xcls_ticketsel( _this );
             child_2.ref();
-            this.el.attach_defaults (  child_2.el , 0,1,2,3 );
-            var child_3 = new Xcls_name( _this );
+            this.el.attach_defaults (  child_2.el , 2,5,1,2 );
+            var child_3 = new Xcls_Label9( _this );
             child_3.ref();
-            this.el.attach_defaults (  child_3.el , 0,5,3,4 );
+            this.el.attach_defaults (  child_3.el , 0,1,2,3 );
+            var child_4 = new Xcls_name( _this );
+            child_4.ref();
+            this.el.attach_defaults (  child_4.el , 0,5,3,4 );
         }
 
         // user defined functions
@@ -210,6 +213,31 @@ public class NewBranch : Object
         // user defined functions
     }
 
+    public class Xcls_Label5 : Object
+    {
+        public Gtk.Label el;
+        private NewBranch  _this;
+
+
+            // my vars (def)
+
+        // ctor
+        public Xcls_Label5(NewBranch _owner )
+        {
+            _this = _owner;
+            this.el = new Gtk.Label( "Project" );
+
+            // my vars (dec)
+
+            // set gobject values
+            this.el.halign = Gtk.Align.START;
+            this.el.justify = Gtk.Justification.RIGHT;
+            this.el.visible = true;
+        }
+
+        // user defined functions
+    }
+
     public class Xcls_ticketsel : Object
     {
         public Gtk.ComboBox el;
@@ -365,7 +393,7 @@ public class NewBranch : Object
     }
 
 
-    public class Xcls_Label8 : Object
+    public class Xcls_Label9 : Object
     {
         public Gtk.Label el;
         private NewBranch  _this;
@@ -374,7 +402,7 @@ public class NewBranch : Object
             // my vars (def)
 
         // ctor
-        public Xcls_Label8(NewBranch _owner )
+        public Xcls_Label9(NewBranch _owner )
         {
             _this = _owner;
             this.el = new Gtk.Label( "Use this as branch name" );
@@ -416,7 +444,7 @@ public class NewBranch : Object
 
 
 
-    public class Xcls_Button10 : Object
+    public class Xcls_Button11 : Object
     {
         public Gtk.Button el;
         private NewBranch  _this;
@@ -425,7 +453,7 @@ public class NewBranch : Object
             // my vars (def)
 
         // ctor
-        public Xcls_Button10(NewBranch _owner )
+        public Xcls_Button11(NewBranch _owner )
         {
             _this = _owner;
             this.el = new Gtk.Button();
@@ -440,7 +468,7 @@ public class NewBranch : Object
         // user defined functions
     }
 
-    public class Xcls_Button11 : Object
+    public class Xcls_Button12 : Object
     {
         public Gtk.Button el;
         private NewBranch  _this;
@@ -449,7 +477,7 @@ public class NewBranch : Object
             // my vars (def)
 
         // ctor
-        public Xcls_Button11(NewBranch _owner )
+        public Xcls_Button12(NewBranch _owner )
         {
             _this = _owner;
             this.el = new Gtk.Button();