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 ? false : true)\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                                             "|init": "function() {\n    XObject.prototype.init.call(this);\n}\n",
96                                             "listeners": {},
97                                             "items": [
98                                                 {
99                                                     "id": "method-list-store",
100                                                     "xtype": "ListStore",
101                                                     "|xns": "Gtk"
102                                                 },
103                                                 {
104                                                     "title": "Methods",
105                                                     "xtype": "TreeViewColumn",
106                                                     "|xns": "Gtk",
107                                                     "items": [
108                                                         {
109                                                             "xtype": "CellRendererText",
110                                                             "|xns": "Gtk",
111                                                             "listeners": {}
112                                                         }
113                                                     ]
114                                                 },
115                                                 {
116                                                     "title": "Active",
117                                                     "xtype": "TreeViewColumn",
118                                                     "|xns": "Gtk",
119                                                     "listeners": {},
120                                                     "items": [
121                                                         {
122                                                             "listeners": {
123                                                                 "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}"
124                                                             },
125                                                             "activatable": true,
126                                                             "xtype": "CellRendererToggle",
127                                                             "|xns": "Gtk"
128                                                         }
129                                                     ]
130                                                 }
131                                             ]
132                                         }
133                                     ]
134                                 },
135                                 {
136                                     "xtype": "ScrolledWindow",
137                                     "|xns": "Gtk",
138                                     "listeners": {},
139                                     "items": [
140                                         {
141                                             "xtype": "TreeView",
142                                             "|xns": "Gtk",
143                                             "listeners": {},
144                                             "items": [
145                                                 {
146                                                     "id": "children-list-store",
147                                                     "xtype": "ListStore",
148                                                     "|xns": "Gtk"
149                                                 },
150                                                 {
151                                                     "title": "Child classes",
152                                                     "xtype": "TreeViewColumn",
153                                                     "|xns": "Gtk",
154                                                     "items": [
155                                                         {
156                                                             "xtype": "CellRendererText",
157                                                             "|xns": "Gtk",
158                                                             "listeners": {}
159                                                         }
160                                                     ]
161                                                 },
162                                                 {
163                                                     "title": "Active",
164                                                     "xtype": "TreeViewColumn",
165                                                     "|xns": "Gtk",
166                                                     "listeners": {},
167                                                     "items": [
168                                                         {
169                                                             "listeners": {
170                                                                 "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}"
171                                                             },
172                                                             "activatable": true,
173                                                             "xtype": "CellRendererToggle",
174                                                             "|xns": "Gtk"
175                                                         }
176                                                     ]
177                                                 }
178                                             ]
179                                         }
180                                     ]
181                                 }
182                             ]
183                         }
184                     ]
185                 }
186             ]
187         }
188     ],
189     "permname": "",
190     "modOrder": ""
191 }