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 this.el.set_visible_column(1);
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.ListStore,
151 id : "method-list-store",
154 XObject.prototype.init.call(this);
155 this.el.set_column_types ( 6, [
157 GObject.TYPE_BOOLEAN,
167 xtype: Gtk.TreeViewColumn,
172 xtype: Gtk.CellRendererText
177 xtype: Gtk.TreeViewColumn,
181 xtype: Gtk.CellRendererToggle,
183 toggled : function (self, path) {
189 var old = this.list.getValue(path, 1);
190 // print(JSON.stringify(old));
191 this.list.setValue(path, 1, old ? false : true)
207 xtype: Gtk.ScrolledWindow,
213 xtype: Gtk.ListStore,
214 id : "children-list-store",
217 XObject.prototype.init.call(this);
218 this.el.set_column_types ( 6, [
220 GObject.TYPE_BOOLEAN,
230 xtype: Gtk.TreeViewColumn,
231 title : "Child classes",
235 xtype: Gtk.CellRendererText
240 xtype: Gtk.TreeViewColumn,
244 xtype: Gtk.CellRendererToggle,
246 toggled : function (self, path) {
252 var old = this.list.getValue(path, 1);
253 // print(JSON.stringify(old));
254 this.list.setValue(path, 1, old ? false : true)
276 XObject.cache['/Window'] = Window;