src/Builder4/RooProjectSettings.bjs
authorAlan <alan@roojs.com>
Wed, 6 Jul 2022 09:45:18 +0000 (17:45 +0800)
committerAlan <alan@roojs.com>
Wed, 6 Jul 2022 09:45:18 +0000 (17:45 +0800)
src/Builder4/RooProjectSettings.vala

src/Builder4/RooProjectSettings.bjs
src/Builder4/RooProjectSettings.vala

index 791dd80..e776975 100644 (file)
        ],
        "xtype" : "Notebook"
       },
-      {
-       "$ homogeneous" : true,
-       "$ xns" : "Gtk",
-       "* pack" : "pack_end,false,false,0",
-       "Gtk.Orientation orientation" : "Gtk.Orientation.HORIZONTAL",
-       "gboolean expand" : false,
-       "gboolean vexpand" : false,
-       "items" : [
-        {
-         "$ xns" : "Gtk",
-         "* pack" : "add",
-         "label" : "Apply",
-         "listeners" : {
-          "button_press_event" : [
-           "() => {",
-           "    _this.save();",
-           "          ",
-           "    _this.buttonPressed(\"apply\");",
-           "        return false;",
-           "}"
-          ]
-         },
-         "xtype" : "Button"
-        },
-        {
-         "$ xns" : "Gtk",
-         "* pack" : "add",
-         "label" : "Save",
-         "listeners" : {
-          "button_press_event" : [
-           "() => {",
-           "       _this.save();",
-           "          ",
-           "    _this.buttonPressed(\"save\");",
-           "        return false;",
-           "}"
-          ]
-         },
-         "xtype" : "Button"
-        }
-       ],
-       "xtype" : "Box"
-      },
       {
        "$ Gtk.Orientation orientation" : "Gtk.Orientation.HORIZONTAL",
        "$ xns" : "Gtk",
index 9c6adcb..c7d9254 100644 (file)
@@ -155,12 +155,9 @@ public class Xcls_RooProjectSettings : Object
             var child_0 = new Xcls_Notebook3( _this );
             child_0.ref();
             this.el.pack_start (  child_0.el , true,true,0 );
-            var child_1 = new Xcls_Box34( _this );
+            var child_1 = new Xcls_ButtonBox34( _this );
             child_1.ref();
-            this.el.pack_end (  child_1.el , false,false,0 );
-            var child_2 = new Xcls_ButtonBox37( _this );
-            child_2.ref();
-            this.el.add(  child_2.el );
+            this.el.add(  child_1.el );
         }
 
         // user defined functions
@@ -1175,100 +1172,7 @@ public class Xcls_RooProjectSettings : Object
 
 
 
-    public class Xcls_Box34 : Object
-    {
-        public Gtk.Box el;
-        private Xcls_RooProjectSettings  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_Box34(Xcls_RooProjectSettings _owner )
-        {
-            _this = _owner;
-            this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
-
-            // my vars (dec)
-
-            // set gobject values
-            this.el.homogeneous = true;
-            this.el.expand = false;
-            this.el.vexpand = false;
-            var child_0 = new Xcls_Button35( _this );
-            child_0.ref();
-            this.el.add (  child_0.el  );
-            var child_1 = new Xcls_Button36( _this );
-            child_1.ref();
-            this.el.add (  child_1.el  );
-        }
-
-        // user defined functions
-    }
-    public class Xcls_Button35 : Object
-    {
-        public Gtk.Button el;
-        private Xcls_RooProjectSettings  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_Button35(Xcls_RooProjectSettings _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_Button36 : Object
-    {
-        public Gtk.Button el;
-        private Xcls_RooProjectSettings  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_Button36(Xcls_RooProjectSettings _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_ButtonBox37 : Object
+    public class Xcls_ButtonBox34 : Object
     {
         public Gtk.ButtonBox el;
         private Xcls_RooProjectSettings  _this;
@@ -1277,7 +1181,7 @@ public class Xcls_RooProjectSettings : Object
             // my vars (def)
 
         // ctor
-        public Xcls_ButtonBox37(Xcls_RooProjectSettings _owner )
+        public Xcls_ButtonBox34(Xcls_RooProjectSettings _owner )
         {
             _this = _owner;
             this.el = new Gtk.ButtonBox( Gtk.Orientation.HORIZONTAL );
@@ -1285,20 +1189,20 @@ public class Xcls_RooProjectSettings : Object
             // my vars (dec)
 
             // set gobject values
-            var child_0 = new Xcls_Button38( _this );
+            var child_0 = new Xcls_Button35( _this );
             child_0.ref();
             this.el.add (  child_0.el  );
-            var child_1 = new Xcls_Button39( _this );
+            var child_1 = new Xcls_Button36( _this );
             child_1.ref();
             this.el.add (  child_1.el  );
-            var child_2 = new Xcls_Button40( _this );
+            var child_2 = new Xcls_Button37( _this );
             child_2.ref();
             this.el.add (  child_2.el  );
         }
 
         // user defined functions
     }
-    public class Xcls_Button38 : Object
+    public class Xcls_Button35 : Object
     {
         public Gtk.Button el;
         private Xcls_RooProjectSettings  _this;
@@ -1307,7 +1211,7 @@ public class Xcls_RooProjectSettings : Object
             // my vars (def)
 
         // ctor
-        public Xcls_Button38(Xcls_RooProjectSettings _owner )
+        public Xcls_Button35(Xcls_RooProjectSettings _owner )
         {
             _this = _owner;
             this.el = new Gtk.Button();
@@ -1328,7 +1232,7 @@ public class Xcls_RooProjectSettings : Object
         // user defined functions
     }
 
-    public class Xcls_Button39 : Object
+    public class Xcls_Button36 : Object
     {
         public Gtk.Button el;
         private Xcls_RooProjectSettings  _this;
@@ -1337,7 +1241,7 @@ public class Xcls_RooProjectSettings : Object
             // my vars (def)
 
         // ctor
-        public Xcls_Button39(Xcls_RooProjectSettings _owner )
+        public Xcls_Button36(Xcls_RooProjectSettings _owner )
         {
             _this = _owner;
             this.el = new Gtk.Button();
@@ -1359,7 +1263,7 @@ public class Xcls_RooProjectSettings : Object
         // user defined functions
     }
 
-    public class Xcls_Button40 : Object
+    public class Xcls_Button37 : Object
     {
         public Gtk.Button el;
         private Xcls_RooProjectSettings  _this;
@@ -1368,7 +1272,7 @@ public class Xcls_RooProjectSettings : Object
             // my vars (def)
 
         // ctor
-        public Xcls_Button40(Xcls_RooProjectSettings _owner )
+        public Xcls_Button37(Xcls_RooProjectSettings _owner )
         {
             _this = _owner;
             this.el = new Gtk.Button();