X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=DependTree%2FWindow.bjs;h=dab447d8d098ab3c5f8917847dd4971211cc4841;hb=35bd8631c82de878a2e88c2e5ba0f12f18f93b5a;hp=3274504cf2d15b3701be07fd1f7ea17057300716;hpb=9b3f5ed75bacb6a383d7a0ccfc81d06840642415;p=app.Builder.js diff --git a/DependTree/Window.bjs b/DependTree/Window.bjs index 3274504cf..dab447d8d 100644 --- a/DependTree/Window.bjs +++ b/DependTree/Window.bjs @@ -1,11 +1,14 @@ { - "id": "file-gtk-18", + "id": "file-gtk-17", "name": "Window", "parent": "", "title": false, "path": "/home/alan/gitlive/app.Builder.js/DependTree/Window.bjs", "items": [ { + "listeners": { + "show": "function (self) {\n print(\"SHOW\");\n var BuildLists = imports['BuildLists.js'].BuildLists;\n this.data = new BuildLists();\n print(JSON.stringify(this.data.allmethods, null,4));\n \n var ls = this.get('method-list-store');\n this.data.allmethods.forEach(function(v) {\n ls.append( [ v ]);\n });\n var ls = this.get('children-list-store');\n this.data.allchildren.forEach(function(v) {\n ls.append( [ v ]);\n });\n var ls = this.get('class-list-store');\n for (var c in this.data.methods) {\n ls.append( [ c , true ]);\n };\n \n \n \n}" + }, "default_height": 500, "default_width": 600, "xtype": "Window", @@ -13,95 +16,180 @@ "|xns": "Gtk", "items": [ { - "xtype": "HBox", + "xtype": "VBox", "|xns": "Gtk", + "listeners": {}, "items": [ { - "xtype": "ScrolledWindow", + "pack": "pack_start,false,false", + "xtype": "HBox", + "|xns": "Gtk", + "items": [ + { + "label": "Reset", + "xtype": "Button", + "|xns": "Gtk" + } + ] + }, + { + "xtype": "HBox", "|xns": "Gtk", "listeners": {}, "items": [ { - "xtype": "TreeView", + "xtype": "ScrolledWindow", "|xns": "Gtk", "listeners": {}, "items": [ { - "xtype": "ListStore", - "|xns": "Gtk", - "listeners": {} - }, - { - "title": "Class", - "xtype": "TreeViewColumn", + "xtype": "TreeView", "|xns": "Gtk", + "listeners": {}, "items": [ { - "xtype": "CellRendererText", + "xtype": "TreeModelFilter", "|xns": "Gtk", - "listeners": {} + "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": [ + { + "xtype": "CellRendererText", + "|xns": "Gtk", + "listeners": {} + } + ] + }, + { + "title": "Active", + "xtype": "TreeViewColumn", + "|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" + } + ] } ] } ] - } - ] - }, - { - "xtype": "ScrolledWindow", - "|xns": "Gtk", - "listeners": {}, - "items": [ + }, { - "xtype": "TreeView", + "xtype": "ScrolledWindow", "|xns": "Gtk", "listeners": {}, "items": [ { - "xtype": "ListStore", - "|xns": "Gtk", - "listeners": {} - }, - { - "title": "Child Classes", - "xtype": "TreeViewColumn", + "xtype": "TreeView", "|xns": "Gtk", + "listeners": {}, "items": [ { - "xtype": "CellRendererText", + "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", - "listeners": {} + "expand": true, + "listeners": {}, + "items": [ + { + "xtype": "CellRendererText", + "|xns": "Gtk", + "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" + } + ] } ] } ] - } - ] - }, - { - "xtype": "ScrolledWindow", - "|xns": "Gtk", - "listeners": {}, - "items": [ + }, { - "xtype": "TreeView", + "xtype": "ScrolledWindow", "|xns": "Gtk", "listeners": {}, "items": [ { - "xtype": "ListStore", - "|xns": "Gtk", - "listeners": {} - }, - { - "title": "Class", - "xtype": "TreeViewColumn", + "xtype": "TreeView", "|xns": "Gtk", + "listeners": {}, "items": [ { - "xtype": "CellRendererText", + "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", + "|xns": "Gtk", + "listeners": {} + } + ] + }, + { + "title": "Active", + "xtype": "TreeViewColumn", "|xns": "Gtk", - "listeners": {} + "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" + } + ] } ] }