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,
91 xtype: Gtk.CellRendererText
96 xtype: Gtk.TreeViewColumn,
100 xtype: Gtk.CellRendererToggle,
102 toggled : function (self, path) {
108 var old = this.list.getValue(path, 1);
109 // print(JSON.stringify(old));
110 this.list.setValue(path, 1, old ? false : true)
126 xtype: Gtk.ScrolledWindow,
132 xtype: Gtk.ListStore,
133 id : "method-list-store",
136 XObject.prototype.init.call(this);
137 this.el.set_column_types ( 6, [
139 GObject.TYPE_BOOLEAN,
149 xtype: Gtk.TreeViewColumn,
153 xtype: Gtk.CellRendererText
158 xtype: Gtk.TreeViewColumn,
162 xtype: Gtk.CellRendererToggle,
164 toggled : function (self, path) {
170 var old = this.list.getValue(path, 1);
171 // print(JSON.stringify(old));
172 this.list.setValue(path, 1, old ? false : true)
188 xtype: Gtk.ScrolledWindow,
194 xtype: Gtk.ListStore,
195 id : "children-list-store",
198 XObject.prototype.init.call(this);
199 this.el.set_column_types ( 6, [
201 GObject.TYPE_BOOLEAN,
211 xtype: Gtk.TreeViewColumn,
212 title : "Child classes",
215 xtype: Gtk.CellRendererText
220 xtype: Gtk.TreeViewColumn,
224 xtype: Gtk.CellRendererToggle,
226 toggled : function (self, path) {
232 var old = this.list.getValue(path, 1);
233 // print(JSON.stringify(old));
234 this.list.setValue(path, 1, old ? false : true)
256 XObject.cache['/Window'] = Window;