src/Builder4/MainWindow.bjs
authorAlan <alan@roojs.com>
Thu, 7 Jul 2022 10:50:25 +0000 (18:50 +0800)
committerAlan <alan@roojs.com>
Thu, 7 Jul 2022 10:50:25 +0000 (18:50 +0800)
src/Builder4/MainWindow.vala

src/Builder4/MainWindow.bjs
src/Builder4/MainWindow.vala

index e872e6b..3ead443 100644 (file)
           "}"
          ]
         },
-        {
-         "$ tooltop_text" : [
-          "\"Open a new Window",
-          "\""
-         ],
-         "$ xns" : "Gtk",
-         "* pack" : "add",
-         "bool always_show_image" : true,
-         "id" : "windownew",
-         "items" : [
-          {
-           "$ xns" : "Gtk",
-           "* pack" : "set_image",
-           "utf8 icon_name" : "window-new",
-           "xtype" : "Image"
-          }
-         ],
-         "listeners" : {
-          "clicked" : [
-           "  ( ) => {",
-           "     _this.openNewWindow();",
-           "      ",
-           "}"
-          ]
-         },
-         "string label" : "Windows",
-         "xtype" : "Button"
-        },
         {
          "$ tooltop_text" : "\"Open File\"",
          "$ xns" : "Gtk",
index f5b13ce..1d956e4 100644 (file)
@@ -14,7 +14,6 @@ public class Xcls_MainWindow : Object
     }
     public Xcls_headerbar headerbar;
     public Xcls_windowbtn windowbtn;
-    public Xcls_windownew windownew;
     public Xcls_open_projects_btn open_projects_btn;
     public Xcls_vbox vbox;
     public Xcls_mainpane mainpane;
@@ -202,12 +201,9 @@ public class Xcls_MainWindow : Object
             var child_0 = new Xcls_windowbtn( _this );
             child_0.ref();
             this.el.add(  child_0.el );
-            var child_1 = new Xcls_windownew( _this );
+            var child_1 = new Xcls_open_projects_btn( _this );
             child_1.ref();
             this.el.add (  child_1.el  );
-            var child_2 = new Xcls_open_projects_btn( _this );
-            child_2.ref();
-            this.el.add (  child_2.el  );
         }
 
         // user defined functions
@@ -393,63 +389,6 @@ public class Xcls_MainWindow : Object
 
 
 
-    public class Xcls_windownew : Object
-    {
-        public Gtk.Button el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_windownew(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            _this.windownew = this;
-            this.el = new Gtk.Button();
-
-            // my vars (dec)
-
-            // set gobject values
-            this.el.always_show_image = true;
-            this.el.label = "Windows";
-            var child_0 = new Xcls_Image10( _this );
-            child_0.ref();
-            this.el.set_image (  child_0.el  );
-
-            //listeners
-            this.el.clicked.connect( ( ) => {
-                 _this.openNewWindow();
-                  
-            });
-        }
-
-        // user defined functions
-    }
-    public class Xcls_Image10 : Object
-    {
-        public Gtk.Image el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_Image10(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            this.el = new Gtk.Image();
-
-            // my vars (dec)
-
-            // set gobject values
-            this.el.icon_name = "window-new";
-        }
-
-        // user defined functions
-    }
-
-
     public class Xcls_open_projects_btn : Object
     {
         public Gtk.Button el;
@@ -470,7 +409,7 @@ public class Xcls_MainWindow : Object
             // set gobject values
             this.el.always_show_image = true;
             this.el.label = "Files / Projects";
-            var child_0 = new Xcls_Image12( _this );
+            var child_0 = new Xcls_Image10( _this );
             child_0.ref();
             this.el.set_image (  child_0.el  );
 
@@ -483,7 +422,7 @@ public class Xcls_MainWindow : Object
 
         // user defined functions
     }
