From: Alan Knowles Date: Tue, 30 Oct 2018 05:15:56 +0000 (+0800) Subject: Clones.bjs X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=df6d054df7a437b3334bd9d0ef7da4d54fdd3747 Clones.bjs Clones.vala --- diff --git a/Clones.bjs b/Clones.bjs index d09beab5..15275c2e 100644 --- a/Clones.bjs +++ b/Clones.bjs @@ -28,6 +28,10 @@ "xtype" : "Box", "$ xns" : "Gtk", "items" : [ + { + "xtype" : "Box", + "$ xns" : "Gtk" + }, { "* pack" : "pack_start,false,false,0", "xtype" : "Box", diff --git a/Clones.vala b/Clones.vala index 12b5325e..4c2eadc1 100644 --- a/Clones.vala +++ b/Clones.vala @@ -96,10 +96,12 @@ public class Clones : Object // my vars (dec) var child_0 = new Xcls_Box3( _this ); child_0.ref(); - this.el.pack_start ( child_0.el , false,false,0 ); - var child_1 = new Xcls_ScrolledWindow9( _this ); + var child_1 = new Xcls_Box4( _this ); child_1.ref(); - this.el.pack_end ( child_1.el , true,true,0 ); + this.el.pack_start ( child_1.el , false,false,0 ); + var child_2 = new Xcls_ScrolledWindow10( _this ); + child_2.ref(); + this.el.pack_end ( child_2.el , true,true,0 ); } // user defined functions @@ -119,26 +121,46 @@ public class Clones : Object this.el = new Gtk.Box(); // my vars (dec) - var child_0 = new Xcls_Button4( _this ); + } + + // user defined functions + } + + public class Xcls_Box4 : Object + { + public Gtk.Box el; + private Clones _this; + + + // my vars (def) + + // ctor + public Xcls_Box4(Clones _owner ) + { + _this = _owner; + this.el = new Gtk.Box(); + + // my vars (dec) + var child_0 = new Xcls_Button5( _this ); child_0.ref(); this.el.add ( child_0.el ); - var child_1 = new Xcls_Button5( _this ); + var child_1 = new Xcls_Button6( _this ); child_1.ref(); this.el.add ( child_1.el ); - var child_2 = new Xcls_Button6( _this ); + var child_2 = new Xcls_Button7( _this ); child_2.ref(); this.el.add ( child_2.el ); - var child_3 = new Xcls_Button7( _this ); + var child_3 = new Xcls_Button8( _this ); child_3.ref(); this.el.add ( child_3.el ); - var child_4 = new Xcls_Button8( _this ); + var child_4 = new Xcls_Button9( _this ); child_4.ref(); this.el.add ( child_4.el ); } // user defined functions } - public class Xcls_Button4 : Object + public class Xcls_Button5 : Object { public Gtk.Button el; private Clones _this; @@ -147,7 +169,7 @@ public class Clones : Object // my vars (def) // ctor - public Xcls_Button4(Clones _owner ) + public Xcls_Button5(Clones _owner ) { _this = _owner; this.el = new Gtk.Button(); @@ -203,7 +225,7 @@ public class Clones : Object // user defined functions } - public class Xcls_Button5 : Object + public class Xcls_Button6 : Object { public Gtk.Button el; private Clones _this; @@ -212,7 +234,7 @@ public class Clones : Object // my vars (def) // ctor - public Xcls_Button5(Clones _owner ) + public Xcls_Button6(Clones _owner ) { _this = _owner; this.el = new Gtk.Button(); @@ -269,7 +291,7 @@ public class Clones : Object // user defined functions } - public class Xcls_Button6 : Object + public class Xcls_Button7 : Object { public Gtk.Button el; private Clones _this; @@ -278,7 +300,7 @@ public class Clones : Object // my vars (def) // ctor - public Xcls_Button6(Clones _owner ) + public Xcls_Button7(Clones _owner ) { _this = _owner; this.el = new Gtk.Button(); @@ -336,7 +358,7 @@ public class Clones : Object // user defined functions } - public class Xcls_Button7 : Object + public class Xcls_Button8 : Object { public Gtk.Button el; private Clones _this; @@ -345,7 +367,7 @@ public class Clones : Object // my vars (def) // ctor - public Xcls_Button7(Clones _owner ) + public Xcls_Button8(Clones _owner ) { _this = _owner; this.el = new Gtk.Button(); @@ -366,7 +388,7 @@ public class Clones : Object // user defined functions } - public class Xcls_Button8 : Object + public class Xcls_Button9 : Object { public Gtk.Button el; private Clones _this; @@ -375,7 +397,7 @@ public class Clones : Object // my vars (def) // ctor - public Xcls_Button8(Clones _owner ) + public Xcls_Button9(Clones _owner ) { _this = _owner; this.el = new Gtk.Button(); @@ -397,7 +419,7 @@ public class Clones : Object } - public class Xcls_ScrolledWindow9 : Object + public class Xcls_ScrolledWindow10 : Object { public Gtk.ScrolledWindow el; private Clones _this; @@ -406,7 +428,7 @@ public class Clones : Object // my vars (def) // ctor - public Xcls_ScrolledWindow9(Clones _owner ) + public Xcls_ScrolledWindow10(Clones _owner ) { _this = _owner; this.el = new Gtk.ScrolledWindow();