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.model.el, iter);
76 var tp = this.model.el.get_path(iter).to_string();
79 var cls = this.model.getValue(tp, 0);
86 xtype: Gtk.TreeModelFilter,
88 this.items[0].pack = false;
90 this.list = this.items[0];
91 this.el = new Gtk.TreeModelFilter.c_new(this.items[0].el, null);
92 this.el.set_visible_column(2);
93 XObject.prototype.init.call(this);
94 this.parent.model = this;
100 id : "class-list-store",
104 XObject.prototype.init.call(this);
105 this.el.set_column_types ( 6, [
107 GObject.TYPE_BOOLEAN,
108 GObject.TYPE_BOOLEAN,
119 xtype: Gtk.TreeViewColumn,
124 xtype: Gtk.CellRendererText
129 xtype: Gtk.TreeViewColumn,
133 xtype: Gtk.CellRendererToggle,
135 toggled : function (self, path) {
141 var old = this.list.getValue(path, 1);
142 // print(JSON.stringify(old));
143 this.list.setValue(path, 1, old ? false : true)
159 xtype: Gtk.ScrolledWindow,
165 xtype: Gtk.TreeModelFilter,
167 this.items[0].pack = false;
168 this.items[0].init();
169 this.list = this.items[0];
170 this.el = new Gtk.TreeModelFilter.c_new(this.items[0].el, null);
171 this.el.set_visible_column(2);
172 XObject.prototype.init.call(this);
177 xtype: Gtk.ListStore,
178 id : "method-list-store",
181 XObject.prototype.init.call(this);
182 this.el.set_column_types ( 6, [
184 GObject.TYPE_BOOLEAN,
185 GObject.TYPE_BOOLEAN,
196 xtype: Gtk.TreeViewColumn,
201 xtype: Gtk.CellRendererText
206 xtype: Gtk.TreeViewColumn,
210 xtype: Gtk.CellRendererToggle,
212 toggled : function (self, path) {
218 var old = this.list.getValue(path, 1);
219 // print(JSON.stringify(old));
220 this.list.setValue(path, 1, old ? false : true)
236 xtype: Gtk.ScrolledWindow,
242 xtype: Gtk.TreeModelFilter,
244 this.items[0].pack = false;
245 this.items[0].init();
246 this.list = this.items[0];
247 this.el = new Gtk.TreeModelFilter.c_new(this.items[0].el, null);
248 this.el.set_visible_column(2);
249 XObject.prototype.init.call(this);
254 xtype: Gtk.ListStore,
255 id : "children-list-store",
259 XObject.prototype.init.call(this);
260 this.el.set_column_types ( 6, [
262 GObject.TYPE_BOOLEAN,
263 GObject.TYPE_BOOLEAN,
274 xtype: Gtk.TreeViewColumn,
275 title : "Child classes",
279 xtype: Gtk.CellRendererText
284 xtype: Gtk.TreeViewColumn,
288 xtype: Gtk.CellRendererToggle,
290 toggled : function (self, path) {
296 var old = this.list.getValue(path, 1);
297 // print(JSON.stringify(old));
298 this.list.setValue(path, 1, old ? false : true)
320 XObject.cache['/Window'] = Window;