cfc7bab59a7b2314e776503a303e6e4d9414f163
[app.Builder.js] / Builder4 / ValaProjectSettings.bjs
1 {
2     "name" : "ValaProjectSettings",
3     "parent" : "",
4     "title" : "",
5     "path" : "/home/alan/gitlive/app.Builder.js/Builder4/ValaProjectSettings.bjs",
6     "permname" : "",
7     "modOrder" : "",
8     "items" : [
9         {
10             "# Project.Gtk project" : "null",
11             "| void show" : "(Project.Gtk project) {\n\n    this.project=  project;\n\n    this.compile_flags.el.text = \"\";\n    this.default_packages_tree_store.el.clear();\n    this.default_directory_tree_store.el.clear();    \n    \n    if (this.project.compilegroups.has_key(\"default\")) {\n        var def = this.project.compilegroups.get(\"default\");\n        this.compile_flags.el.text = def.compile_flags;\n        this.default_packages_tree_store.load(def.packages);\n        this.default_directory_tree_store.load(def.sources);\n    }\n   \n\n\n}\n",
12             "xtype" : "VBox",
13             "string id" : "ValaProjectSettings",
14             "$ xns" : "Gtk",
15             "items" : [
16                 {
17                     "* pack" : "pack_start,true,true,0",
18                     "xtype" : "Notebook",
19                     "$ xns" : "Gtk",
20                     "items" : [
21                         {
22                             "id" : "label_global",
23                             "xtype" : "Label",
24                             "* pack" : false,
25                             "$ xns" : "Gtk",
26                             "utf8 label" : "Global"
27                         },
28                         {
29                             "id" : "label_targets",
30                             "* pack" : false,
31                             "xtype" : "Label",
32                             "$ xns" : "Gtk",
33                             "utf8 label" : "Targets"
34                         },
35                         {
36                             "xtype" : "VBox",
37                             "* pack" : "append_page,_this.label_global.el",
38                             "gboolean homogeneous" : false,
39                             "$ xns" : "Gtk",
40                             "items" : [
41                                 {
42                                     "xtype" : "Label",
43                                     "* pack" : "pack_start,false,false,0",
44                                     "$ xns" : "Gtk",
45                                     "utf8 label" : "compile flags"
46                                 },
47                                 {
48                                     "id" : "compile_flags",
49                                     "xtype" : "Entry",
50                                     "* pack" : "pack_start,false,false,0",
51                                     "$ xns" : "Gtk"
52                                 },
53                                 {
54                                     "xtype" : "Label",
55                                     "* pack" : "pack_start,false,false,0",
56                                     "$ xns" : "Gtk",
57                                     "utf8 label" : "packages"
58                                 },
59                                 {
60                                     "* pack" : "pack_start,true,true,0",
61                                     "xtype" : "ScrolledWindow",
62                                     "$ xns" : "Gtk",
63                                     "items" : [
64                                         {
65                                             "xtype" : "TreeView",
66                                             "* pack" : "add",
67                                             "string id" : "default_packages_tree",
68                                             "$ xns" : "Gtk",
69                                             "items" : [
70                                                 {
71                                                     "id" : "default_packages_tree_store",
72                                                     "* pack" : "set_model",
73                                                     "xtype" : "ListStore",
74                                                     "$ n_columns" : 2,
75                                                     "| void load" : "(Gee.ArrayList items) {\n \n\n\n\n\n    Gtk.TreeIter citer;\n\n    for(var i =0 ; i < items.size; i++) {\n         this.model.el.append(out citer);   \n         \n        this.model.el.set_value(citer, 0,   items.get(i) ); // title \n        this.model.el.set_value(citer, 1,   items.get(i) );\n    }\n    this.model.el.set_sort_column_id(0,Gtk.SortType.ASCENDING);\n    \n}\n",
76                                                     "$ columns" : "    typeof(string),  // 0 key type\n     typeof(string) // ??\n     ",
77                                                     "$ xns" : "Gtk"
78                                                 },
79                                                 {
80                                                     "utf8 title" : "name",
81                                                     "* init" : " this.el.add_attribute(_this.packages_render.el , \"markup\", 2 );\n this.el.add_attribute(_this.packages_render.el , \"text\", 1 );\n  ",
82                                                     "* pack" : "append_column",
83                                                     "xtype" : "TreeViewColumn",
84                                                     "gboolean resizable" : true,
85                                                     "$ xns" : "Gtk",
86                                                     "items" : [
87                                                         {
88                                                             "id" : "packages_render",
89                                                             "* pack" : "pack_start,false",
90                                                             "xtype" : "CellRendererText",
91                                                             "$ xns" : "Gtk"
92                                                         }
93                                                     ]
94                                                 },
95                                                 {
96                                                     "utf8 title" : "use",
97                                                     "* init" : "{\n this.el.add_attribute(_this.packages_render_use.el , \"value\", 2 );\n }",
98                                                     "* pack" : "append_column",
99                                                     "xtype" : "TreeViewColumn",
100                                                     "gboolean resizable" : true,
101                                                     "$ xns" : "Gtk",
102                                                     "items" : [
103                                                         {
104                                                             "xtype" : "CellRendererToggle",
105                                                             "$ xns" : "Gtk"
106                                                         },
107                                                         {
108                                                             "id" : "packages_render_use",
109                                                             "xtype" : "CellRendererText",
110                                                             "* pack" : "pack_start,false",
111                                                             "$ xns" : "Gtk"
112                                                         }
113                                                     ]
114                                                 }
115                                             ]
116                                         }
117                                     ]
118                                 },
119                                 {
120                                     "xtype" : "Label",
121                                     "* pack" : "pack_start,false,false,0",
122                                     "$ xns" : "Gtk",
123                                     "utf8 label" : "Available Directories"
124                                 },
125                                 {
126                                     "* pack" : "pack_start,true,true,0",
127                                     "xtype" : "ScrolledWindow",
128                                     "$ xns" : "Gtk",
129                                     "items" : [
130                                         {
131                                             "xtype" : "TreeView",
132                                             "* pack" : "add",
133                                             "string id" : "default_directory_tree",
134                                             "$ xns" : "Gtk",
135                                             "items" : [
136                                                 {
137                                                     "id" : "default_directory_tree_store",
138                                                     "* pack" : "set_model",
139                                                     "xtype" : "ListStore",
140                                                     "$ n_columns" : 2,
141                                                     "| void load" : "(Gee.ArrayList items) {\n \n \n    Gtk.TreeIter citer;\n\n    for(var i =0 ; i < items.size; i++) {\n         this.model.el.append(out citer);   \n         \n        this.model.el.set_value(citer, 0,   items.get(i) ); // title \n        this.model.el.set_value(citer, 1,   items.get(i) );\n    }\n    this.model.el.set_sort_column_id(0,Gtk.SortType.ASCENDING);\n    \n}\n",
142                                                     "$ columns" : "    typeof(string),  // 0 key type\n     typeof(string) // ??\n     ",
143                                                     "$ xns" : "Gtk"
144                                                 },
145                                                 {
146                                                     "utf8 title" : "name",
147                                                     "* init" : " this.el.add_attribute(_this.directory_render.el , \"markup\", 2 );\n this.el.add_attribute(_this.directory_render.el , \"text\", 1 );\n  ",
148                                                     "* pack" : "append_column",
149                                                     "xtype" : "TreeViewColumn",
150                                                     "gboolean resizable" : true,
151                                                     "$ xns" : "Gtk",
152                                                     "items" : [
153                                                         {
154                                                             "id" : "directory_render",
155                                                             "* pack" : "pack_start,false",
156                                                             "xtype" : "CellRendererText",
157                                                             "$ xns" : "Gtk"
158                                                         }
159                                                     ]
160                                                 }
161                                             ]
162                                         }
163                                     ]
164                                 }
165                             ]
166                         },
167                         {
168                             "gint position" : 300,
169                             "xtype" : "HPaned",
170                             "* pack" : "append_page,_this.label_targets.el",
171                             "$ xns" : "Gtk",
172                             "items" : [
173                                 {
174                                     "* init" : "{  \nthis.el.set_policy (Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC);\n\n}\n",
175                                     "xtype" : "ScrolledWindow",
176                                     "* pack" : "add1",
177                                     "$ xns" : "Gtk",
178                                     "items" : [
179                                         {
180                                             "id" : "targets_tree",
181                                             "xtype" : "TreeView",
182                                             "$ xns" : "Gtk",
183                                             "items" : [
184                                                 {
185                                                     "* pack" : "set_model",
186                                                     "xtype" : "ListStore",
187                                                     "$ n_columns" : 2,
188                                                     "$ columns" : "    typeof(string),  // 0 key type\n     typeof(string) // ??\n     ",
189                                                     "$ xns" : "Gtk"
190                                                 },
191                                                 {
192                                                     "utf8 title" : "name",
193                                                     "* init" : " this.el.add_attribute(_this.targets_render.el , \"markup\", 2 );\n this.el.add_attribute(_this.targets_render.el , \"text\", 1 );\n  ",
194                                                     "* pack" : "append_column",
195                                                     "xtype" : "TreeViewColumn",
196                                                     "gboolean resizable" : true,
197                                                     "$ xns" : "Gtk",
198                                                     "items" : [
199                                                         {
200                                                             "id" : "targets_render",
201                                                             "xtype" : "CellRendererText",
202                                                             "* pack" : "pack_start,false",
203                                                             "$ xns" : "Gtk"
204                                                         }
205                                                     ]
206                                                 }
207                                             ]
208                                         }
209                                     ]
210                                 },
211                                 {
212                                     "xtype" : "VBox",
213                                     "* pack" : "add2",
214                                     "string id" : "set_vbox",
215                                     "gboolean homogeneous" : false,
216                                     "$ xns" : "Gtk",
217                                     "items" : [
218                                         {
219                                             "xtype" : "Label",
220                                             "* pack" : "pack_start,false,false,0",
221                                             "$ xns" : "Gtk",
222                                             "utf8 label" : "target filename"
223                                         },
224                                         {
225                                             "xtype" : "Entry",
226                                             "* pack" : "pack_start,false,false,0",
227                                             "string id" : "build_pack_target",
228                                             "$ xns" : "Gtk"
229                                         },
230                                         {
231                                             "xtype" : "Label",
232                                             "* pack" : "pack_start,false,false,0",
233                                             "$ xns" : "Gtk",
234                                             "utf8 label" : "compile flags"
235                                         },
236                                         {
237                                             "xtype" : "Entry",
238                                             "* pack" : "pack_start,false,false,0",
239                                             "string id" : "build_compile_flags",
240                                             "$ xns" : "Gtk"
241                                         },
242                                         {
243                                             "xtype" : "Label",
244                                             "* pack" : "pack_start,false,false,0",
245                                             "$ xns" : "Gtk",
246                                             "utf8 label" : "Files to compile"
247                                         },
248                                         {
249                                             "* pack" : "pack_start,true,true,0",
250                                             "xtype" : "ScrolledWindow",
251                                             "$ xns" : "Gtk",
252                                             "items" : [
253                                                 {
254                                                     "xtype" : "TreeView",
255                                                     "string id" : "files_tree",
256                                                     "$ xns" : "Gtk",
257                                                     "items" : [
258                                                         {
259                                                             "* pack" : "set_model",
260                                                             "xtype" : "ListStore",
261                                                             "$ n_columns" : 2,
262                                                             "$ columns" : "    typeof(string),  // 0 key type\n     typeof(string) // ??\n     ",
263                                                             "$ xns" : "Gtk"
264                                                         },
265                                                         {
266                                                             "utf8 title" : "name",
267                                                             "* init" : " this.el.add_attribute(_this.files_render.el , \"markup\", 2 );\n this.el.add_attribute(_this.files_render.el , \"text\", 1 );\n  ",
268                                                             "* pack" : "append_column",
269                                                             "xtype" : "TreeViewColumn",
270                                                             "gboolean resizable" : true,
271                                                             "$ xns" : "Gtk",
272                                                             "items" : [
273                                                                 {
274                                                                     "id" : "files_render",
275                                                                     "* pack" : "pack_start,false",
276                                                                     "xtype" : "CellRendererText",
277                                                                     "$ xns" : "Gtk"
278                                                                 }
279                                                             ]
280                                                         }
281                                                     ]
282                                                 }
283                                             ]
284                                         }
285                                     ]
286                                 }
287                             ]
288                         }
289                     ]
290                 }
291             ]
292         }
293     ]
294 }