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 , 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 ,   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                                             "listeners": {
47                                                 "cursor_changed": "function (self) {\n    var sel = this.el.get_selection();\n    var iter = new Gtk.TreeIter();\n    \n    \n}"
48                                             },
49                                             "xtype": "TreeView",
50                                             "|xns": "Gtk",
51                                             "items": [
52                                                 {
53                                                     "xtype": "TreeModelFilter",
54                                                     "|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",
55                                                     "|xns": "Gtk",
56                                                     "items": [
57                                                         {
58                                                             "id": "class-list-store",
59                                                             "pack": false,
60                                                             "xtype": "ListStore",
61                                                             "|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        }",
62                                                             "|xns": "Gtk"
63                                                         }
64                                                     ]
65                                                 },
66                                                 {
67                                                     "title": "Class",
68                                                     "xtype": "TreeViewColumn",
69                                                     "|xns": "Gtk",
70                                                     "expand": true,
71                                                     "listeners": {},
72                                                     "items": [
73                                                         {
74                                                             "xtype": "CellRendererText",
75                                                             "|xns": "Gtk",
76                                                             "listeners": {}
77                                                         }
78                                                     ]
79                                                 },
80                                                 {
81                                                     "title": "Active",
82                                                     "xtype": "TreeViewColumn",
83                                                     "|xns": "Gtk",
84                                                     "items": [
85                                                         {
86                                                             "listeners": {
87                                                                 "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}"
88                                                             },
89                                                             "activatable": true,
90                                                             "xtype": "CellRendererToggle",
91                                                             "|xns": "Gtk"
92                                                         }
93                                                     ]
94                                                 }
95                                             ]
96                                         }
97                                     ]
98                                 },
99                                 {
100                                     "xtype": "ScrolledWindow",
101                                     "|xns": "Gtk",
102                                     "listeners": {},
103                                     "items": [
104                                         {
105                                             "xtype": "TreeView",
106                                             "|xns": "Gtk",
107                                             "listeners": {},
108                                             "items": [
109                                                 {
110                                                     "xtype": "TreeModelFilter",
111                                                     "|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",
112                                                     "|xns": "Gtk",
113                                                     "items": [
114                                                         {
115                                                             "id": "method-list-store",
116                                                             "xtype": "ListStore",
117                                                             "|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        }",
118                                                             "|xns": "Gtk",
119                                                             "listeners": {}
120                                                         }
121                                                     ]
122                                                 },
123                                                 {
124                                                     "title": "Methods",
125                                                     "xtype": "TreeViewColumn",
126                                                     "|xns": "Gtk",
127                                                     "expand": true,
128                                                     "listeners": {},
129                                                     "items": [
130                                                         {
131                                                             "xtype": "CellRendererText",
132                                                             "|xns": "Gtk",
133                                                             "listeners": {}
134                                                         }
135                                                     ]
136                                                 },
137                                                 {
138                                                     "title": "Active",
139                                                     "xtype": "TreeViewColumn",
140                                                     "|xns": "Gtk",
141                                                     "listeners": {},
142                                                     "items": [
143                                                         {
144                                                             "listeners": {
145                                                                 "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}"
146                                                             },
147                                                             "activatable": true,
148                                                             "xtype": "CellRendererToggle",
149                                                             "|xns": "Gtk"
150                                                         }
151                                                     ]
152                                                 }
153                                             ]
154                                         }
155                                     ]
156                                 },
157                                 {
158                                     "xtype": "ScrolledWindow",
159                                     "|xns": "Gtk",
160                                     "listeners": {},
161                                     "items": [
162                                         {
163                                             "xtype": "TreeView",
164                                             "|xns": "Gtk",
165                                             "listeners": {},
166                                             "items": [
167                                                 {
168                                                     "xtype": "TreeModelFilter",
169                                                     "|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",
170                                                     "|xns": "Gtk",
171                                                     "items": [
172                                                         {
173                                                             "id": "children-list-store",
174                                                             "pack": false,
175                                                             "xtype": "ListStore",
176                                                             "|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        }",
177                                                             "|xns": "Gtk"
178                                                         }
179                                                     ]
180                                                 },
181                                                 {
182                                                     "title": "Child classes",
183                                                     "xtype": "TreeViewColumn",
184                                                     "|xns": "Gtk",
185                                                     "expand": true,
186                                                     "listeners": {},
187                                                     "items": [
188                                                         {
189                                                             "xtype": "CellRendererText",
190                                                             "|xns": "Gtk",
191                                                             "listeners": {}
192                                                         }
193                                                     ]
194                                                 },
195                                                 {
196                                                     "title": "Active",
197                                                     "xtype": "TreeViewColumn",
198                                                     "|xns": "Gtk",
199                                                     "listeners": {},
200                                                     "items": [
201                                                         {
202                                                             "listeners": {
203                                                                 "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}"
204                                                             },
205                                                             "activatable": true,
206                                                             "xtype": "CellRendererToggle",
207                                                             "|xns": "Gtk"
208                                                         }
209                                                     ]
210                                                 }
211                                             ]
212                                         }
213                                     ]
214                                 }
215                             ]
216                         }
217                     ]
218                 }
219             ]
220         }
221     ],
222     "permname": "",
223     "modOrder": ""
224 }