6dad0b119a1502ada08968b5b8d2d6930ff7f9aa
[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 , false, true ]);\n    });\n    var ls = this.get('children-list-store');\n    this.data.allchildren.forEach(function(v) {\n        ls.append( [ v , false, true ]);\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 ? false : 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                                                     "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     this.el.set_visible_column(2);\n    XObject.prototype.init.call(this);\n   \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                                                     "xtype": "TreeModelFilter",
109                                                     "|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     this.el.set_visible_column(2);\n    XObject.prototype.init.call(this);\n   \n}\n",
110                                                     "|xns": "Gtk",
111                                                     "items": [
112                                                         {
113                                                             "id": "method-list-store",
114                                                             "xtype": "ListStore",
115                                                             "|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        }",
116                                                             "|xns": "Gtk",
117                                                             "listeners": {}
118                                                         }
119                                                     ]
120                                                 },
121                                                 {
122                                                     "title": "Methods",
123                                                     "xtype": "TreeViewColumn",
124                                                     "|xns": "Gtk",
125                                                     "expand": true,
126                                                     "listeners": {},
127                                                     "items": [
128                                                         {
129                                                             "xtype": "CellRendererText",
130                                                             "|xns": "Gtk",
131                                                             "listeners": {}
132                                                         }
133                                                     ]
134                                                 },
135                                                 {
136                                                     "title": "Active",
137                                                     "xtype": "TreeViewColumn",
138                                                     "|xns": "Gtk",
139                                                     "listeners": {},
140                                                     "items": [
141                                                         {
142                                                             "listeners": {
143                                                                 "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}"
144                                                             },
145                                                             "activatable": true,
146                                                             "xtype": "CellRendererToggle",
147                                                             "|xns": "Gtk"
148                                                         }
149                                                     ]
150                                                 }
151                                             ]
152                                         }
153                                     ]
154                                 },
155                                 {
156                                     "xtype": "ScrolledWindow",
157                                     "|xns": "Gtk",
158                                     "listeners": {},
159                                     "items": [
160                                         {
161                                             "xtype": "TreeView",
162                                             "|xns": "Gtk",
163                                             "listeners": {},
164                                             "items": [
165                                                 {
166                                                     "xtype": "TreeModelFilter",
167                                                     "|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     this.el.set_visible_column(2);\n    XObject.prototype.init.call(this);\n   \n}\n",
168                                                     "|xns": "Gtk",
169                                                     "pack": false,
170                                                     "items": [
171                                                         {
172                                                             "id": "method-list-store",
173                                                             "xtype": "ListStore",
174                                                             "|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        }",
175                                                             "|xns": "Gtk",
176                                                             "listeners": {}
177                                                         }
178                                                     ]
179                                                 },
180                                                 {
181                                                     "id": "children-list-store",
182                                                     "xtype": "ListStore",
183                                                     "|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        }",
184                                                     "|xns": "Gtk"
185                                                 },
186                                                 {
187                                                     "title": "Child classes",
188                                                     "xtype": "TreeViewColumn",
189                                                     "|xns": "Gtk",
190                                                     "expand": true,
191                                                     "listeners": {},
192                                                     "items": [
193                                                         {
194                                                             "xtype": "CellRendererText",
195                                                             "|xns": "Gtk",
196                                                             "listeners": {}
197                                                         }
198                                                     ]
199                                                 },
200                                                 {
201                                                     "title": "Active",
202                                                     "xtype": "TreeViewColumn",
203                                                     "|xns": "Gtk",
204                                                     "listeners": {},
205                                                     "items": [
206                                                         {
207                                                             "listeners": {
208                                                                 "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}"
209                                                             },
210                                                             "activatable": true,
211                                                             "xtype": "CellRendererToggle",
212                                                             "|xns": "Gtk"
213                                                         }
214                                                     ]
215                                                 }
216                                             ]
217                                         }
218                                     ]
219                                 }
220                             ]
221                         }
222                     ]
223                 }
224             ]
225         }
226     ],
227     "permname": "",
228     "modOrder": ""
229 }