src/Builder4/ProjectSettings.bjs
authorAlan Knowles <alan@roojs.com>
Mon, 20 Apr 2015 07:58:13 +0000 (15:58 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 20 Apr 2015 07:58:13 +0000 (15:58 +0800)
src/Builder4/ProjectSettings.vala

src/Builder4/ProjectSettings.bjs
src/Builder4/ProjectSettings.vala

index 9db7c88..9006b9b 100644 (file)
    "border_width" : 5,
    "$ homogeneous" : false,
    "items" : [
+    {
+     "* pack" : "pack_start,false,false,0",
+     "xtype" : "HBox",
+     "gboolean expand" : false,
+     "$ xns" : "Gtk",
+     "$ homogeneous" : true,
+     "gboolean vexpand" : false,
+     "items" : [
+      {
+       "listeners" : {
+        "button_press_event" : "() => {\n    _this.save();\n          \n    _this.buttonPressed(\"apply\");\n        return false;\n}"
+       },
+       "label" : "Apply",
+       "* pack" : "add",
+       "xtype" : "Button",
+       "$ xns" : "Gtk"
+      },
+      {
+       "listeners" : {
+        "button_press_event" : "() => {\n       _this.save();\n          \n    _this.buttonPressed(\"save\");\n        return false;\n}"
+       },
+       "label" : "Save",
+       "* pack" : "add",
+       "xtype" : "Button",
+       "$ xns" : "Gtk"
+      }
+     ]
+    },
     {
      "* pack" : "pack_start,true,true,0",
      "xtype" : "Notebook",
        "gboolean homogeneous" : false,
        "$ xns" : "Gtk",
        "items" : [
-        {
-         "* pack" : "pack_start,false,false,0",
-         "xtype" : "HBox",
-         "gboolean expand" : false,
-         "$ xns" : "Gtk",
-         "$ homogeneous" : true,
-         "gboolean vexpand" : false,
-         "items" : [
-          {
-           "listeners" : {
-            "button_press_event" : "() => {\n    _this.save();\n          \n    _this.buttonPressed(\"apply\");\n        return false;\n}"
-           },
-           "label" : "Apply",
-           "xtype" : "Button",
-           "* pack" : "add",
-           "$ xns" : "Gtk"
-          },
-          {
-           "listeners" : {
-            "button_press_event" : "() => {\n       _this.save();\n          \n    _this.buttonPressed(\"save\");\n        return false;\n}"
-           },
-           "label" : "Save",
-           "xtype" : "Button",
-           "* pack" : "add",
-           "$ xns" : "Gtk"
-          }
-         ]
-        },
         {
          "label" : "filename",
          "id" : "path",
index 00cf6ab..759d268 100644 (file)
@@ -33,9 +33,12 @@ public class Xcls_ProjectSettings : Object
 
         // set gobject values
         this.el.border_width = 5;
-        var child_0 = new Xcls_Notebook2( _this );
+        var child_0 = new Xcls_HBox2( _this );
         child_0.ref();
-        this.el.pack_start (  child_0.el , true,true,0 );
+        this.el.pack_start (  child_0.el , false,false,0 );
+        var child_1 = new Xcls_Notebook5( _this );
+        child_1.ref();
+        this.el.pack_start (  child_1.el , true,true,0 );
     }
 
     // user defined functions 
@@ -74,202 +77,199 @@ public class Xcls_ProjectSettings : Object
         
         
     }
-    public class Xcls_Notebook2 : Object 
+    public class Xcls_HBox2 : Object 
     {
-        public Gtk.Notebook el;
+        public Gtk.HBox el;
         private Xcls_ProjectSettings  _this;
 
 
             // my vars (def)
 
         // ctor 
-        public Xcls_Notebook2(Xcls_ProjectSettings _owner )
+        public Xcls_HBox2(Xcls_ProjectSettings _owner )
         {
             _this = _owner;
-            this.el = new Gtk.Notebook();
+            this.el = new Gtk.HBox( true, 0 );
 
             // my vars (dec)
 
             // set gobject values
-            var child_0 = new Xcls_label_global( _this );
+            this.el.expand = false;
+            this.el.vexpand = false;
+            var child_0 = new Xcls_Button3( _this );
             child_0.ref();
-            var child_1 = new Xcls_label_database( _this );
+            this.el.add (  child_0.el  );
+            var child_1 = new Xcls_Button4( _this );
             child_1.ref();
-            var child_2 = new Xcls_VBox5( _this );
-            child_2.ref();
-            this.el.append_page (  child_2.el , _this.label_global.el );
+            this.el.add (  child_1.el  );
         }
 
         // user defined functions 
     }
-    public class Xcls_label_global : Object 
+    public class Xcls_Button3 : Object 
     {
-        public Gtk.Label el;
+        public Gtk.Button el;
         private Xcls_ProjectSettings  _this;
 
 
             // my vars (def)
 
         // ctor 
-        public Xcls_label_global(Xcls_ProjectSettings _owner )
+        public Xcls_Button3(Xcls_ProjectSettings _owner )
         {
             _this = _owner;
-            _this.label_global = this;
-            this.el = new Gtk.Label( "Global" );
+            this.el = new Gtk.Button();
 
             // my vars (dec)
 
             // set gobject values
+            this.el.label = "Apply";
+
+            // listeners 
+            this.el.button_press_event.connect( () => {
+                _this.save();
+                      
+                _this.buttonPressed("apply");
+                    return false;
+            });
         }
 
         // user defined functions 
     }
-    public class Xcls_label_database : Object 
+    public class Xcls_Button4 : Object 
     {
-        public Gtk.Label el;
+        public Gtk.Button el;
         private Xcls_ProjectSettings  _this;
 
 
             // my vars (def)
 
         // ctor 
-        public Xcls_label_database(Xcls_ProjectSettings _owner )
+        public Xcls_Button4(Xcls_ProjectSettings _owner )
         {
             _this = _owner;
-            _this.label_database = this;
-            this.el = new Gtk.Label( "Database" );
+            this.el = new Gtk.Button();
 
             // my vars (dec)
 
             // set gobject values
+            this.el.label = "Save";
+
+            // listeners 
+            this.el.button_press_event.connect( () => {
+                   _this.save();
+                      
+                _this.buttonPressed("save");
+                    return false;
+            });
         }
 
         // user defined functions 
     }
-    public class Xcls_VBox5 : Object 
+    public class Xcls_Notebook5 : Object 
     {
-        public Gtk.VBox el;
+        public Gtk.Notebook el;
         private Xcls_ProjectSettings  _this;
 
 
             // my vars (def)
 
         // ctor 
-        public Xcls_VBox5(Xcls_ProjectSettings _owner )
+        public Xcls_Notebook5(Xcls_ProjectSettings _owner )
         {
             _this = _owner;
-            this.el = new Gtk.VBox( false, 0 );
+            this.el = new Gtk.Notebook();
 
             // my vars (dec)
 
             // set gobject values
-            var child_0 = new Xcls_HBox6( _this );
+            var child_0 = new Xcls_label_global( _this );
             child_0.ref();
-            this.el.pack_start (  child_0.el , false,false,0 );
-            var child_1 = new Xcls_path( _this );
+            var child_1 = new Xcls_label_database( _this );
             child_1.ref();
-            this.el.pack_start (  child_1.el , false,false,0 );
-            var child_2 = new Xcls_Label10( _this );
+            var child_2 = new Xcls_VBox8( _this );
             child_2.ref();
-            this.el.pack_start (  child_2.el , false,false,0 );
-            var child_3 = new Xcls_HBox11( _this );
-            child_3.ref();
-            this.el.pack_start (  child_3.el , false,false,0 );
-            var child_4 = new Xcls_HBox14( _this );
-            child_4.ref();
-            this.el.pack_start (  child_4.el , false,false,0 );
-            var child_5 = new Xcls_ScrolledWindow17( _this );
-            child_5.ref();
-            this.el.pack_start (  child_5.el , true,true,0 );
+            this.el.append_page (  child_2.el , _this.label_global.el );
         }
 
         // user defined functions 
     }
-    public class Xcls_HBox6 : Object 
+    public class Xcls_label_global : Object 
     {
-        public Gtk.HBox el;
+        public Gtk.Label el;
         private Xcls_ProjectSettings  _this;
 
 
             // my vars (def)
 
         // ctor 
-        public Xcls_HBox6(Xcls_ProjectSettings _owner )
+        public Xcls_label_global(Xcls_ProjectSettings _owner )
         {
             _this = _owner;
-            this.el = new Gtk.HBox( true, 0 );
+            _this.label_global = this;
+            this.el = new Gtk.Label( "Global" );
 
             // my vars (dec)
 
             // set gobject values
-            this.el.expand = false;
-            this.el.vexpand = false;
-            var child_0 = new Xcls_Button7( _this );
-            child_0.ref();
-            this.el.add (  child_0.el  );
-            var child_1 = new Xcls_Button8( _this );
-            child_1.ref();
-            this.el.add (  child_1.el  );
         }
 
         // user defined functions 
     }
-    public class Xcls_Button7 : Object 
+    public class Xcls_label_database : Object 
     {
-        public Gtk.Button el;
+        public Gtk.Label el;
         private Xcls_ProjectSettings  _this;
 
 
             // my vars (def)
 
         // ctor 
-        public Xcls_Button7(Xcls_ProjectSettings _owner )
+        public Xcls_label_database(Xcls_ProjectSettings _owner )
         {
             _this = _owner;
-            this.el = new Gtk.Button();
+            _this.label_database = this;
+            this.el = new Gtk.Label( "Database" );
 
             // my vars (dec)
 
             // set gobject values
-            this.el.label = "Apply";
-
-            // listeners 
-            this.el.button_press_event.connect( () => {
-                _this.save();
-                      
-                _this.buttonPressed("apply");
-                    return false;
-            });
         }
 
         // user defined functions 
     }
-    public class Xcls_Button8 : Object 
+    public class Xcls_VBox8 : Object 
     {
-        public Gtk.Button el;
+        public Gtk.VBox el;
         private Xcls_ProjectSettings  _this;
 
 
             // my vars (def)
 
         // ctor 
-        public Xcls_Button8(Xcls_ProjectSettings _owner )
+        public Xcls_VBox8(Xcls_ProjectSettings _owner )
         {
             _this = _owner;
-            this.el = new Gtk.Button();
+            this.el = new Gtk.VBox( false, 0 );
 
             // my vars (dec)
 
             // set gobject values
-            this.el.label = "Save";
-
-            // listeners 
-            this.el.button_press_event.connect( () => {
-                   _this.save();
-                      
-                _this.buttonPressed("save");
-                    return false;
-            });
+            var child_0 = new Xcls_path( _this );
+            child_0.ref();
+            this.el.pack_start (  child_0.el , false,false,0 );
+            var child_1 = new Xcls_Label10( _this );
+            child_1.ref();
+            this.el.pack_start (  child_1.el , false,false,0 );
+            var child_2 = new Xcls_HBox11( _this );
+            child_2.ref();
+            this.el.pack_start (  child_2.el , false,false,0 );
+            var child_3 = new Xcls_HBox14( _this );
+            child_3.ref();
+            this.el.pack_start (  child_3.el , false,false,0 );
+            var child_4 = new Xcls_ScrolledWindow17( _this );
+            child_4.ref();
+            this.el.pack_start (  child_4.el , true,true,0 );
         }
 
         // user defined functions