Clone.bjs
authorAlan Knowles <alan@roojs.com>
Fri, 14 Dec 2018 07:17:35 +0000 (15:17 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 14 Dec 2018 07:17:35 +0000 (15:17 +0800)
Clone.vala

Clone.bjs
Clone.vala

index 2e8065d..ba8074f 100644 (file)
--- a/Clone.bjs
+++ b/Clone.bjs
      "border_width" : 5,
      "$ homogeneous" : false,
      "items" : [
-      {
-       "* pack" : "pack_start,true,true,0",
-       "xtype" : "Notebook",
-       "$ xns" : "Gtk",
-       "items" : [
-        {
-         "id" : "label_status",
-         "xtype" : "Label",
-         "* pack" : false,
-         "$ xns" : "Gtk",
-         "utf8 label" : "Status"
-        },
-        {
-         "id" : "label_diff",
-         "* pack" : false,
-         "xtype" : "Label",
-         "$ xns" : "Gtk",
-         "utf8 label" : "Diff"
-        },
-        {
-         "* pack" : "append_page,_this.label_status.el",
-         "xtype" : "Box",
-         "gboolean homogeneous" : false,
-         "$ xns" : "Gtk",
-         "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL",
-         "items" : [
-          {
-           "* pack" : "pack_start,true,true,0",
-           "xtype" : "ScrolledWindow",
-           "$ xns" : "Gtk",
-           "items" : [
-            {
-             "id" : "status_view",
-             "* init" : " \n    var description =   Pango.FontDescription.from_string(\"monospace\");\n    description.set_size(9000);\n    this.el.override_font(description);",
-             "xtype" : "View",
-             "* pack" : "add",
-             "$ xns" : "GtkSource"
-            }
-           ]
-          }
-         ]
-        },
-        {
-         "* pack" : "append_page,_this.label_diff.el",
-         "xtype" : "Box",
-         "gboolean homogeneous" : false,
-         "$ xns" : "Gtk",
-         "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL",
-         "items" : [
-          {
-           "int height_request" : 400,
-           "xtype" : "ScrolledWindow",
-           "* pack" : "pack_start,true,true,0",
-           "$ xns" : "Gtk",
-           "items" : [
-            {
-             "id" : "diff_view",
-             "* init" : " \n    var description =   Pango.FontDescription.from_string(\"monospace\");\n    description.set_size(9000);\n    this.el.override_font(description);",
-             "xtype" : "View",
-             "* pack" : "add",
-             "$ xns" : "GtkSource"
-            }
-           ]
-          }
-         ]
-        }
-       ]
-      },
       {
        "* pack" : "pack_end,false,false,0",
        "xtype" : "Box",
index 25ed29c..52c4989 100644 (file)
@@ -12,10 +12,6 @@ public class Clone : Object
         }
         return _Clone;
     }
-    public Xcls_label_status label_status;
-    public Xcls_label_diff label_diff;
-    public Xcls_status_view status_view;
-    public Xcls_diff_view diff_view;
 
         // my vars (def)
     public GitRepo repo;
@@ -86,252 +82,14 @@ public class Clone : Object
             // set gobject values
             this.el.homogeneous = false;
             this.el.border_width = 5;
-            var child_0 = new Xcls_Notebook3( _this );
+            var child_0 = new Xcls_Box3( _this );
             child_0.ref();
-            this.el.pack_start (  child_0.el , true,true,0 );
-            var child_1 = new Xcls_Box12( _this );
-            child_1.ref();
-            this.el.pack_end (  child_1.el , false,false,0 );
-        }
-
-        // user defined functions
-    }
-    public class Xcls_Notebook3 : Object
-    {
-        public Gtk.Notebook el;
-        private Clone  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_Notebook3(Clone _owner )
-        {
-            _this = _owner;
-            this.el = new Gtk.Notebook();
-
-            // my vars (dec)
-
-            // set gobject values
-            var child_0 = new Xcls_label_status( _this );
-            child_0.ref();
-            var child_1 = new Xcls_label_diff( _this );
-            child_1.ref();
-            var child_2 = new Xcls_Box6( _this );
-            child_2.ref();
-            this.el.append_page (  child_2.el , _this.label_status.el );
-            var child_3 = new Xcls_Box9( _this );
-            child_3.ref();
-            this.el.append_page (  child_3.el , _this.label_diff.el );
-        }
-
-        // user defined functions
-    }
-    public class Xcls_label_status : Object
-    {
-        public Gtk.Label el;
-        private Clone  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_label_status(Clone _owner )
-        {
-            _this = _owner;
-            _this.label_status = this;
-            this.el = new Gtk.Label( "Status" );
-
-            // my vars (dec)
-
-            // set gobject values
-        }
-
-        // user defined functions
-    }
-
-    public class Xcls_label_diff : Object
-    {
-        public Gtk.Label el;
-        private Clone  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_label_diff(Clone _owner )
-        {
-            _this = _owner;
-            _this.label_diff = this;
-            this.el = new Gtk.Label( "Diff" );
-
-            // my vars (dec)
-
-            // set gobject values
+            this.el.pack_end (  child_0.el , false,false,0 );
         }
 
         // user defined functions
     }
