DependTree/Window.js
[app.Builder.js] / DependTree / Window.js
1 Gtk = imports.gi.Gtk;
2 Gdk = imports.gi.Gdk;
3 Pango = imports.gi.Pango;
4 GLib = imports.gi.GLib;
5 Gio = imports.gi.Gio;
6 GObject = imports.gi.GObject;
7 GtkSource = imports.gi.GtkSource;
8 WebKit = imports.gi.WebKit;
9 Vte = imports.gi.Vte;
10 GtkClutter = imports.gi.GtkClutter;
11 Gdl = imports.gi.Gdl;
12 console = imports.console;
13 XObject = imports.XObject.XObject;
14 Window=new XObject({
15     xtype: Gtk.Window,
16     listeners : {
17         show : function (self) {
18             print("SHOW");
19             var BuildLists = imports['BuildLists.js'].BuildLists;
20             this.data = new BuildLists();
21             print(JSON.stringify(data.allmethods, null,4));
22         }
23     },
24     default_height : 500,
25     default_width : 600,
26     init : function() {
27         XObject.prototype.init.call(this);
28         this.el.show_all();
29     },
30     items : [
31         {
32             xtype: Gtk.HBox,
33             items : [
34                 {
35                     xtype: Gtk.ScrolledWindow,
36                     items : [
37                         {
38                             xtype: Gtk.TreeView,
39                             items : [
40                                 {
41                                     xtype: Gtk.ListStore
42                                 },
43                                 {
44                                     xtype: Gtk.TreeViewColumn,
45                                     title : "Class",
46                                     items : [
47                                         {
48                                             xtype: Gtk.CellRendererText
49                                         }
50                                     ]
51                                 }
52                             ]
53                         }
54                     ]
55                 },
56                 {
57                     xtype: Gtk.ScrolledWindow,
58                     items : [
59                         {
60                             xtype: Gtk.TreeView,
61                             items : [
62                                 {
63                                     xtype: Gtk.ListStore
64                                 },
65                                 {
66                                     xtype: Gtk.TreeViewColumn,
67                                     title : "Child Classes",
68                                     items : [
69                                         {
70                                             xtype: Gtk.CellRendererText
71                                         }
72                                     ]
73                                 }
74                             ]
75                         }
76                     ]
77                 },
78                 {
79                     xtype: Gtk.ScrolledWindow,
80                     items : [
81                         {
82                             xtype: Gtk.TreeView,
83                             items : [
84                                 {
85                                     xtype: Gtk.ListStore
86                                 },
87                                 {
88                                     xtype: Gtk.TreeViewColumn,
89                                     title : "Methods",
90                                     items : [
91                                         {
92                                             xtype: Gtk.CellRendererText
93                                         }
94                                     ]
95                                 }
96                             ]
97                         }
98                     ]
99                 }
100             ]
101         }
102     ]
103 });
104 Window.init();
105 XObject.cache['/Window'] = Window;