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 ? true : false]);\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                                                             "pack": false,
115                                                             "xtype": "ListStore",
116                                                             "|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        }",
117                                                             "|xns": "Gtk"
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                                                     "id": "children-list-store",
167                                                     "xtype": "ListStore",
168                                                     "|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        }",
169                                                     "|xns": "Gtk"
170                                                 },
171                                                 {
172                                                     "title": "Child classes",
173                                                     "xtype": "TreeViewColumn",
174                                                     "|xns": "Gtk",
175                                                     "expand": true,
176                                                     "listeners": {},
177                                                     "items": [
178                                                         {
179                                                             "xtype": "CellRendererText",
180                                                             "|xns": "Gtk",
181                                                             "listeners": {}
182                                                         }
183                                                     ]
184                                                 },
185                                                 {
186                                                     "title": "Active",
187                                                     "xtype": "TreeViewColumn",
188                                                     "|xns": "Gtk",
189                                                     "listeners": {},
190                                                     "items": [
191                                                         {
192                                                             "listeners": {
193                                                                 "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}"
194                                                             },
195                                                             "activatable": true,
196                                                             "xtype": "CellRendererToggle",
197                                                             "|xns": "Gtk"
198                                                         }
199                                                     ]
200                                                 }
201                                             ]
202                                         }
203                                     ]
204                                 }
205                             ]
206                         }
207                     ]
208                 }
209             ]
210         }
211     ],
212     "permname": "",
213     "modOrder": ""
214 }