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 , 0, 1 ]);
27 var ls = this.get('children-list-store');
28 this.data.allchildren.forEach(function(v) {
29 ls.append( [ v , 0, 1]);
31 var ls = this.get('class-list-store');
33 for (var c in this.data.methods) {
35 ls.append( [ c , true , i > 10 ? 1 : 0]);
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.ListStore,
228 id : "children-list-store",
231 XObject.prototype.init.call(this);
232 this.el.set_column_types ( 6, [
234 GObject.TYPE_BOOLEAN,
244 xtype: Gtk.TreeViewColumn,
245 title : "Child classes",
249 xtype: Gtk.CellRendererText
254 xtype: Gtk.TreeViewColumn,
258 xtype: Gtk.CellRendererToggle,
260 toggled : function (self, path) {
266 var old = this.list.getValue(path, 1);
267 // print(JSON.stringify(old));
268 this.list.setValue(path, 1, old ? false : true)
290 XObject.cache['/Window'] = Window;