Changed src/Builder4/MainWindow.bjssrc/Builder4/MainWindow.vala
authorAlan Knowles <alan@roojs.com>
Sun, 25 Sep 2022 03:15:22 +0000 (11:15 +0800)
committerAlan Knowles <alan@roojs.com>
Sun, 25 Sep 2022 03:15:22 +0000 (11:15 +0800)
src/Builder4/MainWindow.bjs
src/Builder4/MainWindow.vala

index faa1457..e21b3ea 100644 (file)
            "string label" : "Compile Status:",
            "xtype" : "MenuItem"
           },
+          {
+           "$ xns" : "Gtk",
+           "string label" : "Label",
+           "xtype" : "MenuItem"
+          },
           {
            "# Json.Object notices" : "new Json.Object() ",
            "$ xns" : "Gtk",
            "* pack" : "add",
            "Xcls_ValaCompileErrors popup" : "",
-           "bool always_show_image" : true,
            "id" : "statusbar_errors",
            "items" : [
+            {
+             "$ xns" : "Gtk",
+             "Gtk.Orientation orientation" : "Gtk.Orientation.HORIZONTAL",
+             "int spacing" : 0,
+             "items" : [
+              {
+               "$ xns" : "Gtk",
+               "id" : "statusbar_errors_label",
+               "string label" : "Errors",
+               "xtype" : "Label"
+              },
+              {
+               "$ xns" : "Gtk",
+               "* pack" : "set_image",
+               "utf8 icon_name" : "dialog-error",
+               "xtype" : "Image"
+              }
+             ],
+             "xtype" : "Box"
+            },
             {
              "$ xns" : "Gtk",
              "* pack" : "set_image",
              "}"
             ]
            },
-           "string label" : "Errors",
-           "xtype" : "ImageMenuItem",
+           "xtype" : "MenuItem",
            "| void setNotices" : [
             "(Json.Object nots, int qty) {",
             "    this.el.show();",
index 817f5a6..b4eb296 100644 (file)
@@ -27,6 +27,7 @@ public class Xcls_MainWindow : Object
     public Xcls_statusbar statusbar;
     public Xcls_statusbar_compilestatus_label statusbar_compilestatus_label;
     public Xcls_statusbar_errors statusbar_errors;
+    public Xcls_statusbar_errors_label statusbar_errors_label;
     public Xcls_statusbar_warnings statusbar_warnings;
     public Xcls_statusbar_depricated statusbar_depricated;
     public Xcls_statusbar_run statusbar_run;
@@ -1083,18 +1084,21 @@ public class Xcls_MainWindow : Object
             var child_0 = new Xcls_statusbar_compilestatus_label( _this );
             child_0.ref();
             this.el.add (  child_0.el  );
-            var child_1 = new Xcls_statusbar_errors( _this );
+            var child_1 = new Xcls_MenuItem34( _this );
             child_1.ref();
-            this.el.add (  child_1.el  );
-            var child_2 = new Xcls_statusbar_warnings( _this );
+            this.el.add(  child_1.el );
+            var child_2 = new Xcls_statusbar_errors( _this );
             child_2.ref();
             this.el.add (  child_2.el  );
-            var child_3 = new Xcls_statusbar_depricated( _this );
+            var child_3 = new Xcls_statusbar_warnings( _this );
             child_3.ref();
             this.el.add (  child_3.el  );
-            var child_4 = new Xcls_statusbar_run( _this );
+            var child_4 = new Xcls_statusbar_depricated( _this );
             child_4.ref();
             this.el.add (  child_4.el  );
+            var child_5 = new Xcls_statusbar_run( _this );
+            child_5.ref();
+            this.el.add (  child_5.el  );
         }
 
         // user defined functions
@@ -1124,9 +1128,33 @@ public class Xcls_MainWindow : Object
         // user defined functions
     }
 
+    public class Xcls_MenuItem34 : Object
+    {
+        public Gtk.MenuItem el;
+        private Xcls_MainWindow  _this;
+
+
+            // my vars (def)
+
+        // ctor
+        public Xcls_MenuItem34(Xcls_MainWindow _owner )
+        {
+            _this = _owner;
+            this.el = new Gtk.MenuItem();
+
+            // my vars (dec)
+
+            // set gobject values
+            this.el.label = "Label";
+            this.el.show();
+        }
+
+        // user defined functions
+    }
+
     public class Xcls_statusbar_errors : Object
     {
-        public Gtk.ImageMenuItem el;
+        public Gtk.MenuItem el;
         private Xcls_MainWindow  _this;
 
 
@@ -1139,17 +1167,18 @@ public class Xcls_MainWindow : Object
         {
             _this = _owner;
             _this.statusbar_errors = this;
-            this.el = new Gtk.ImageMenuItem();
+            this.el = new Gtk.MenuItem();
 
             // my vars (dec)
             this.notices = new Json.Object();
 
             // set gobject values
-            this.el.always_show_image = true;
-            this.el.label = "Errors";
-            var child_0 = new Xcls_Image35( _this );
+            var child_0 = new Xcls_Box36( _this );
             child_0.ref();
-            this.el.set_image (  child_0.el  );
+            this.el.add(  child_0.el );
+            var child_1 = new Xcls_Image39( _this );
+            child_1.ref();
+            this.el.set_image (  child_1.el  );
             this.el.show();
 
             //listeners
@@ -1173,7 +1202,57 @@ public class Xcls_MainWindow : Object
         
         }
     }
