resources/RooUsage.txt
[app.Builder.js] / src / Builder4 / WindowRightPalete.vala
index 6868f74..046771a 100644 (file)
@@ -1,8 +1,8 @@
 static Xcls_RightPalete  _RightPalete;
 
-public class Xcls_RightPalete : Object 
+public class Xcls_RightPalete : Object
 {
-    public Gtk.VBox el;
+    public Gtk.Box el;
     private Xcls_RightPalete  _this;
 
     public static Xcls_RightPalete singleton()
@@ -21,21 +21,21 @@ public class Xcls_RightPalete : Object
     public signal void before_node_change(JsRender.Node? node) ;
     public signal void drag_end() ;
 
-    // ctor 
+    // ctor
     public Xcls_RightPalete()
     {
         _this = this;
-        this.el = new Gtk.VBox( true, 0 );
+        this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
 
         // my vars (dec)
 
         // set gobject values
         var child_0 = new Xcls_viewbox( _this );
         child_0.ref();
-        this.el.add (  child_0.el  );
+        this.el.pack_start (  child_0.el , true,true,0 );
     }
 
-    // user defined functions 
+    // user defined functions
     public void load (Palete.Palete pal, string cls ) {
        
        // this.get('model').expanded();
@@ -58,32 +58,32 @@ public class Xcls_RightPalete : Object
     public void clear () {
        this.model.el.clear();
     }
-    public class Xcls_viewbox : Object 
+    public class Xcls_viewbox : Object
     {
-        public Gtk.VBox el;
+        public Gtk.Box el;
         private Xcls_RightPalete  _this;
 
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_viewbox(Xcls_RightPalete _owner )
         {
             _this = _owner;
             _this.viewbox = this;
-            this.el = new Gtk.VBox( true, 0 );
+            this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
 
             // my vars (dec)
 
             // set gobject values
             var child_0 = new Xcls_ScrolledWindow3( _this );
             child_0.ref();
-            this.el.add (  child_0.el  );
+            this.el.pack_start (  child_0.el , true,true,0 );
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_ScrolledWindow3 : Object 
+    public class Xcls_ScrolledWindow3 : Object
     {
         public Gtk.ScrolledWindow el;
         private Xcls_RightPalete  _this;
@@ -91,7 +91,7 @@ public class Xcls_RightPalete : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_ScrolledWindow3(Xcls_RightPalete _owner )
         {
             _this = _owner;
@@ -105,14 +105,15 @@ public class Xcls_RightPalete : Object
             child_0.ref();
             this.el.add (  child_0.el  );
 
-            // init method 
+            // init method
 
             this.el.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC);
-               this.el.set_size_request(-1,200);        }
+               this.el.set_size_request(-1,200);
+        }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_TreeView4 : Object 
+    public class Xcls_TreeView4 : Object
     {
         public Gtk.TreeView el;
         private Xcls_RightPalete  _this;
@@ -121,7 +122,7 @@ public class Xcls_RightPalete : Object
             // my vars (def)
         public string dragData;
 
-        // ctor 
+        // ctor
         public Xcls_TreeView4(Xcls_RightPalete _owner )
         {
             _this = _owner;
@@ -131,7 +132,7 @@ public class Xcls_RightPalete : Object
 
             // set gobject values
             this.el.enable_tree_lines = true;
-            this.el.headers_visible = false;
+            this.el.headers_visible = true;
             var child_0 = new Xcls_model( _this );
             child_0.ref();
             this.el.set_model (  child_0.el  );
@@ -139,7 +140,7 @@ public class Xcls_RightPalete : Object
             child_1.ref();
             this.el.append_column (  child_1.el  );
 
-            // init method 
+            // init method
 
             {
                 this.el.set_size_request(150,-1);
@@ -147,7 +148,7 @@ public class Xcls_RightPalete : Object
                                               
                 var description = new Pango.FontDescription();
                 description.set_size(8000);
-                this.el.modify_font(description);
+                this.el.override_font(description);
                 
                 var selection = this.el.get_selection();
                 selection.set_mode( Gtk.SelectionMode.SINGLE);
@@ -159,7 +160,7 @@ public class Xcls_RightPalete : Object
                 Gtk.drag_source_set (
                         this.el,            /* widget will be drag-able */
                         Gdk.ModifierType.BUTTON1_MASK,       /* modifier that will start a drag */
-                        Builder4.Application.targetList,            /* lists of target to support */
+                        BuilderApplication.targetList,            /* lists of target to support */
                         Gdk.DragAction.COPY         /* what to do with data after dropped */
                 );
                 //Gtk.drag_source_set_target_list(this.el, LeftTree.targetList);
@@ -168,7 +169,8 @@ public class Xcls_RightPalete : Object
                // Gtk.drag_source_add_text_targets(this.el); 
              
             }
-            // listeners 
+
+            //listeners
             this.el.button_press_event.connect( ( event) => {
             
              //        if (!this.get('/Editor').save()) {
@@ -230,9 +232,9 @@ public class Xcls_RightPalete : Object
             });
         }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_model : Object 
+    public class Xcls_model : Object
     {
         public Gtk.ListStore el;
         private Xcls_RightPalete  _this;
@@ -240,7 +242,7 @@ public class Xcls_RightPalete : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_model(Xcls_RightPalete _owner )
         {
             _this = _owner;
@@ -252,7 +254,7 @@ public class Xcls_RightPalete : Object
             // set gobject values
         }
 
-        // user defined functions 
+        // user defined functions
         public string getValue (Gtk.TreeIter iter, int col)  {
             GLib.Value gval;
              this.el.get_value(iter, col , out gval);
@@ -261,7 +263,8 @@ public class Xcls_RightPalete : Object
             
         }
     }
-    public class Xcls_TreeViewColumn6 : Object 
+
+    public class Xcls_TreeViewColumn6 : Object
     {
         public Gtk.TreeViewColumn el;
         private Xcls_RightPalete  _this;
@@ -269,7 +272,7 @@ public class Xcls_RightPalete : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_TreeViewColumn6(Xcls_RightPalete _owner )
         {
             _this = _owner;
@@ -278,17 +281,19 @@ public class Xcls_RightPalete : Object
             // my vars (dec)
 
             // set gobject values
+            this.el.title = "Drag to add Object";
             var child_0 = new Xcls_txtrender( _this );
             child_0.ref();
             this.el.pack_start (  child_0.el , true );
 
-            // init method 
+            // init method
 
-            this.el.add_attribute(_this.txtrender.el , "markup", 0 );        }
+            this.el.add_attribute(_this.txtrender.el , "markup", 0 );
+        }
 
-        // user defined functions 
+        // user defined functions
     }
-    public class Xcls_txtrender : Object 
+    public class Xcls_txtrender : Object
     {
         public Gtk.CellRendererText el;
         private Xcls_RightPalete  _this;
@@ -296,7 +301,7 @@ public class Xcls_RightPalete : Object
 
             // my vars (def)
 
-        // ctor 
+        // ctor
         public Xcls_txtrender(Xcls_RightPalete _owner )
         {
             _this = _owner;
@@ -308,6 +313,11 @@ public class Xcls_RightPalete : Object
             // set gobject values
         }
 
-        // user defined functions 
+        // user defined functions
     }
+
+
+
+
+
 }