-
-    public class Xcls_Box6 : Object
-    {
-        public Gtk.Box el;
-        private Clone  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_Box6(Clone _owner )
-        {
-            _this = _owner;
-            this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
-
-            // my vars (dec)
-
-            // set gobject values
-            this.el.homogeneous = false;
-            var child_0 = new Xcls_ScrolledWindow7( _this );
-            child_0.ref();
-            this.el.pack_start (  child_0.el , true,true,0 );
-        }
-
-        // user defined functions
-    }
-    public class Xcls_ScrolledWindow7 : Object
-    {
-        public Gtk.ScrolledWindow el;
-        private Clone  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_ScrolledWindow7(Clone _owner )
-        {
-            _this = _owner;
-            this.el = new Gtk.ScrolledWindow( null, null );
-
-            // my vars (dec)
-
-            // set gobject values
-            var child_0 = new Xcls_status_view( _this );
-            child_0.ref();
-            this.el.add (  child_0.el  );
-        }
-
-        // user defined functions
-    }
-    public class Xcls_status_view : Object
-    {
-        public Gtk.SourceView el;
-        private Clone  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_status_view(Clone _owner )
-        {
-            _this = _owner;
-            _this.status_view = this;
-            this.el = new Gtk.SourceView();
-
-            // my vars (dec)
-
-            // init method
-
-            var description =   Pango.FontDescription.from_string("monospace");
-                description.set_size(9000);
-                this.el.override_font(description);
-        }
-
-        // user defined functions
-    }
-
-
-
-    public class Xcls_Box9 : Object
-    {
-        public Gtk.Box el;
-        private Clone  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_Box9(Clone _owner )
-        {
-            _this = _owner;
-            this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
-
-            // my vars (dec)
-
-            // set gobject values
-            this.el.homogeneous = false;
-            var child_0 = new Xcls_ScrolledWindow10( _this );
-            child_0.ref();
-            this.el.pack_start (  child_0.el , true,true,0 );
-        }
-
-        // user defined functions
-    }
-    public class Xcls_ScrolledWindow10 : Object
-    {
-        public Gtk.ScrolledWindow el;
-        private Clone  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_ScrolledWindow10(Clone _owner )
-        {
-            _this = _owner;
-            this.el = new Gtk.ScrolledWindow( null, null );
-
-            // my vars (dec)
-
-            // set gobject values
-            this.el.height_request = 400;
-            var child_0 = new Xcls_diff_view( _this );
-            child_0.ref();
-            this.el.add (  child_0.el  );
-        }
-
-        // user defined functions
-    }
-    public class Xcls_diff_view : Object
-    {
-        public Gtk.SourceView el;
-        private Clone  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_diff_view(Clone _owner )
-        {
-            _this = _owner;
-            _this.diff_view = this;
-            this.el = new Gtk.SourceView();
-
-            // my vars (dec)
-
-            // init method
-
-            var description =   Pango.FontDescription.from_string("monospace");
-                description.set_size(9000);
-                this.el.override_font(description);
-        }
-
-        // user defined functions
-    }
-
-
-
-
-    public class Xcls_Box12 : Object
+    public class Xcls_Box3 : Object
     {
         public Gtk.Box el;
         private Clone  _this;
@@ -340,7 +98,7 @@ public class Clone : Object
             // my vars (def)
 
         // ctor
-        public Xcls_Box12(Clone _owner )
+        public Xcls_Box3(Clone _owner )
         {
             _this = _owner;
             this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
@@ -351,23 +109,23 @@ public class Clone : Object
             this.el.homogeneous = true;
             this.el.expand = false;
             this.el.vexpand = false;
-            var child_0 = new Xcls_Button13( _this );
+            var child_0 = new Xcls_Button4( _this );
             child_0.ref();
             this.el.add (  child_0.el  );
-            var child_1 = new Xcls_Button14( _this );
+            var child_1 = new Xcls_Button5( _this );
             child_1.ref();
             this.el.add (  child_1.el  );
-            var child_2 = new Xcls_Button15( _this );
+            var child_2 = new Xcls_Button6( _this );
             child_2.ref();
             this.el.add (  child_2.el  );
-            var child_3 = new Xcls_Button16( _this );
+            var child_3 = new Xcls_Button7( _this );
             child_3.ref();
             this.el.add (  child_3.el  );
         }
 
         // user defined functions
     }
-    public class Xcls_Button13 : Object
+    public class Xcls_Button4 : Object
     {
         public Gtk.Button el;
         private Clone  _this;
@@ -376,7 +134,7 @@ public class Clone : Object
             // my vars (def)
 
         // ctor
-        public Xcls_Button13(Clone _owner )
+        public Xcls_Button4(Clone _owner )
         {
             _this = _owner;
             this.el = new Gtk.Button();
@@ -406,7 +164,7 @@ public class Clone : Object
         // user defined functions
     }
 
-    public class Xcls_Button14 : Object
+    public class Xcls_Button5 : Object
     {
         public Gtk.Button el;
         private Clone  _this;
@@ -415,7 +173,7 @@ public class Clone : Object
             // my vars (def)
 
         // ctor
-        public Xcls_Button14(Clone _owner )
+        public Xcls_Button5(Clone _owner )
         {
             _this = _owner;
             this.el = new Gtk.Button();
@@ -444,7 +202,7 @@ public class Clone : Object
         // user defined functions
     }
 
-    public class Xcls_Button15 : Object
+    public class Xcls_Button6 : Object
     {
         public Gtk.Button el;
         private Clone  _this;
@@ -453,7 +211,7 @@ public class Clone : Object
             // my vars (def)
 
         // ctor
-        public Xcls_Button15(Clone _owner )
+        public Xcls_Button6(Clone _owner )
         {
             _this = _owner;
             this.el = new Gtk.Button();
@@ -476,7 +234,7 @@ public class Clone : Object
         // user defined functions
     }
 
-    public class Xcls_Button16 : Object
+    public class Xcls_Button7 : Object
     {
         public Gtk.Button el;
         private Clone  _this;
@@ -485,7 +243,7 @@ public class Clone : Object
             // my vars (def)
 
         // ctor
-        public Xcls_Button16(Clone _owner )
+        public Xcls_Button7(Clone _owner )
         {
             _this = _owner;
             this.el = new Gtk.Button();