-    public class Xcls_Image35 : Object
+    public class Xcls_Box36 : Object
+    {
+        public Gtk.Box el;
+        private Xcls_MainWindow  _this;
+
+
+            // my vars (def)
+
+        // ctor
+        public Xcls_Box36(Xcls_MainWindow _owner )
+        {
+            _this = _owner;
+            this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
+
+            // my vars (dec)
+
+            // set gobject values
+            var child_0 = new Xcls_statusbar_errors_label( _this );
+            child_0.ref();
+            this.el.add(  child_0.el );
+            var child_1 = new Xcls_Image38( _this );
+            child_1.ref();
+            this.el.set_image (  child_1.el  );
+        }
+
+        // user defined functions
+    }
+    public class Xcls_statusbar_errors_label : Object
+    {
+        public Gtk.Label el;
+        private Xcls_MainWindow  _this;
+
+
+            // my vars (def)
+
+        // ctor
+        public Xcls_statusbar_errors_label(Xcls_MainWindow _owner )
+        {
+            _this = _owner;
+            _this.statusbar_errors_label = this;
+            this.el = new Gtk.Label( "Errors" );
+
+            // my vars (dec)
+
+            // set gobject values
+        }
+
+        // user defined functions
+    }
+
+    public class Xcls_Image38 : Object
     {
         public Gtk.Image el;
         private Xcls_MainWindow  _this;
@@ -1182,7 +1261,31 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor
-        public Xcls_Image35(Xcls_MainWindow _owner )
+        public Xcls_Image38(Xcls_MainWindow _owner )
+        {
+            _this = _owner;
+            this.el = new Gtk.Image();
+
+            // my vars (dec)
+
+            // set gobject values
+            this.el.icon_name = "dialog-error";
+        }
+
+        // user defined functions
+    }
+
+
+    public class Xcls_Image39 : Object
+    {
+        public Gtk.Image el;
+        private Xcls_MainWindow  _this;
+
+
+            // my vars (def)
+
+        // ctor
+        public Xcls_Image39(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.Image();
@@ -1220,7 +1323,7 @@ public class Xcls_MainWindow : Object
             // set gobject values
             this.el.always_show_image = true;
             this.el.label = "Warnings";
-            var child_0 = new Xcls_Image37( _this );
+            var child_0 = new Xcls_Image41( _this );
             child_0.ref();
             this.el.set_image (  child_0.el  );
             this.el.show();
@@ -1245,7 +1348,7 @@ public class Xcls_MainWindow : Object
         
         }
     }
-    public class Xcls_Image37 : Object
+    public class Xcls_Image41 : Object
     {
         public Gtk.Image el;
         private Xcls_MainWindow  _this;
@@ -1254,7 +1357,7 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor
-        public Xcls_Image37(Xcls_MainWindow _owner )
+        public Xcls_Image41(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.Image();
@@ -1292,7 +1395,7 @@ public class Xcls_MainWindow : Object
             // set gobject values
             this.el.always_show_image = true;
             this.el.label = "Depricated";
-            var child_0 = new Xcls_Image39( _this );
+            var child_0 = new Xcls_Image43( _this );
             child_0.ref();
             this.el.set_image (  child_0.el  );
             this.el.show();
@@ -1318,7 +1421,7 @@ public class Xcls_MainWindow : Object
         
         }
     }
-    public class Xcls_Image39 : Object
+    public class Xcls_Image43 : Object
     {
         public Gtk.Image el;
         private Xcls_MainWindow  _this;
@@ -1327,7 +1430,7 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor
-        public Xcls_Image39(Xcls_MainWindow _owner )
+        public Xcls_Image43(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.Image();
@@ -1363,7 +1466,7 @@ public class Xcls_MainWindow : Object
             // set gobject values
             this.el.always_show_image = true;
             this.el.label = "Run";
-            var child_0 = new Xcls_Image41( _this );
+            var child_0 = new Xcls_Image45( _this );
             child_0.ref();
             this.el.set_image (  child_0.el  );
             this.el.show();
@@ -1383,7 +1486,7 @@ public class Xcls_MainWindow : Object
 
         // user defined functions
     }
-    public class Xcls_Image41 : Object
+    public class Xcls_Image45 : Object
     {
         public Gtk.Image el;
         private Xcls_MainWindow  _this;
@@ -1392,7 +1495,7 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor
-        public Xcls_Image41(Xcls_MainWindow _owner )
+        public Xcls_Image45(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.Image();