X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=DependTree%2FWindow.bjs;h=dab447d8d098ab3c5f8917847dd4971211cc4841;hb=35bd8631c82de878a2e88c2e5ba0f12f18f93b5a;hp=fb9642841cdf6754b2db9a7f10f35ebf526c173b;hpb=8c352488d478d6f94e5268f99bba091e289e6aaf;p=app.Builder.js diff --git a/DependTree/Window.bjs b/DependTree/Window.bjs index fb9642841..dab447d8d 100644 --- a/DependTree/Window.bjs +++ b/DependTree/Window.bjs @@ -1,5 +1,5 @@ { - "id": "file-gtk-18", + "id": "file-gtk-17", "name": "Window", "parent": "", "title": false, @@ -48,20 +48,31 @@ "listeners": {}, "items": [ { - "id": "class-list-store", - "xtype": "ListStore", - "|init": " function() \n {\n XObject.prototype.init.call(this);\n this.el.set_column_types ( 6, [\n GObject.TYPE_STRING, \n GObject.TYPE_BOOLEAN, \n GObject.TYPE_STRING, \n GObject.TYPE_STRING, \n GObject.TYPE_STRING, \n GObject.TYPE_STRING \n ] );\n \n }", - "|xns": "Gtk" + "xtype": "TreeModelFilter", + "|xns": "Gtk", + "listeners": {}, + "items": [ + { + "id": "class-list-store", + "xtype": "ListStore", + "|init": " function() \n {\n XObject.prototype.init.call(this);\n this.el.set_column_types ( 6, [\n GObject.TYPE_STRING, \n GObject.TYPE_BOOLEAN, \n GObject.TYPE_STRING, \n GObject.TYPE_STRING, \n GObject.TYPE_STRING, \n GObject.TYPE_STRING \n ] );\n \n }", + "|xns": "Gtk", + "listeners": {}, + "pack": false + } + ] }, { "title": "Class", "xtype": "TreeViewColumn", "|xns": "Gtk", + "expand": true, + "listeners": {}, "items": [ { - "editable": true, "xtype": "CellRendererText", - "|xns": "Gtk" + "|xns": "Gtk", + "listeners": {} } ] }, @@ -71,6 +82,10 @@ "|xns": "Gtk", "items": [ { + "listeners": { + "toggled": "function (self, path) {\n print(\"TOGGLE\");\n // this.list\n\n\n \n var old = this.list.getValue(path, 1);\n // print(JSON.stringify(old));\n this.list.setValue(path, 1, old ? false : true)\n \n \n \n \n}" + }, + "activatable": true, "xtype": "CellRendererToggle", "|xns": "Gtk" } @@ -93,12 +108,15 @@ { "id": "method-list-store", "xtype": "ListStore", + "|init": " function() \n {\n XObject.prototype.init.call(this);\n this.el.set_column_types ( 6, [\n GObject.TYPE_STRING, \n GObject.TYPE_BOOLEAN, \n GObject.TYPE_STRING, \n GObject.TYPE_STRING, \n GObject.TYPE_STRING, \n GObject.TYPE_STRING \n ] );\n \n }", "|xns": "Gtk" }, { "title": "Methods", "xtype": "TreeViewColumn", "|xns": "Gtk", + "expand": true, + "listeners": {}, "items": [ { "xtype": "CellRendererText", @@ -106,6 +124,22 @@ "listeners": {} } ] + }, + { + "title": "Active", + "xtype": "TreeViewColumn", + "|xns": "Gtk", + "listeners": {}, + "items": [ + { + "listeners": { + "toggled": "function (self, path) {\n print(\"TOGGLE\");\n // this.list\n\n\n \n var old = this.list.getValue(path, 1);\n // print(JSON.stringify(old));\n this.list.setValue(path, 1, old ? false : true)\n \n \n \n \n}" + }, + "activatable": true, + "xtype": "CellRendererToggle", + "|xns": "Gtk" + } + ] } ] } @@ -124,12 +158,15 @@ { "id": "children-list-store", "xtype": "ListStore", + "|init": " function() \n {\n XObject.prototype.init.call(this);\n this.el.set_column_types ( 6, [\n GObject.TYPE_STRING, \n GObject.TYPE_BOOLEAN, \n GObject.TYPE_STRING, \n GObject.TYPE_STRING, \n GObject.TYPE_STRING, \n GObject.TYPE_STRING \n ] );\n \n }", "|xns": "Gtk" }, { "title": "Child classes", "xtype": "TreeViewColumn", "|xns": "Gtk", + "expand": true, + "listeners": {}, "items": [ { "xtype": "CellRendererText", @@ -137,6 +174,22 @@ "listeners": {} } ] + }, + { + "title": "Active", + "xtype": "TreeViewColumn", + "|xns": "Gtk", + "listeners": {}, + "items": [ + { + "listeners": { + "toggled": "function (self, path) {\n print(\"TOGGLE\");\n // this.list\n\n\n \n var old = this.list.getValue(path, 1);\n // print(JSON.stringify(old));\n this.list.setValue(path, 1, old ? false : true)\n \n \n \n \n}" + }, + "activatable": true, + "xtype": "CellRendererToggle", + "|xns": "Gtk" + } + ] } ] }