Builder4/ValaProjectSettings.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 29 Oct 2014 10:03:15 +0000 (18:03 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 29 Oct 2014 10:03:15 +0000 (18:03 +0800)
Builder4/ValaProjectSettings.vala

Builder4/ValaProjectSettings.bjs
Builder4/ValaProjectSettings.vala

index e01aa33..44b507c 100644 (file)
                                         {
                                             "xtype" : "TreeView",
                                             "string id" : "set_tree",
-                                            "$ xns" : "Gtk"
+                                            "$ xns" : "Gtk",
+                                            "items" : [
+                                                {
+                                                    "* pack" : "set_model",
+                                                    "xtype" : "ListStore",
+                                                    "$ n_columns" : 2,
+                                                    "$ columns" : "    typeof(string),  // 0 key type\n     typeof(string) // ??\n     ",
+                                                    "$ xns" : "Gtk"
+                                                },
+                                                {
+                                                    "utf8 title" : "name",
+                                                    "* init" : " this.el.add_attribute(_this.directory_render.el , \"markup\", 2 );\n this.el.add_attribute(_this.directory_render.el , \"text\", 1 );\n  ",
+                                                    "* pack" : "append_column",
+                                                    "xtype" : "TreeViewColumn",
+                                                    "gboolean resizable" : true,
+                                                    "$ xns" : "Gtk",
+                                                    "items" : [
+                                                        {
+                                                            "id" : "directory_render",
+                                                            "* pack" : "pack_start,false",
+                                                            "xtype" : "CellRendererText",
+                                                            "$ xns" : "Gtk"
+                                                        }
+                                                    ]
+                                                }
+                                            ]
                                         }
                                     ]
                                 },
index 1135c92..e443a7e 100644 (file)
@@ -15,6 +15,7 @@ public class ValaProjectSettings : Object
     public Xcls_label_global label_global;
     public Xcls_label_targets label_targets;
     public Xcls_packages_render packages_render;
+    public Xcls_directory_render directory_render;
     public Xcls_directory_render directory_render;
 
         // my vars (def)
@@ -557,6 +558,87 @@ public class ValaProjectSettings : Object
 
             // my vars (dec)
 
+            // set gobject values
+            var child_0 = new Xcls_ListStore23( _this );
+            child_0.ref();
+            this.el.set_model (  child_0.el  );
+            var child_1 = new Xcls_TreeViewColumn24( _this );
+            child_1.ref();
+            this.el.append_column (  child_1.el  );
+        }
+
+        // user defined functions 
+    }
+    public class Xcls_ListStore23 : Object 
+    {
+        public Gtk.ListStore el;
+        private ValaProjectSettings  _this;
+
+
+            // my vars (def)
+
+        // ctor 
+        public Xcls_ListStore23(ValaProjectSettings _owner )
+        {
+            _this = _owner;
+            this.el = new Gtk.ListStore( 2,     typeof(string),  // 0 key type
+     typeof(string) // ??
+      );
+
+            // my vars (dec)
+
+            // set gobject values
+        }
+
+        // user defined functions 
+    }
+    public class Xcls_TreeViewColumn24 : Object 
+    {
+        public Gtk.TreeViewColumn el;
+        private ValaProjectSettings  _this;
+
+
+            // my vars (def)
+
+        // ctor 
+        public Xcls_TreeViewColumn24(ValaProjectSettings _owner )
+        {
+            _this = _owner;
+            this.el = new Gtk.TreeViewColumn();
+
+            // my vars (dec)
+
+            // set gobject values
+            this.el.title = "name";
+            this.el.resizable = true;
+            var child_0 = new Xcls_directory_render( _this );
+            child_0.ref();
+            this.el.pack_start (  child_0.el , false );
+
+            // init method 
+
+            this.el.add_attribute(_this.directory_render.el , "markup", 2 );
+             this.el.add_attribute(_this.directory_render.el , "text", 1 );        }
+
+        // user defined functions 
+    }
+    public class Xcls_directory_render : Object 
+    {
+        public Gtk.CellRendererText el;
+        private ValaProjectSettings  _this;
+
+
+            // my vars (def)
+
+        // ctor 
+        public Xcls_directory_render(ValaProjectSettings _owner )
+        {
+            _this = _owner;
+            _this.directory_render = this;
+            this.el = new Gtk.CellRendererText();
+
+            // my vars (dec)
+
             // set gobject values
         }
 
@@ -579,28 +661,28 @@ public class ValaProjectSettings : Object
             // my vars (dec)
 
             // set gobject values
-            var child_0 = new Xcls_Label24( _this );
+            var child_0 = new Xcls_Label27( _this );
             child_0.ref();
             this.el.pack_start (  child_0.el , false,false,0 );
             var child_1 = new Xcls_build_pack_target( _this );
             child_1.ref();
             this.el.pack_end (  child_1.el , false,false,0 );
-            var child_2 = new Xcls_Label26( _this );
+            var child_2 = new Xcls_Label29( _this );
             child_2.ref();
             this.el.pack_end (  child_2.el , false,false,0 );
             var child_3 = new Xcls_build_compile_flags( _this );
             child_3.ref();
             this.el.pack_end (  child_3.el , false,false,0 );
-            var child_4 = new Xcls_Label28( _this );
+            var child_4 = new Xcls_Label31( _this );
             child_4.ref();
             this.el.pack_end (  child_4.el , false,false,0 );
-            var child_5 = new Xcls_ScrolledWindow29( _this );
+            var child_5 = new Xcls_ScrolledWindow32( _this );
             child_5.ref();
         }
 
         // user defined functions 
     }
