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, [
88 xtype: Gtk.TreeViewColumn,
93 xtype: Gtk.CellRendererText
98 xtype: Gtk.TreeViewColumn,
102 xtype: Gtk.CellRendererToggle,
104 toggled : function (self, path) {
110 var old = this.list.getValue(path, 1);
111 // print(JSON.stringify(old));
112 this.list.setValue(path, 1, old ? false : true)
128 xtype: Gtk.ScrolledWindow,
134 xtype: Gtk.ListStore,
135 id : "method-list-store",
138 XObject.prototype.init.call(this);
139 this.el.set_column_types ( 6, [
141 GObject.TYPE_BOOLEAN,
151 xtype: Gtk.TreeViewColumn,
156 xtype: Gtk.CellRendererText
161 xtype: Gtk.TreeViewColumn,
165 xtype: Gtk.CellRendererToggle,
167 toggled : function (self, path) {
173 var old = this.list.getValue(path, 1);
174 // print(JSON.stringify(old));
175 this.list.setValue(path, 1, old ? false : true)
191 xtype: Gtk.ScrolledWindow,
197 xtype: Gtk.ListStore,
198 id : "children-list-store",
201 XObject.prototype.init.call(this);
202 this.el.set_column_types ( 6, [
204 GObject.TYPE_BOOLEAN,
214 xtype: Gtk.TreeViewColumn,
215 title : "Child classes",
219 xtype: Gtk.CellRendererText
224 xtype: Gtk.TreeViewColumn,
228 xtype: Gtk.CellRendererToggle,
230 toggled : function (self, path) {
236 var old = this.list.getValue(path, 1);
237 // print(JSON.stringify(old));
238 this.list.setValue(path, 1, old ? false : true)
260 XObject.cache['/Window'] = Window;