DependTree/Window.bjs
[app.Builder.js] / DependTree / Window.bjs
1 {
2     "id": "file-gtk-18",
3     "name": "Window",
4     "parent": "",
5     "title": false,
6     "path": "/home/alan/gitlive/app.Builder.js/DependTree/Window.bjs",
7     "items": [
8         {
9             "listeners": {
10                 "show": "function (self) {\n    print(\"SHOW\");\n    var BuildLists = imports['BuildLists.js'].BuildLists;\n    this.data = new BuildLists();\n    print(JSON.stringify(this.data.allmethods, null,4));\n    \n    var ls = this.get('method-list-store');\n    this.data.allmethods.forEach(function(v) {\n        ls.append( [ v ]);\n    });\n    var ls = this.get('children-list-store');\n    this.data.allchildren.forEach(function(v) {\n        ls.append( [ v ]);\n    });\n    var ls = this.get('class-list-store');\n    for (var c in this.data.methods) {\n        ls.append( [ c , true ]);\n    };\n    \n    \n    \n}"
11             },
12             "default_height": 500,
13             "default_width": 600,
14             "xtype": "Window",
15             "|init": "function() {\n    XObject.prototype.init.call(this);\n    this.el.show_all();\n}\n",
16             "|xns": "Gtk",
17             "items": [
18                 {
19                     "xtype": "VBox",
20                     "|xns": "Gtk",
21                     "listeners": {},
22                     "items": [
23                         {
24                             "pack": "pack_start,false,false",
25                             "xtype": "HBox",
26                             "|xns": "Gtk",
27                             "items": [
28                                 {
29                                     "label": "Reset",
30                                     "xtype": "Button",
31                                     "|xns": "Gtk"
32                                 }
33                             ]
34                         },
35                         {
36                             "xtype": "HBox",
37                             "|xns": "Gtk",
38                             "listeners": {},
39                             "items": [
40                                 {
41                                     "xtype": "ScrolledWindow",
42                                     "|xns": "Gtk",
43                                     "listeners": {},
44                                     "items": [
45                                         {
46                                             "xtype": "TreeView",
47                                             "|xns": "Gtk",
48                                             "listeners": {},
49                                             "items": [
50                                                 {
51                                                     "id": "class-list-store",
52                                                     "xtype": "ListStore",
53                                                     "|init": " function() \n        {\n            XObject.prototype.init.call(this);\n            this.el.set_column_types ( 6, [\n                GObject.TYPE_STRING, \n                GObject.TYPE_BOOLEAN, \n                GObject.TYPE_STRING, \n                GObject.TYPE_STRING, \n                GObject.TYPE_STRING, \n                GObject.TYPE_STRING \n            ] );\n            \n        }",
54                                                     "|xns": "Gtk"
55                                                 },
56                                                 {
57                                                     "title": "Class",
58                                                     "xtype": "TreeViewColumn",
59                                                     "|xns": "Gtk",
60                                                     "items": [
61                                                         {
62                                                             "xtype": "CellRendererText",
63                                                             "|xns": "Gtk",
64                                                             "listeners": {}
65                                                         }
66                                                     ]
67                                                 },
68                                                 {
69                                                     "title": "Active",
70                                                     "xtype": "TreeViewColumn",
71                                                     "|xns": "Gtk",
72                                                     "items": [
73                                                         {
74                                                             "listeners": {
75                                                                 "toggled": "function (self, path) {\n    print(\"TOGGLE\");\n    // this.list\n\n\n     \n    var old = this.list.getValue(path, 1);\n    print(JSON.stringify(old));\n//    this.list.setValue(path, 1, !old)\n    \n    \n    \n    \n}"
76                                                             },
77                                                             "activatable": true,
78                                                             "xtype": "CellRendererToggle",
79                                                             "|xns": "Gtk"
80                                                         }
81                                                     ]
82                                                 }
83                                             ]
84                                         }
85                                     ]
86                                 },
87                                 {
88                                     "xtype": "ScrolledWindow",
89                                     "|xns": "Gtk",
90                                     "listeners": {},
91                                     "items": [
92                                         {
93                                             "xtype": "TreeView",
94                                             "|xns": "Gtk",
95                                             "listeners": {},
96                                             "items": [
97                                                 {
98                                                     "id": "method-list-store",
99                                                     "xtype": "ListStore",
100                                                     "|xns": "Gtk"
101                                                 },
102                                                 {
103                                                     "title": "Methods",
104                                                     "xtype": "TreeViewColumn",
105                                                     "|xns": "Gtk",
106                                                     "items": [
107                                                         {
108                                                             "xtype": "CellRendererText",
109                                                             "|xns": "Gtk",
110                                                             "listeners": {}
111                                                         }
112                                                     ]
113                                                 }
114                                             ]
115                                         }
116                                     ]
117                                 },
118                                 {
119                                     "xtype": "ScrolledWindow",
120                                     "|xns": "Gtk",
121                                     "listeners": {},
122                                     "items": [
123                                         {
124                                             "xtype": "TreeView",
125                                             "|xns": "Gtk",
126                                             "listeners": {},
127                                             "items": [
128                                                 {
129                                                     "id": "children-list-store",
130                                                     "xtype": "ListStore",
131                                                     "|xns": "Gtk"
132                                                 },
133                                                 {
134                                                     "title": "Child classes",
135                                                     "xtype": "TreeViewColumn",
136                                                     "|xns": "Gtk",
137                                                     "items": [
138                                                         {
139                                                             "xtype": "CellRendererText",
140                                                             "|xns": "Gtk",
141                                                             "listeners": {}
142                                                         }
143                                                     ]
144                                                 }
145                                             ]
146                                         }
147                                     ]
148                                 }
149                             ]
150                         }
151                     ]
152                 }
153             ]
154         }
155     ],
156     "permname": "",
157     "modOrder": ""
158 }