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 if (!this.selection) {
73 this.selection = this.el.get_selection();
76 var iter = new Gtk.TreeIter();
77 this.selection.get_selected(this.model.el, iter);
79 var tp = this.model.el.get_path(iter).to_string();
82 var cls = this.model.getValue(tp, 0);
89 xtype: Gtk.TreeModelFilter,
91 this.items[0].pack = false;
93 this.list = this.items[0];
94 this.el = new Gtk.TreeModelFilter.c_new(this.items[0].el, null);
95 this.el.set_visible_column(2);
96 XObject.prototype.init.call(this);
97 this.parent.model = this;
102 xtype: Gtk.ListStore,
103 id : "class-list-store",
107 XObject.prototype.init.call(this);
108 this.el.set_column_types ( 6, [
110 GObject.TYPE_BOOLEAN,
111 GObject.TYPE_BOOLEAN,
122 xtype: Gtk.TreeViewColumn,
127 xtype: Gtk.CellRendererText
132 xtype: Gtk.TreeViewColumn,
136 xtype: Gtk.CellRendererToggle,
138 toggled : function (self, path) {
144 var old = this.list.getValue(path, 1);
145 // print(JSON.stringify(old));
146 this.list.setValue(path, 1, old ? false : true)
162 xtype: Gtk.ScrolledWindow,
168 xtype: Gtk.TreeModelFilter,
170 this.items[0].pack = false;
171 this.items[0].init();
172 this.list = this.items[0];
173 this.el = new Gtk.TreeModelFilter.c_new(this.items[0].el, null);
174 this.el.set_visible_column(2);
175 XObject.prototype.init.call(this);
180 xtype: Gtk.ListStore,
181 id : "method-list-store",
184 XObject.prototype.init.call(this);
185 this.el.set_column_types ( 6, [
187 GObject.TYPE_BOOLEAN,
188 GObject.TYPE_BOOLEAN,
199 xtype: Gtk.TreeViewColumn,
204 xtype: Gtk.CellRendererText
209 xtype: Gtk.TreeViewColumn,
213 xtype: Gtk.CellRendererToggle,
215 toggled : function (self, path) {
221 var old = this.list.getValue(path, 1);
222 // print(JSON.stringify(old));
223 this.list.setValue(path, 1, old ? false : true)
239 xtype: Gtk.ScrolledWindow,
245 xtype: Gtk.TreeModelFilter,
247 this.items[0].pack = false;
248 this.items[0].init();
249 this.list = this.items[0];
250 this.el = new Gtk.TreeModelFilter.c_new(this.items[0].el, null);
251 this.el.set_visible_column(2);
252 XObject.prototype.init.call(this);
257 xtype: Gtk.ListStore,
258 id : "children-list-store",
262 XObject.prototype.init.call(this);
263 this.el.set_column_types ( 6, [
265 GObject.TYPE_BOOLEAN,
266 GObject.TYPE_BOOLEAN,
277 xtype: Gtk.TreeViewColumn,
278 title : "Child classes",
282 xtype: Gtk.CellRendererText
287 xtype: Gtk.TreeViewColumn,
291 xtype: Gtk.CellRendererToggle,
293 toggled : function (self, path) {
299 var old = this.list.getValue(path, 1);
300 // print(JSON.stringify(old));
301 this.list.setValue(path, 1, old ? false : true)
323 XObject.cache['/Window'] = Window;