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');
32 for (var c in this.data.methods) {
33 ls.append( [ c , true ]);
43 XObject.prototype.init.call(this);
52 pack : "pack_start,false,false",
64 xtype: Gtk.ScrolledWindow,
70 xtype: Gtk.TreeModelFilter,
74 id : "class-list-store",
77 XObject.prototype.init.call(this);
78 this.el.set_column_types ( 6, [
92 xtype: Gtk.TreeViewColumn,
97 xtype: Gtk.CellRendererText
102 xtype: Gtk.TreeViewColumn,
106 xtype: Gtk.CellRendererToggle,
108 toggled : function (self, path) {
114 var old = this.list.getValue(path, 1);
115 // print(JSON.stringify(old));
116 this.list.setValue(path, 1, old ? false : true)
132 xtype: Gtk.ScrolledWindow,
138 xtype: Gtk.ListStore,
139 id : "method-list-store",
142 XObject.prototype.init.call(this);
143 this.el.set_column_types ( 6, [
145 GObject.TYPE_BOOLEAN,
155 xtype: Gtk.TreeViewColumn,
160 xtype: Gtk.CellRendererText
165 xtype: Gtk.TreeViewColumn,
169 xtype: Gtk.CellRendererToggle,
171 toggled : function (self, path) {
177 var old = this.list.getValue(path, 1);
178 // print(JSON.stringify(old));
179 this.list.setValue(path, 1, old ? false : true)
195 xtype: Gtk.ScrolledWindow,
201 xtype: Gtk.ListStore,
202 id : "children-list-store",
205 XObject.prototype.init.call(this);
206 this.el.set_column_types ( 6, [
208 GObject.TYPE_BOOLEAN,
218 xtype: Gtk.TreeViewColumn,
219 title : "Child classes",
223 xtype: Gtk.CellRendererText
228 xtype: Gtk.TreeViewColumn,
232 xtype: Gtk.CellRendererToggle,
234 toggled : function (self, path) {
240 var old = this.list.getValue(path, 1);
241 // print(JSON.stringify(old));
242 this.list.setValue(path, 1, old ? false : true)
264 XObject.cache['/Window'] = Window;