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) {
25 ls.append( [ v , false, true ]);
27 var ls = this.get('children-list-store');
28 this.data.allchildren.forEach(function(v) {
29 ls.append( [ v , false, true ]);
31 var ls = this.get('class-list-store');
33 for (var c in this.data.methods) {
35 ls.append( [ c , true , i > 10 ? false : true]);
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 this.el.set_visible_column(2);
79 XObject.prototype.init.call(this);
85 id : "class-list-store",
89 XObject.prototype.init.call(this);
90 this.el.set_column_types ( 6, [
104 xtype: Gtk.TreeViewColumn,
109 xtype: Gtk.CellRendererText
114 xtype: Gtk.TreeViewColumn,
118 xtype: Gtk.CellRendererToggle,
120 toggled : function (self, path) {
126 var old = this.list.getValue(path, 1);
127 // print(JSON.stringify(old));
128 this.list.setValue(path, 1, old ? false : true)
144 xtype: Gtk.ScrolledWindow,
150 xtype: Gtk.TreeModelFilter,
152 this.items[0].pack = false;
153 this.items[0].init();
154 this.list = this.items[0];
155 this.el = new Gtk.TreeModelFilter.c_new(this.items[0].el, null);
156 this.el.set_visible_column(2);
157 XObject.prototype.init.call(this);
162 xtype: Gtk.ListStore,
163 id : "method-list-store",
166 XObject.prototype.init.call(this);
167 this.el.set_column_types ( 6, [
169 GObject.TYPE_BOOLEAN,
170 GObject.TYPE_BOOLEAN,
181 xtype: Gtk.TreeViewColumn,
186 xtype: Gtk.CellRendererText
191 xtype: Gtk.TreeViewColumn,
195 xtype: Gtk.CellRendererToggle,
197 toggled : function (self, path) {
203 var old = this.list.getValue(path, 1);
204 // print(JSON.stringify(old));
205 this.list.setValue(path, 1, old ? false : true)
221 xtype: Gtk.ScrolledWindow,
227 xtype: Gtk.TreeModelFilter,
229 this.items[0].pack = false;
230 this.items[0].init();
231 this.list = this.items[0];
232 this.el = new Gtk.TreeModelFilter.c_new(this.items[0].el, null);
233 this.el.set_visible_column(2);
234 XObject.prototype.init.call(this);
239 xtype: Gtk.ListStore,
240 id : "children-list-store",
244 XObject.prototype.init.call(this);
245 this.el.set_column_types ( 6, [
247 GObject.TYPE_BOOLEAN,
248 GObject.TYPE_BOOLEAN,
259 xtype: Gtk.TreeViewColumn,
260 title : "Child classes",
264 xtype: Gtk.CellRendererText
269 xtype: Gtk.TreeViewColumn,
273 xtype: Gtk.CellRendererToggle,
275 toggled : function (self, path) {
281 var old = this.list.getValue(path, 1);
282 // print(JSON.stringify(old));
283 this.list.setValue(path, 1, old ? false : true)
305 XObject.cache['/Window'] = Window;