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) {
25 ls.append( [ v , false, true ]);
27 var ls = this.get('children-list-store');
28 this.data.allchildren.forEach(function(v) {
29 ls.append( [ v , false, true ]);
31 var ls = this.get('class-list-store');
33 for (var c in this.data.methods) {
35 ls.append( [ c , true , true]);
45 XObject.prototype.init.call(this);
54 pack : "pack_start,false,false",
66 xtype: Gtk.ScrolledWindow,
71 cursor_changed : function (self) {
72 var sel = this.el.get_selection();
73 var iter = new Gtk.TreeIter();
74 sel.get_selected(this.el.model, iter);
76 var tp = this.el.model.get_path(iter);
78 var cls = this.model.getValue(tp, 0);
85 xtype: Gtk.TreeModelFilter,
87 this.items[0].pack = false;
89 this.list = this.items[0];
90 this.el = new Gtk.TreeModelFilter.c_new(this.items[0].el, null);
91 this.el.set_visible_column(2);
92 XObject.prototype.init.call(this);
93 this.parent.model = this;
99 id : "class-list-store",
103 XObject.prototype.init.call(this);
104 this.el.set_column_types ( 6, [
106 GObject.TYPE_BOOLEAN,
107 GObject.TYPE_BOOLEAN,
118 xtype: Gtk.TreeViewColumn,
123 xtype: Gtk.CellRendererText
128 xtype: Gtk.TreeViewColumn,
132 xtype: Gtk.CellRendererToggle,
134 toggled : function (self, path) {
140 var old = this.list.getValue(path, 1);
141 // print(JSON.stringify(old));
142 this.list.setValue(path, 1, old ? false : true)
158 xtype: Gtk.ScrolledWindow,
164 xtype: Gtk.TreeModelFilter,
166 this.items[0].pack = false;
167 this.items[0].init();
168 this.list = this.items[0];
169 this.el = new Gtk.TreeModelFilter.c_new(this.items[0].el, null);
170 this.el.set_visible_column(2);
171 XObject.prototype.init.call(this);
176 xtype: Gtk.ListStore,
177 id : "method-list-store",
180 XObject.prototype.init.call(this);
181 this.el.set_column_types ( 6, [
183 GObject.TYPE_BOOLEAN,
184 GObject.TYPE_BOOLEAN,
195 xtype: Gtk.TreeViewColumn,
200 xtype: Gtk.CellRendererText
205 xtype: Gtk.TreeViewColumn,
209 xtype: Gtk.CellRendererToggle,
211 toggled : function (self, path) {
217 var old = this.list.getValue(path, 1);
218 // print(JSON.stringify(old));
219 this.list.setValue(path, 1, old ? false : true)
235 xtype: Gtk.ScrolledWindow,
241 xtype: Gtk.TreeModelFilter,
243 this.items[0].pack = false;
244 this.items[0].init();
245 this.list = this.items[0];
246 this.el = new Gtk.TreeModelFilter.c_new(this.items[0].el, null);
247 this.el.set_visible_column(2);
248 XObject.prototype.init.call(this);
253 xtype: Gtk.ListStore,
254 id : "children-list-store",
258 XObject.prototype.init.call(this);
259 this.el.set_column_types ( 6, [
261 GObject.TYPE_BOOLEAN,
262 GObject.TYPE_BOOLEAN,
273 xtype: Gtk.TreeViewColumn,
274 title : "Child classes",
278 xtype: Gtk.CellRendererText
283 xtype: Gtk.TreeViewColumn,
287 xtype: Gtk.CellRendererToggle,
289 toggled : function (self, path) {
295 var old = this.list.getValue(path, 1);
296 // print(JSON.stringify(old));
297 this.list.setValue(path, 1, old ? false : true)
319 XObject.cache['/Window'] = Window;