"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 , 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}"
+ "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 , true, true ]);\n });\n \n var ls = this.get('children-list-store');\n this.data.allchildren.forEach(function(v) {\n ls.append( [ v , true, 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 , true]);\n };\n print(JSON.stringify(this.data.methods['Gtk.AccelGroup']));\n \n \n \n}"
},
"default_height": 500,
"default_width": 600,
+ "id": "window",
"xtype": "Window",
"|init": "function() {\n XObject.prototype.init.call(this);\n this.el.show_all();\n}\n",
"|xns": "Gtk",
"listeners": {},
"items": [
{
+ "listeners": {
+ "cursor_changed": "function (self) {\n\n var sel = this.el.get_selection();\n\n \n var iter = new Gtk.TreeIter();\n sel.get_selected(this.model.el, iter);\n \n var tp = this.model.el.get_path(iter).to_string();\n print(tp);\n // \n var cls = this.model.getValue(tp, 0);\n print(cls);\n var data = this.get('/window').data;\n \n\n // hide all the rows in the methods list.\n var tp = false; \n var cstore = this.get('/window.children-list-store');\n var meths = [];\n while (false !== (tp = cstore.nextPath(tp))) {\n var mname = cstore.getValue(tp, 0);\n var show = typeof(data.methods[cls][mname]) == 'undefined' ? false :true;\n if (show) {\n meths.push.apply(meths, data.methods[cls][mname]);\n }\n cstore.setValue(tp, 2, show); // hide.. \n\n \n } \n print(JSON.stringify(meths));\n\n tp = false; \n var mstore = this.get('/window.method-list-store');\n while (false !== (tp = mstore.nextPath(tp))) {\n var mname = mstore.getValue(tp, 0);\n var show = meths.indexOf(mname) > -1 ? true :false;\n \n mstore.setValue(tp, 2, show); // hide.. \n }\n \n \n \n}"
+ },
"xtype": "TreeView",
"|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",
+ "|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 this.parent.model = this;\n \n}\n",
"|xns": "Gtk",
"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": "method-list-store",
+ "id": "children-list-store",
+ "pack": false,
"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": {}
+ "|xns": "Gtk"
}
]
},
- {
- "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",