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

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

index 959d06a..6d69202 100644 (file)
        "xtype" : "Label",
        "$ xns" : "Gtk",
        "utf8 label" : "Database"
+      },
+      {
+       "* 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"
+        }
+       ]
       }
      ]
     },
index 3e233b8..aef008d 100644 (file)
@@ -36,22 +36,22 @@ public class Xcls_ProjectSettings : Object
         var child_0 = new Xcls_Notebook2( _this );
         child_0.ref();
         this.el.pack_start (  child_0.el , true,true,0 );
-        var child_1 = new Xcls_HBox5( _this );
+        var child_1 = new Xcls_HBox8( _this );
         child_1.ref();
         this.el.pack_start (  child_1.el , false,false,0 );
         var child_2 = new Xcls_path( _this );
         child_2.ref();
         this.el.pack_start (  child_2.el , false,false,0 );
-        var child_3 = new Xcls_Label9( _this );
+        var child_3 = new Xcls_Label12( _this );
         child_3.ref();
         this.el.pack_start (  child_3.el , false,false,0 );
-        var child_4 = new Xcls_HBox10( _this );
+        var child_4 = new Xcls_HBox13( _this );
         child_4.ref();
         this.el.pack_start (  child_4.el , false,false,0 );
-        var child_5 = new Xcls_HBox13( _this );
+        var child_5 = new Xcls_HBox16( _this );
         child_5.ref();
         this.el.pack_start (  child_5.el , false,false,0 );
-        var child_6 = new Xcls_ScrolledWindow16( _this );
+        var child_6 = new Xcls_ScrolledWindow19( _this );
         child_6.ref();
         this.el.pack_start (  child_6.el , true,true,0 );
     }
@@ -113,6 +113,9 @@ public class Xcls_ProjectSettings : Object
             child_0.ref();
             var child_1 = new Xcls_label_database( _this );
             child_1.ref();
+            var child_2 = new Xcls_HBox5( _this );
+            child_2.ref();
+            this.el.pack_start (  child_2.el , false,false,0 );
         }
 
         // user defined functions 
@@ -250,6 +253,95 @@ public class Xcls_ProjectSettings : Object
 
         // user defined functions 
     }
