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) {
115 xtype: Gtk.ScrolledWindow,
121 xtype: Gtk.ListStore,
122 id : "method-list-store"
125 xtype: Gtk.TreeViewColumn,
129 xtype: Gtk.CellRendererText
138 xtype: Gtk.ScrolledWindow,
144 xtype: Gtk.ListStore,
145 id : "children-list-store"
148 xtype: Gtk.TreeViewColumn,
149 title : "Child classes",
152 xtype: Gtk.CellRendererText
167 XObject.cache['/Window'] = Window;