-    public class Xcls_Image12 : Object
+    public class Xcls_Image10 : Object
     {
         public Gtk.Image el;
         private Xcls_MainWindow  _this;
@@ -492,7 +431,7 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor
-        public Xcls_Image12(Xcls_MainWindow _owner )
+        public Xcls_Image10(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.Image();
@@ -531,7 +470,7 @@ public class Xcls_MainWindow : Object
             var child_0 = new Xcls_mainpane( _this );
             child_0.ref();
             this.el.pack_start (  child_0.el , true,true,0 );
-            var child_1 = new Xcls_Box22( _this );
+            var child_1 = new Xcls_Box20( _this );
             child_1.ref();
             this.el.pack_end (  child_1.el , false,true,0 );
         }
@@ -562,7 +501,7 @@ public class Xcls_MainWindow : Object
             var child_0 = new Xcls_leftpane( _this );
             child_0.ref();
             this.el.add (  child_0.el  );
-            var child_1 = new Xcls_Box19( _this );
+            var child_1 = new Xcls_Box17( _this );
             child_1.ref();
             this.el.add2 (  child_1.el  );
         }
@@ -680,7 +619,7 @@ public class Xcls_MainWindow : Object
 
 
 
-    public class Xcls_Box19 : Object
+    public class Xcls_Box17 : Object
     {
         public Gtk.Box el;
         private Xcls_MainWindow  _this;
@@ -689,7 +628,7 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor
-        public Xcls_Box19(Xcls_MainWindow _owner )
+        public Xcls_Box17(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
@@ -757,7 +696,7 @@ public class Xcls_MainWindow : Object
 
 
 
-    public class Xcls_Box22 : Object
+    public class Xcls_Box20 : Object
     {
         public Gtk.Box el;
         private Xcls_MainWindow  _this;
@@ -766,7 +705,7 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor
-        public Xcls_Box22(Xcls_MainWindow _owner )
+        public Xcls_Box20(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
@@ -775,16 +714,16 @@ public class Xcls_MainWindow : Object
 
             // set gobject values
             this.el.homogeneous = false;
-            var child_0 = new Xcls_Button23( _this );
+            var child_0 = new Xcls_Button21( _this );
             child_0.ref();
             this.el.add (  child_0.el  );
-            var child_1 = new Xcls_Button25( _this );
+            var child_1 = new Xcls_Button23( _this );
             child_1.ref();
             this.el.add (  child_1.el  );
-            var child_2 = new Xcls_MenuButton27( _this );
+            var child_2 = new Xcls_MenuButton25( _this );
             child_2.ref();
             this.el.add (  child_2.el  );
-            var child_3 = new Xcls_Label32( _this );
+            var child_3 = new Xcls_Label30( _this );
             child_3.ref();
             this.el.pack_start (  child_3.el , true,true,0 );
             var child_4 = new Xcls_statusbar( _this );
@@ -793,7 +732,7 @@ public class Xcls_MainWindow : Object
             var child_5 = new Xcls_search_entry( _this );
             child_5.ref();
             this.el.pack_start (  child_5.el , false,true,0 );
-            var child_6 = new Xcls_MenuBar35( _this );
+            var child_6 = new Xcls_MenuBar33( _this );
             child_6.ref();
             this.el.add (  child_6.el  );
             var child_7 = new Xcls_statusbar_compile_spinner( _this );
@@ -803,7 +742,7 @@ public class Xcls_MainWindow : Object
 
         // user defined functions
     }
-    public class Xcls_Button23 : Object
+    public class Xcls_Button21 : Object
     {
         public Gtk.Button el;
         private Xcls_MainWindow  _this;
@@ -812,7 +751,7 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor
-        public Xcls_Button23(Xcls_MainWindow _owner )
+        public Xcls_Button21(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.Button();
@@ -823,7 +762,7 @@ public class Xcls_MainWindow : Object
             this.el.always_show_image = true;
             this.el.tooltip_text = "Project Details";
             this.el.label = "Edit Project Settings";
-            var child_0 = new Xcls_Image24( _this );
+            var child_0 = new Xcls_Image22( _this );
             child_0.ref();
             this.el.set_image (  child_0.el  );
 
@@ -838,7 +777,7 @@ public class Xcls_MainWindow : Object
 
         // user defined functions
     }
-    public class Xcls_Image24 : Object
+    public class Xcls_Image22 : Object
     {
         public Gtk.Image el;
         private Xcls_MainWindow  _this;
@@ -847,7 +786,7 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor
-        public Xcls_Image24(Xcls_MainWindow _owner )
+        public Xcls_Image22(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.Image();
@@ -862,7 +801,7 @@ public class Xcls_MainWindow : Object
     }
 
 
-    public class Xcls_Button25 : Object
+    public class Xcls_Button23 : Object
     {
         public Gtk.Button el;
         private Xcls_MainWindow  _this;
@@ -871,7 +810,7 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor
-        public Xcls_Button25(Xcls_MainWindow _owner )
+        public Xcls_Button23(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.Button();
@@ -882,7 +821,7 @@ public class Xcls_MainWindow : Object
             this.el.always_show_image = true;
             this.el.tooltip_text = "File Details";
             this.el.label = "Edit File Properties";
-            var child_0 = new Xcls_Image26( _this );
+            var child_0 = new Xcls_Image24( _this );
             child_0.ref();
             this.el.set_image (  child_0.el  );
 
@@ -905,7 +844,7 @@ public class Xcls_MainWindow : Object
 
         // user defined functions
     }
-    public class Xcls_Image26 : Object
+    public class Xcls_Image24 : Object
     {
         public Gtk.Image el;
         private Xcls_MainWindow  _this;
@@ -914,7 +853,7 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor
-        public Xcls_Image26(Xcls_MainWindow _owner )
+        public Xcls_Image24(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.Image();
@@ -929,7 +868,7 @@ public class Xcls_MainWindow : Object
     }
 
 
-    public class Xcls_MenuButton27 : Object
+    public class Xcls_MenuButton25 : Object
     {
         public Gtk.MenuButton el;
         private Xcls_MainWindow  _this;
@@ -938,7 +877,7 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor
-        public Xcls_MenuButton27(Xcls_MainWindow _owner )
+        public Xcls_MenuButton25(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.MenuButton();
@@ -951,7 +890,7 @@ public class Xcls_MainWindow : Object
             var child_0 = new Xcls_topbarmenu( _this );
             child_0.ref();
             this.el.set_popup (  child_0.el  );
-            var child_1 = new Xcls_Image31( _this );
+            var child_1 = new Xcls_Image29( _this );
             child_1.ref();
             this.el.set_image (  child_1.el  );
         }
@@ -976,10 +915,10 @@ public class Xcls_MainWindow : Object
             // my vars (dec)
 
             // set gobject values
-            var child_0 = new Xcls_MenuItem29( _this );
+            var child_0 = new Xcls_MenuItem27( _this );
             child_0.ref();
             this.el.append (  child_0.el  );
-            var child_1 = new Xcls_MenuItem30( _this );
+            var child_1 = new Xcls_MenuItem28( _this );
             child_1.ref();
             this.el.append (  child_1.el  );
 
@@ -992,7 +931,7 @@ public class Xcls_MainWindow : Object
 
         // user defined functions
     }
-    public class Xcls_MenuItem29 : Object
+    public class Xcls_MenuItem27 : Object
     {
         public Gtk.MenuItem el;
         private Xcls_MainWindow  _this;
@@ -1001,7 +940,7 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor
-        public Xcls_MenuItem29(Xcls_MainWindow _owner )
+        public Xcls_MenuItem27(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.MenuItem();
@@ -1020,7 +959,7 @@ public class Xcls_MainWindow : Object
         // user defined functions
     }
 
-    public class Xcls_MenuItem30 : Object
+    public class Xcls_MenuItem28 : Object
     {
         public Gtk.MenuItem el;
         private Xcls_MainWindow  _this;
@@ -1029,7 +968,7 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor
-        public Xcls_MenuItem30(Xcls_MainWindow _owner )
+        public Xcls_MenuItem28(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.MenuItem();
@@ -1049,7 +988,7 @@ public class Xcls_MainWindow : Object
     }
 
 
-    public class Xcls_Image31 : Object
+    public class Xcls_Image29 : Object
     {
         public Gtk.Image el;
         private Xcls_MainWindow  _this;
@@ -1058,7 +997,7 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor
-        public Xcls_Image31(Xcls_MainWindow _owner )
+        public Xcls_Image29(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.Image();
@@ -1073,7 +1012,7 @@ public class Xcls_MainWindow : Object
     }
 
 
-    public class Xcls_Label32 : Object
+    public class Xcls_Label30 : Object
     {
         public Gtk.Label el;
         private Xcls_MainWindow  _this;
@@ -1082,7 +1021,7 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor
-        public Xcls_Label32(Xcls_MainWindow _owner )
+        public Xcls_Label30(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.Label( "   " );
@@ -1235,7 +1174,7 @@ public class Xcls_MainWindow : Object
         }
     }
 
-    public class Xcls_MenuBar35 : Object
+    public class Xcls_MenuBar33 : Object
     {
         public Gtk.MenuBar el;
         private Xcls_MainWindow  _this;
@@ -1244,7 +1183,7 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor
-        public Xcls_MenuBar35(Xcls_MainWindow _owner )
+        public Xcls_MenuBar33(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.MenuBar();
@@ -1296,7 +1235,7 @@ public class Xcls_MainWindow : Object
             // set gobject values
             this.el.always_show_image = true;
             this.el.label = "Matches";
-            var child_0 = new Xcls_Image37( _this );
+            var child_0 = new Xcls_Image35( _this );
             child_0.ref();
             this.el.set_image (  child_0.el  );
 
@@ -1317,7 +1256,7 @@ public class Xcls_MainWindow : Object
 
         // user defined functions
     }
-    public class Xcls_Image37 : Object
+    public class Xcls_Image35 : Object
     {
         public Gtk.Image el;
         private Xcls_MainWindow  _this;
@@ -1326,7 +1265,7 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor
-        public Xcls_Image37(Xcls_MainWindow _owner )
+        public Xcls_Image35(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.Image();
@@ -1389,7 +1328,7 @@ public class Xcls_MainWindow : Object
             // set gobject values
             this.el.always_show_image = true;
             this.el.label = "Errors";
-            var child_0 = new Xcls_Image40( _this );
+            var child_0 = new Xcls_Image38( _this );
             child_0.ref();
             this.el.set_image (  child_0.el  );
 
@@ -1414,7 +1353,7 @@ public class Xcls_MainWindow : Object
         
         }
     }
-    public class Xcls_Image40 : Object
+    public class Xcls_Image38 : Object
     {
         public Gtk.Image el;
         private Xcls_MainWindow  _this;
@@ -1423,7 +1362,7 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor
-        public Xcls_Image40(Xcls_MainWindow _owner )
+        public Xcls_Image38(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.Image();
@@ -1461,7 +1400,7 @@ public class Xcls_MainWindow : Object
             // set gobject values
             this.el.always_show_image = true;
             this.el.label = "Warnings";
-            var child_0 = new Xcls_Image42( _this );
+            var child_0 = new Xcls_Image40( _this );
             child_0.ref();
             this.el.set_image (  child_0.el  );
 
@@ -1485,7 +1424,7 @@ public class Xcls_MainWindow : Object
         
         }
     }
-    public class Xcls_Image42 : Object
+    public class Xcls_Image40 : Object
     {
         public Gtk.Image el;
         private Xcls_MainWindow  _this;
@@ -1494,7 +1433,7 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor
-        public Xcls_Image42(Xcls_MainWindow _owner )
+        public Xcls_Image40(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.Image();
@@ -1532,7 +1471,7 @@ public class Xcls_MainWindow : Object
             // set gobject values
             this.el.always_show_image = true;
             this.el.label = "Depricated";
-            var child_0 = new Xcls_Image44( _this );
+            var child_0 = new Xcls_Image42( _this );
             child_0.ref();
             this.el.set_image (  child_0.el  );
 
@@ -1557,7 +1496,7 @@ public class Xcls_MainWindow : Object
         
         }
     }
-    public class Xcls_Image44 : Object
+    public class Xcls_Image42 : Object
     {
         public Gtk.Image el;
         private Xcls_MainWindow  _this;
@@ -1566,7 +1505,7 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor
-        public Xcls_Image44(Xcls_MainWindow _owner )
+        public Xcls_Image42(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.Image();
@@ -1602,7 +1541,7 @@ public class Xcls_MainWindow : Object
             // set gobject values
             this.el.always_show_image = true;
             this.el.label = "Run";
-            var child_0 = new Xcls_Image46( _this );
+            var child_0 = new Xcls_Image44( _this );
             child_0.ref();
             this.el.set_image (  child_0.el  );
 
@@ -1621,7 +1560,7 @@ public class Xcls_MainWindow : Object
 
         // user defined functions
     }
-    public class Xcls_Image46 : Object
+    public class Xcls_Image44 : Object
     {
         public Gtk.Image el;
         private Xcls_MainWindow  _this;
@@ -1630,7 +1569,7 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor
-        public Xcls_Image46(Xcls_MainWindow _owner )
+        public Xcls_Image44(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.Image();