DependTree/Window.bjs
[app.Builder.js] / DependTree / Window.bjs
1 {
2     "id": "file-gtk-17",
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    var i =0;\n    for (var c in this.data.methods) {\n        i++;\n        ls.append( [ c , true , i > 10]);\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                                                     "xtype": "TreeModelFilter",
52                                                     "|init": "function() {\n    this.items[0].pack = false;\n    this.items[0].init();\n    this.list = this.items[0];\n    this.el = new Gtk.TreeModelFilter.c_new(this.items[0].el, null);\n    XObject.prototype.init.call(this);\n    this.el.set_visible_column(2);\n}\n",
53                                                     "|xns": "Gtk",
54                                                     "items": [
55                                                         {
56                                                             "id": "class-list-store",
57                                                             "pack": false,
58                                                             "xtype": "ListStore",
59                                                             "|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_BOOLEAN, \n                GObject.TYPE_STRING, \n                GObject.TYPE_STRING, \n                GObject.TYPE_STRING \n            ] );\n            \n        }",
60                                                             "|xns": "Gtk"
61                                                         }
62                                                     ]
63                                                 },
64                                                 {
65                                                     "title": "Class",
66                                                     "xtype": "TreeViewColumn",
67                                                     "|xns": "Gtk",
68                                                     "expand": true,
69                                                     "listeners": {},
70                                                     "items": [
71                                                         {
72                                                             "xtype": "CellRendererText",
73                                                             "|xns": "Gtk",
74                                                             "listeners": {}
75                                                         }
76                                                     ]
77                                                 },
78                                                 {
79                                                     "title": "Active",
80                                                     "xtype": "TreeViewColumn",
81                                                     "|xns": "Gtk",
82                                                     "items": [
83                                                         {
84                                                             "listeners": {
85                                                                 "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 ? false : true)\n    \n    \n    \n    \n}"
86                                                             },
87                                                             "activatable": true,
88                                                             "xtype": "CellRendererToggle",
89                                                             "|xns": "Gtk"
90                                                         }
91                                                     ]
92                                                 }
93                                             ]
94                                         }
95                                     ]
96                                 },
97                                 {
98                                     "xtype": "ScrolledWindow",
99                                     "|xns": "Gtk",
100                                     "listeners": {},
101                                     "items": [
102                                         {
103                                             "xtype": "TreeView",
104                                             "|xns": "Gtk",
105                                             "listeners": {},
106                                             "items": [
107                                                 {
108                                                     "id": "method-list-store",
109                                                     "xtype": "ListStore",
110                                                     "|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        }",
111                                                     "|xns": "Gtk"
112                                                 },
113                                                 {
114                                                     "title": "Methods",
115                                                     "xtype": "TreeViewColumn",
116                                                     "|xns": "Gtk",
117                                                     "expand": true,
118                                                     "listeners": {},
119                                                     "items": [
120                                                         {
121                                                             "xtype": "CellRendererText",
122                                                             "|xns": "Gtk",
123                                                             "listeners": {}
124                                                         }
125                                                     ]
126                                                 },
127                                                 {
128                                                     "title": "Active",
129                                                     "xtype": "TreeViewColumn",
130                                                     "|xns": "Gtk",
131                                                     "listeners": {},
132                                                     "items": [
133                                                         {
134                                                             "listeners": {
135                                                                 "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 ? false : true)\n    \n    \n    \n    \n}"
136                                                             },
137                                                             "activatable": true,
138                                                             "xtype": "CellRendererToggle",
139                                                             "|xns": "Gtk"
140                                                         }
141                                                     ]
142                                                 }
143                                             ]
144                                         }
145                                     ]
146                                 },
147                                 {
148                                     "xtype": "ScrolledWindow",
149                                     "|xns": "Gtk",
150                                     "listeners": {},
151                                     "items": [
152                                         {
153                                             "xtype": "TreeView",
154                                             "|xns": "Gtk",
155                                             "listeners": {},
156                                             "items": [
157                                                 {
158                                                     "id": "children-list-store",
159                                                     "xtype": "ListStore",
160                                                     "|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        }",
161                                                     "|xns": "Gtk"
162                                                 },
163                                                 {
164                                                     "title": "Child classes",
165                                                     "xtype": "TreeViewColumn",
166                                                     "|xns": "Gtk",
167                                                     "expand": true,
168                                                     "listeners": {},
169                                                     "items": [
170                                                         {
171                                                             "xtype": "CellRendererText",
172                                                             "|xns": "Gtk",
173                                                             "listeners": {}
174                                                         }
175                                                     ]
176                                                 },
177                                                 {
178                                                     "title": "Active",
179                                                     "xtype": "TreeViewColumn",
180                                                     "|xns": "Gtk",
181                                                     "listeners": {},
182                                                     "items": [
183                                                         {
184                                                             "listeners": {
185                                                                 "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 ? false : true)\n    \n    \n    \n    \n}"
186                                                             },
187                                                             "activatable": true,
188                                                             "xtype": "CellRendererToggle",
189                                                             "|xns": "Gtk"
190                                                         }
191                                                     ]
192                                                 }
193                                             ]
194                                         }
195                                     ]
196                                 }
197                             ]
198                         }
199                     ]
200                 }
201             ]
202         }
203     ],
204     "permname": "",
205     "modOrder": ""
206 }