3 Pango = imports.gi.Pango;
4 GLib = imports.gi.GLib;
6 GObject = imports.gi.GObject;
7 GtkSource = imports.gi.GtkSource;
8 WebKit = imports.gi.WebKit;
10 GtkClutter = imports.gi.GtkClutter;
12 console = imports.console;
13 XObject = imports.XObject.XObject;
17 show : function (self) {
19 var BuildLists = imports['BuildLists.js'].BuildLists;
20 this.data = new BuildLists();
21 print(JSON.stringify(this.data.allmethods, null,4));
23 var ls = this.get('method-list-store');
24 this.data.allmethods.forEach(function(v) {
27 var ls = this.get('children-list-store');
28 this.data.allchildren.forEach(function(v) {
31 var ls = this.get('class-list-store');
33 for (var c in this.data.methods) {
35 ls.append( [ c , true , i > 10 ? true : false]);
45 XObject.prototype.init.call(this);
54 pack : "pack_start,false,false",
66 xtype: Gtk.ScrolledWindow,
72 xtype: Gtk.TreeModelFilter,
74 this.items[0].pack = false;
76 this.list = this.items[0];
77 this.el = new Gtk.TreeModelFilter.c_new(this.items[0].el, null);
78 XObject.prototype.init.call(this);
79 this.el.set_visible_column(2);
84 id : "class-list-store",
88 XObject.prototype.init.call(this);
89 this.el.set_column_types ( 6, [
103 xtype: Gtk.TreeViewColumn,
108 xtype: Gtk.CellRendererText
113 xtype: Gtk.TreeViewColumn,
117 xtype: Gtk.CellRendererToggle,
119 toggled : function (self, path) {
125 var old = this.list.getValue(path, 1);
126 // print(JSON.stringify(old));
127 this.list.setValue(path, 1, old ? false : true)
143 xtype: Gtk.ScrolledWindow,
149 xtype: Gtk.ListStore,
150 id : "method-list-store",
153 XObject.prototype.init.call(this);
154 this.el.set_column_types ( 6, [
156 GObject.TYPE_BOOLEAN,
166 xtype: Gtk.TreeViewColumn,
171 xtype: Gtk.CellRendererText
176 xtype: Gtk.TreeViewColumn,
180 xtype: Gtk.CellRendererToggle,
182 toggled : function (self, path) {
188 var old = this.list.getValue(path, 1);
189 // print(JSON.stringify(old));
190 this.list.setValue(path, 1, old ? false : true)
206 xtype: Gtk.ScrolledWindow,
212 xtype: Gtk.ListStore,
213 id : "children-list-store",
216 XObject.prototype.init.call(this);
217 this.el.set_column_types ( 6, [
219 GObject.TYPE_BOOLEAN,
229 xtype: Gtk.TreeViewColumn,
230 title : "Child classes",
234 xtype: Gtk.CellRendererText
239 xtype: Gtk.TreeViewColumn,
243 xtype: Gtk.CellRendererToggle,
245 toggled : function (self, path) {
251 var old = this.list.getValue(path, 1);
252 // print(JSON.stringify(old));
253 this.list.setValue(path, 1, old ? false : true)
275 XObject.cache['/Window'] = Window;