src/Builder4/MainWindow.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 25 May 2022 02:56:13 +0000 (10:56 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 25 May 2022 02:56:13 +0000 (10:56 +0800)
src/Builder4/MainWindow.vala

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

index 34698ba..edc633b 100644 (file)
            "* pack" : "pack_start,true,true,0",
            "id" : "clutterembed",
            "items" : [
-            {
-             "$ xns" : "GtkClutter",
-             "* pack" : "add",
-             "id" : "objectview",
-             "xtype" : "Actor"
-            },
             {
              "$ xns" : "GtkClutter",
              "* init" : [
            "* pack" : "add",
            "id" : "rooview",
            "xtype" : "Box"
+          },
+          {
+           "$ xns" : "Gtk",
+           "* init" : "",
+           "* pack" : "add",
+           "id" : "objectview",
+           "xtype" : "Box"
           }
          ],
          "xtype" : "Box"
index cf3a947..3d27165 100644 (file)
@@ -22,11 +22,11 @@ public class Xcls_MainWindow : Object
     public Xcls_tree tree;
     public Xcls_props props;
     public Xcls_clutterembed clutterembed;
-    public Xcls_objectview objectview;
     public Xcls_codeeditview codeeditview;
     public Xcls_addpropsview addpropsview;
     public Xcls_buttonlayout buttonlayout;
     public Xcls_rooview rooview;
+    public Xcls_objectview objectview;
     public Xcls_topbarmenu topbarmenu;
     public Xcls_statusbar statusbar;
     public Xcls_search_entry search_entry;
@@ -535,6 +535,9 @@ public class Xcls_MainWindow : Object
             var child_1 = new Xcls_rooview( _this );
             child_1.ref();
             this.el.add (  child_1.el  );
+            var child_2 = new Xcls_objectview( _this );
+            child_2.ref();
+            this.el.add (  child_2.el  );
         }
 
         // user defined functions
@@ -557,18 +560,15 @@ public class Xcls_MainWindow : Object
             // my vars (dec)
 
             // set gobject values
-            var child_0 = new Xcls_objectview( _this );
+            var child_0 = new Xcls_codeeditview( _this );
             child_0.ref();
-            this.el.add (  child_0.el  );
-            var child_1 = new Xcls_codeeditview( _this );
+            this.el.get_stage().add_child (  child_0.el  );
+            var child_1 = new Xcls_addpropsview( _this );
             child_1.ref();
             this.el.get_stage().add_child (  child_1.el  );
-            var child_2 = new Xcls_addpropsview( _this );
+            var child_2 = new Xcls_buttonlayout( _this );
             child_2.ref();
             this.el.get_stage().add_child (  child_2.el  );
-            var child_3 = new Xcls_buttonlayout( _this );
-            child_3.ref();
-            this.el.get_stage().add_child (  child_3.el  );
 
             // init method
 
@@ -587,29 +587,6 @@ public class Xcls_MainWindow : Object
 
         // user defined functions
     }
-    public class Xcls_objectview : Object
-    {
-        public GtkClutter.Actor el;
-        private Xcls_MainWindow  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_objectview(Xcls_MainWindow _owner )
-        {
-            _this = _owner;
-            _this.objectview = this;
-            this.el = new GtkClutter.Actor();
-
-            // my vars (dec)
-
-            // set gobject values
-        }
-
-        // user defined functions
-    }
-
     public class Xcls_codeeditview : Object
     {
         public GtkClutter.Actor el;
@@ -720,7 +697,7 @@ public class Xcls_MainWindow : Object
             // my vars (dec)
 
             // set gobject values
-            var child_0 = new Xcls_BoxLayout20( _this );
+            var child_0 = new Xcls_BoxLayout19( _this );
             child_0.ref();
             this.el.layout_manager = child_0.el;
 
@@ -747,7 +724,7 @@ public class Xcls_MainWindow : Object
 
         // user defined functions
     }
-    public class Xcls_BoxLayout20 : Object
+    public class Xcls_BoxLayout19 : Object
     {
         public Clutter.BoxLayout el;
         private Xcls_MainWindow  _this;
@@ -756,7 +733,7 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor
-        public Xcls_BoxLayout20(Xcls_MainWindow _owner )
+        public Xcls_BoxLayout19(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Clutter.BoxLayout();
@@ -795,6 +772,33 @@ public class Xcls_MainWindow : Object
         // user defined functions
     }
 
+    public class Xcls_objectview : Object
+    {
+        public Gtk.Box el;
+        private Xcls_MainWindow  _this;
+
+
+            // my vars (def)
+
+        // ctor
+        public Xcls_objectview(Xcls_MainWindow _owner )
+        {
+            _this = _owner;
+            _this.objectview = this;
+            this.el = new Gtk.Box( null, 0 );
+
+            // my vars (dec)
+
+            // set gobject values
+
+            // init method
+
+            
+        }
+
+        // user defined functions
+    }
+
 
 
     public class Xcls_Box22 : Object