src/Builder4/MainWindow.bjs
authorAlan Knowles <alan@roojs.com>
Mon, 18 May 2015 09:39:27 +0000 (17:39 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 18 May 2015 09:39:27 +0000 (17:39 +0800)
src/Builder4/MainWindow.vala

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

index 0c76f23..04de011 100644 (file)
          "xtype" : "MenuBar",
          "$ xns" : "Gtk",
          "items" : [
+          {
+           "bool always_show_image" : true,
+           "id" : "statusbar_errors",
+           "Xcls_ValaCompileErrors popup" : "",
+           "string label" : "Errors",
+           "* pack" : "add",
+           "xtype" : "ImageMenuItem",
+           "$ xns" : "Gtk",
+           "items" : [
+            {
+             "xtype" : "Image",
+             "utf8 icon_name" : "dialog-error",
+             "* pack" : "set_image",
+             "$ xns" : "Gtk"
+            }
+           ]
+          },
           {
            "listeners" : {
             "button_press_event" : "() => {\n    if (this.popup == null) {\n        this.popup = new Xcls_ValaCompileErrors();\n        this.popup.window = _this;\n    }\n    if (this.popup.active) {\n        this.popup.active = false;\n        this.popup.el.hide();\n        return true;\n    }\n    \n    this.popup.show(this.notices, this.el);\n    return true;\n}"
index 3e3ae62..dcc17e9 100644 (file)
@@ -39,6 +39,7 @@ public class Xcls_MainWindow : Object
     public Xcls_delprojectbutton delprojectbutton;
     public Xcls_statusbar statusbar;
     public Xcls_statusbar_errors statusbar_errors;
+    public Xcls_statusbar_errors statusbar_errors;
     public Xcls_statusbar_warnings statusbar_warnings;
     public Xcls_statusbar_depricated statusbar_depricated;
 
@@ -2246,12 +2247,65 @@ public class Xcls_MainWindow : Object
             var child_0 = new Xcls_statusbar_errors( _this );
             child_0.ref();
             this.el.add (  child_0.el  );
-            var child_1 = new Xcls_statusbar_warnings( _this );
+            var child_1 = new Xcls_statusbar_errors( _this );
             child_1.ref();
             this.el.add (  child_1.el  );
-            var child_2 = new Xcls_statusbar_depricated( _this );
+            var child_2 = new Xcls_statusbar_warnings( _this );
             child_2.ref();
             this.el.add (  child_2.el  );
+            var child_3 = new Xcls_statusbar_depricated( _this );
+            child_3.ref();
+            this.el.add (  child_3.el  );
+        }
+
+        // user defined functions 
+    }
+    public class Xcls_statusbar_errors : Object 
+    {
+        public Gtk.ImageMenuItem el;
+        private Xcls_MainWindow  _this;
+
+
+            // my vars (def)
+        public Xcls_ValaCompileErrors popup;
+
+        // ctor 
+        public Xcls_statusbar_errors(Xcls_MainWindow _owner )
+        {
+            _this = _owner;
+            _this.statusbar_errors = this;
+            this.el = new Gtk.ImageMenuItem();
+
+            // my vars (dec)
+
+            // set gobject values
+            this.el.always_show_image = true;
+            this.el.label = "Errors";
+            var child_0 = new Xcls_Image71( _this );
+            child_0.ref();
+            this.el.set_image (  child_0.el  );
+        }
+
+        // user defined functions 
+    }
+    public class Xcls_Image71 : Object 
+    {
+        public Gtk.Image el;
+        private Xcls_MainWindow  _this;
+
+
+            // my vars (def)
+
+        // ctor 
+        public Xcls_Image71(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 
@@ -2279,7 +2333,7 @@ public class Xcls_MainWindow : Object
             // set gobject values
             this.el.always_show_image = true;
             this.el.label = "Errors";
-            var child_0 = new Xcls_Image71( _this );
+            var child_0 = new Xcls_Image73( _this );
             child_0.ref();
             this.el.set_image (  child_0.el  );
 
@@ -2302,7 +2356,7 @@ public class Xcls_MainWindow : Object
 
         // user defined functions 
     }
-    public class Xcls_Image71 : Object 
+    public class Xcls_Image73 : Object 
     {
         public Gtk.Image el;
         private Xcls_MainWindow  _this;
@@ -2311,7 +2365,7 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_Image71(Xcls_MainWindow _owner )
+        public Xcls_Image73(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.Image();
@@ -2347,7 +2401,7 @@ public class Xcls_MainWindow : Object
             // set gobject values
             this.el.always_show_image = true;
             this.el.label = "Warnings";
-            var child_0 = new Xcls_Image73( _this );
+            var child_0 = new Xcls_Image75( _this );
             child_0.ref();
             this.el.set_image (  child_0.el  );
 
@@ -2369,7 +2423,7 @@ public class Xcls_MainWindow : Object
 
         // user defined functions 
     }
-    public class Xcls_Image73 : Object 
+    public class Xcls_Image75 : Object 
     {
         public Gtk.Image el;
         private Xcls_MainWindow  _this;
@@ -2378,7 +2432,7 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_Image73(Xcls_MainWindow _owner )
+        public Xcls_Image75(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.Image();
@@ -2414,7 +2468,7 @@ public class Xcls_MainWindow : Object
             // set gobject values
             this.el.always_show_image = true;
             this.el.label = "Depricated";
-            var child_0 = new Xcls_Image75( _this );
+            var child_0 = new Xcls_Image77( _this );
             child_0.ref();
             this.el.set_image (  child_0.el  );
 
@@ -2436,7 +2490,7 @@ public class Xcls_MainWindow : Object
 
         // user defined functions 
     }
-    public class Xcls_Image75 : Object 
+    public class Xcls_Image77 : Object 
     {
         public Gtk.Image el;
         private Xcls_MainWindow  _this;
@@ -2445,7 +2499,7 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_Image75(Xcls_MainWindow _owner )
+        public Xcls_Image77(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.Image();