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 xtype: Gtk.TreeViewColumn,
140 xtype: Gtk.CellRendererText
145 xtype: Gtk.TreeViewColumn,
149 xtype: Gtk.CellRendererToggle,
151 toggled : function (self, path) {
157 var old = this.list.getValue(path, 1);
158 // print(JSON.stringify(old));
159 this.list.setValue(path, 1, old ? false : true)
175 xtype: Gtk.ScrolledWindow,
181 xtype: Gtk.ListStore,
182 id : "children-list-store"
185 xtype: Gtk.TreeViewColumn,
186 title : "Child classes",
189 xtype: Gtk.CellRendererText
194 xtype: Gtk.TreeViewColumn,
198 xtype: Gtk.CellRendererToggle,
200 toggled : function (self, path) {
206 var old = this.list.getValue(path, 1);
207 // print(JSON.stringify(old));
208 this.list.setValue(path, 1, old ? false : true)
230 XObject.cache['/Window'] = Window;