DependTree/Window.js
[app.Builder.js] / DependTree / Window.js
index 4db53ad..26a42be 100644 (file)
@@ -101,6 +101,17 @@ Window=new XObject({
                                                     listeners : {
                                                         toggled : function (self, path) {
                                                             print("TOGGLE");
+                                                            // this.list
+                                                        
+                                                        
+                                                             
+                                                            var old = this.list.getValue(path, 1);
+                                                           // print(JSON.stringify(old));
+                                                            this.list.setValue(path, 1, old ? false : true)
+                                                            
+                                                            
+                                                            
+                                                            
                                                         }
                                                     },
                                                     activatable : true
@@ -129,6 +140,32 @@ Window=new XObject({
                                                     xtype: Gtk.CellRendererText
                                                 }
                                             ]
+                                        },
+                                        {
+                                            xtype: Gtk.TreeViewColumn,
+                                            title : "Active",
+                                            items : [
+                                                {
+                                                    xtype: Gtk.CellRendererToggle,
+                                                    listeners : {
+                                                        toggled : function (self, path) {
+                                                            print("TOGGLE");
+                                                            // this.list
+                                                        
+                                                        
+                                                             
+                                                            var old = this.list.getValue(path, 1);
+                                                           // print(JSON.stringify(old));
+                                                            this.list.setValue(path, 1, old ? false : true)
+                                                            
+                                                            
+                                                            
+                                                            
+                                                        }
+                                                    },
+                                                    activatable : true
+                                                }
+                                            ]
                                         }
                                     ]
                                 }
@@ -152,6 +189,32 @@ Window=new XObject({
                                                     xtype: Gtk.CellRendererText
                                                 }
                                             ]
+                                        },
+                                        {
+                                            xtype: Gtk.TreeViewColumn,
+                                            title : "Active",
+                                            items : [
+                                                {
+                                                    xtype: Gtk.CellRendererToggle,
+                                                    listeners : {
+                                                        toggled : function (self, path) {
+                                                            print("TOGGLE");
+                                                            // this.list
+                                                        
+                                                        
+                                                             
+                                                            var old = this.list.getValue(path, 1);
+                                                           // print(JSON.stringify(old));
+                                                            this.list.setValue(path, 1, old ? false : true)
+                                                            
+                                                            
+                                                            
+                                                            
+                                                        }
+                                                    },
+                                                    activatable : true
+                                                }
+                                            ]
                                         }
                                     ]
                                 }