X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=DependTree%2FWindow.bjs;h=6daff70d88efe5b56460632608ff20ef51ff2db5;hb=bbe89b7b9a2ea0e80e259e7813043a529ee2018c;hp=4bb959ac6e4584f51c84054f64b541b110f34a88;hpb=e3df4f376d689a70d0d4ca37b61dc44967868cb5;p=app.Builder.js diff --git a/DependTree/Window.bjs b/DependTree/Window.bjs index 4bb959ac6..6daff70d8 100644 --- a/DependTree/Window.bjs +++ b/DependTree/Window.bjs @@ -7,7 +7,7 @@ "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 var i =0;\n for (var c in this.data.methods) {\n i++;\n ls.append( [ c , true , i > 10 ? true : false]);\n };\n \n \n \n}" + "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 , false, true ]);\n });\n var ls = this.get('children-list-store');\n this.data.allchildren.forEach(function(v) {\n ls.append( [ v , false, true ]);\n });\n var ls = this.get('class-list-store');\n var i =0;\n for (var c in this.data.methods) {\n i++;\n ls.append( [ c , true , i > 10 ? false : true]);\n };\n \n \n \n}" }, "default_height": 500, "default_width": 600, @@ -49,7 +49,7 @@ "items": [ { "xtype": "TreeModelFilter", - "|init": "function() {\n this.items[0].pack = false;\n this.items[0].init();\n this.list = this.items[0];\n this.el = new Gtk.TreeModelFilter.c_new(this.items[0].el, null);\n this.el.set_visible_column(1);\n XObject.prototype.init.call(this);\n \n}\n", + "|init": "function() {\n this.items[0].pack = false;\n this.items[0].init();\n this.list = this.items[0];\n this.el = new Gtk.TreeModelFilter.c_new(this.items[0].el, null);\n this.el.set_visible_column(2);\n XObject.prototype.init.call(this);\n \n}\n", "|xns": "Gtk", "items": [ { @@ -105,10 +105,18 @@ "listeners": {}, "items": [ { - "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" + "xtype": "TreeModelFilter", + "|init": "function() {\n this.items[0].pack = false;\n this.items[0].init();\n this.list = this.items[0];\n this.el = new Gtk.TreeModelFilter.c_new(this.items[0].el, null);\n this.el.set_visible_column(2);\n XObject.prototype.init.call(this);\n \n}\n", + "|xns": "Gtk", + "items": [ + { + "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_BOOLEAN, \n GObject.TYPE_STRING, \n GObject.TYPE_STRING, \n GObject.TYPE_STRING \n ] );\n \n }", + "|xns": "Gtk", + "listeners": {} + } + ] }, { "title": "Methods", @@ -154,6 +162,21 @@ "|xns": "Gtk", "listeners": {}, "items": [ + { + "xtype": "TreeModelFilter", + "|init": "function() {\n this.items[0].pack = false;\n this.items[0].init();\n this.list = this.items[0];\n this.el = new Gtk.TreeModelFilter.c_new(this.items[0].el, null);\n this.el.set_visible_column(2);\n XObject.prototype.init.call(this);\n \n}\n", + "|xns": "Gtk", + "pack": false, + "items": [ + { + "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", + "pack": false + } + ] + }, { "id": "children-list-store", "xtype": "ListStore",