-    public class Xcls_Label24 : Object 
+    public class Xcls_Label27 : Object 
     {
         public Gtk.Label el;
         private ValaProjectSettings  _this;
@@ -609,7 +691,7 @@ public class ValaProjectSettings : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_Label24(ValaProjectSettings _owner )
+        public Xcls_Label27(ValaProjectSettings _owner )
         {
             _this = _owner;
             this.el = new Gtk.Label( "target filename" );
@@ -642,7 +724,7 @@ public class ValaProjectSettings : Object
 
         // user defined functions 
     }
-    public class Xcls_Label26 : Object 
+    public class Xcls_Label29 : Object 
     {
         public Gtk.Label el;
         private ValaProjectSettings  _this;
@@ -651,7 +733,7 @@ public class ValaProjectSettings : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_Label26(ValaProjectSettings _owner )
+        public Xcls_Label29(ValaProjectSettings _owner )
         {
             _this = _owner;
             this.el = new Gtk.Label( "compile flags" );
@@ -684,7 +766,7 @@ public class ValaProjectSettings : Object
 
         // user defined functions 
     }
-    public class Xcls_Label28 : Object 
+    public class Xcls_Label31 : Object 
     {
         public Gtk.Label el;
         private ValaProjectSettings  _this;
@@ -693,7 +775,7 @@ public class ValaProjectSettings : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_Label28(ValaProjectSettings _owner )
+        public Xcls_Label31(ValaProjectSettings _owner )
         {
             _this = _owner;
             this.el = new Gtk.Label( "Files to compile" );
@@ -705,7 +787,7 @@ public class ValaProjectSettings : Object
 
         // user defined functions 
     }
-    public class Xcls_ScrolledWindow29 : Object 
+    public class Xcls_ScrolledWindow32 : Object 
     {
         public Gtk.ScrolledWindow el;
         private ValaProjectSettings  _this;
@@ -714,7 +796,7 @@ public class ValaProjectSettings : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_ScrolledWindow29(ValaProjectSettings _owner )
+        public Xcls_ScrolledWindow32(ValaProjectSettings _owner )
         {
             _this = _owner;
             this.el = new Gtk.ScrolledWindow( null, null );