+    public class Xcls_HBox8 : Object 
+    {
+        public Gtk.HBox el;
+        private Xcls_ProjectSettings  _this;
+
+
+            // my vars (def)
+
+        // ctor 
+        public Xcls_HBox8(Xcls_ProjectSettings _owner )
+        {
+            _this = _owner;
+            this.el = new Gtk.HBox( true, 0 );
+
+            // my vars (dec)
+
+            // set gobject values
+            this.el.expand = false;
+            this.el.vexpand = false;
+            var child_0 = new Xcls_Button9( _this );
+            child_0.ref();
+            this.el.add (  child_0.el  );
+            var child_1 = new Xcls_Button10( _this );
+            child_1.ref();
+            this.el.add (  child_1.el  );
+        }
+
+        // user defined functions 
+    }
+    public class Xcls_Button9 : Object 
+    {
+        public Gtk.Button el;
+        private Xcls_ProjectSettings  _this;
+
+
+            // my vars (def)
+
+        // ctor 
+        public Xcls_Button9(Xcls_ProjectSettings _owner )
+        {
+            _this = _owner;
+            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_Button10 : Object 
+    {
+        public Gtk.Button el;
+        private Xcls_ProjectSettings  _this;
+
+
+            // my vars (def)
+
+        // ctor 
+        public Xcls_Button10(Xcls_ProjectSettings _owner )
+        {
+            _this = _owner;
+            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_path : Object 
     {
         public Gtk.Label el;
@@ -273,7 +365,7 @@ public class Xcls_ProjectSettings : Object
 
         // user defined functions 
     }
-    public class Xcls_Label9 : Object 
+    public class Xcls_Label12 : Object 
     {
         public Gtk.Label el;
         private Xcls_ProjectSettings  _this;
@@ -282,7 +374,7 @@ public class Xcls_ProjectSettings : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_Label9(Xcls_ProjectSettings _owner )
+        public Xcls_Label12(Xcls_ProjectSettings _owner )
         {
             _this = _owner;
             this.el = new Gtk.Label( "HTML To insert at end of <HEAD>" );
@@ -294,7 +386,7 @@ public class Xcls_ProjectSettings : Object
 
         // user defined functions 
     }
-    public class Xcls_HBox10 : Object 
+    public class Xcls_HBox13 : Object 
     {
         public Gtk.HBox el;
         private Xcls_ProjectSettings  _this;
@@ -303,7 +395,7 @@ public class Xcls_ProjectSettings : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_HBox10(Xcls_ProjectSettings _owner )
+        public Xcls_HBox13(Xcls_ProjectSettings _owner )
         {
             _this = _owner;
             this.el = new Gtk.HBox( false, 0 );
@@ -312,7 +404,7 @@ public class Xcls_ProjectSettings : Object
 
             // set gobject values
             this.el.expand = false;
-            var child_0 = new Xcls_Label11( _this );
+            var child_0 = new Xcls_Label14( _this );
             child_0.ref();
             this.el.pack_start (  child_0.el , false,false,0 );
             var child_1 = new Xcls_base_template( _this );
@@ -322,7 +414,7 @@ public class Xcls_ProjectSettings : Object
 
         // user defined functions 
     }
-    public class Xcls_Label11 : Object 
+    public class Xcls_Label14 : Object 
     {
         public Gtk.Label el;
         private Xcls_ProjectSettings  _this;
@@ -331,7 +423,7 @@ public class Xcls_ProjectSettings : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_Label11(Xcls_ProjectSettings _owner )
+        public Xcls_Label14(Xcls_ProjectSettings _owner )
         {
             _this = _owner;
             this.el = new Gtk.Label( "HTML template file" );
@@ -365,7 +457,7 @@ public class Xcls_ProjectSettings : Object
 
         // user defined functions 
     }
-    public class Xcls_HBox13 : Object 
+    public class Xcls_HBox16 : Object 
     {
         public Gtk.HBox el;
         private Xcls_ProjectSettings  _this;
@@ -374,7 +466,7 @@ public class Xcls_ProjectSettings : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_HBox13(Xcls_ProjectSettings _owner )
+        public Xcls_HBox16(Xcls_ProjectSettings _owner )
         {
             _this = _owner;
             this.el = new Gtk.HBox( false, 0 );
@@ -383,7 +475,7 @@ public class Xcls_ProjectSettings : Object
 
             // set gobject values
             this.el.expand = false;
-            var child_0 = new Xcls_Label14( _this );
+            var child_0 = new Xcls_Label17( _this );
             child_0.ref();
             this.el.pack_start (  child_0.el , false,false,0 );
             var child_1 = new Xcls_rootURL( _this );
@@ -393,7 +485,7 @@ public class Xcls_ProjectSettings : Object
 
         // user defined functions 
     }
-    public class Xcls_Label14 : Object 
+    public class Xcls_Label17 : Object 
     {
         public Gtk.Label el;
         private Xcls_ProjectSettings  _this;
@@ -402,7 +494,7 @@ public class Xcls_ProjectSettings : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_Label14(Xcls_ProjectSettings _owner )
+        public Xcls_Label17(Xcls_ProjectSettings _owner )
         {
             _this = _owner;
             this.el = new Gtk.Label( "root URL" );
@@ -436,7 +528,7 @@ public class Xcls_ProjectSettings : Object
 
         // user defined functions 
     }
-    public class Xcls_ScrolledWindow16 : Object 
+    public class Xcls_ScrolledWindow19 : Object 
     {
         public Gtk.ScrolledWindow el;
         private Xcls_ProjectSettings  _this;
@@ -445,7 +537,7 @@ public class Xcls_ProjectSettings : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_ScrolledWindow16(Xcls_ProjectSettings _owner )
+        public Xcls_ScrolledWindow19(Xcls_ProjectSettings _owner )
         {
             _this = _owner;
             this.el = new Gtk.ScrolledWindow( null, null );