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,
71 id : "class-list-store",
74 XObject.prototype.init.call(this);
75 this.el.set_column_types ( 6, [
87 xtype: Gtk.TreeViewColumn,
92 xtype: Gtk.CellRendererText
97 xtype: Gtk.TreeViewColumn,
101 xtype: Gtk.CellRendererToggle,
103 toggled : function (self, path) {
109 var old = this.list.getValue(path, 1);
110 // print(JSON.stringify(old));
111 this.list.setValue(path, 1, old ? false : true)
127 xtype: Gtk.ScrolledWindow,
133 xtype: Gtk.ListStore,
134 id : "method-list-store",
137 XObject.prototype.init.call(this);
138 this.el.set_column_types ( 6, [
140 GObject.TYPE_BOOLEAN,
150 xtype: Gtk.TreeViewColumn,
155 xtype: Gtk.CellRendererText
160 xtype: Gtk.TreeViewColumn,
164 xtype: Gtk.CellRendererToggle,
166 toggled : function (self, path) {
172 var old = this.list.getValue(path, 1);
173 // print(JSON.stringify(old));
174 this.list.setValue(path, 1, old ? false : true)
190 xtype: Gtk.ScrolledWindow,
196 xtype: Gtk.ListStore,
197 id : "children-list-store",
200 XObject.prototype.init.call(this);
201 this.el.set_column_types ( 6, [
203 GObject.TYPE_BOOLEAN,
213 xtype: Gtk.TreeViewColumn,
214 title : "Child classes",
218 xtype: Gtk.CellRendererText
223 xtype: Gtk.TreeViewColumn,
227 xtype: Gtk.CellRendererToggle,
229 toggled : function (self, path) {
235 var old = this.list.getValue(path, 1);
236 // print(JSON.stringify(old));
237 this.list.setValue(path, 1, old ? false : true)
259 XObject.cache['/Window'] = Window;