Builder3/Window.js
[app.Builder.js] / Builder3 / Window.js
index 4c5b6fb..0864d44 100644 (file)
@@ -2476,6 +2476,9 @@ Window=new XObject({
                                                                                 
                                                                                 },
                                                                                 edited : function (self, object, p0) {
+                                                                                    
+                                                                                        print("CHANGED VALUE:" + JSON.stringify(p0, null,4));
+                                                                                        return;
                                                                                        var model = this.get('/LeftPanel.model');
                                                                                         var path = model.activePath;
                                                                                         var iret = {};
@@ -2522,11 +2525,11 @@ Window=new XObject({
                                                                             xtype: Gtk.CellRendererCombo,
                                                                             listeners : {
                                                                                 edited : function (self, object, p0) {
+                                                                                    
                                                                                        this.get('/LeftPanel').editing = false;
                                                                                        var ap = this.get('/LeftPanel.model').activePath
                                                                                        print("EDITED? "  + ap + " - p:" + p0 + " t:" + p0);
-                                                                                        this.get('/LeftTree.model').setFromNode(false,p0);
-                                                                                        this.get('/LeftTree.model').changed(true); 
+                                                                                        this.get('/LeftPanel.model').changed(p0, true);
                                                                                         this.get('/LeftPanel.model').activePath = false;
                                                                                         this.el.editable = false;
                                                                                 },
@@ -2798,8 +2801,11 @@ Window=new XObject({
                             ]
                         },
                         {
-                            xtype: Gtk.HBox,
+                            xtype: Gtk.HPaned,
                             pack : "add",
+                            id : 'centereast',
+                            position : 500,
+
                             items : [
                                 {
                                     xtype: Gtk.VPaned,
@@ -3897,17 +3903,25 @@ Window=new XObject({
                                 },
                                 {
                                     xtype: Gtk.VBox,
-                                    pack : "pack_start,false,false",
+                                    pack : "add",
                                     id : "RightPalete",
                                     hide : function() {
                                         
                                           this.get('buttonbar').el.show();
                                            this.get('viewbox').el.hide();
-                                        print("TRIED TO HIDE");
+                                           var ce = this.get('/Window.centerEast').el;
+                                           
+                                           ce.set_postion(ce.get_allocated_width() - 30);
+                                             
+                                           print("TRIED TO HIDE");
                                     },
                                     show : function() {
                                         this.get('buttonbar').el.hide();
                                         this.get('viewbox').el.show();
+                                        var ce = this.get('/Window.centereast').el;
+                                        print(JSON.stringify(XObject.keys(ce) ,null,4));
+                                        ce.set_postion(ce.get_allocated_width() - 100);
+                                           
                                        // this.get('model').expanded();
                                                 
                                     },