2 "build_module" : "builder",
9 "default_height" : 500,
10 "default_width" : 600,
13 "$ homogeneous" : false,
15 " get_content_area().add ",
20 "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL",
24 "$ homogeneous" : false,
26 "* pack" : "pack_start,false,true,3",
27 "Gtk.Orientation orientation" : "Gtk.Orientation.HORIZONTAL",
31 "* pack" : "pack_start,false,true,3",
32 "label" : "Project type :",
38 " this.el.add_attribute(_this.cellrender.el , \"markup\", 1 ); ",
41 "* pack" : "pack_end,true,true,3",
46 "* pack" : "pack_start,true",
48 "xtype" : "CellRendererText"
51 "$ columns" : "typeof(string),typeof(string)",
53 "* pack" : "set_model",
56 "xtype" : "ListStore",
61 " Gtk.TreeIter iter;",
63 " el.append(out iter);",
64 " el.set_value(iter, 0, \"Roo\");",
65 " el.set_value(iter, 1, \"Roo Project\");",
67 " el.append(out iter);",
68 " el.set_value(iter, 0, \"Gtk\");",
69 " el.set_value(iter, 1, \"Gtk Project\");",
71 " el.append(out iter);",
72 " el.set_value(iter, 0, \"Flutter\");",
73 " el.set_value(iter, 1, \"Flutter Project\");",
82 "| string getValue" : [
84 " var ix = this.el.get_active();",
94 " return \"Flutter\";",
105 "$ action" : "Gtk.FileChooserAction.SELECT_FOLDER",
106 "$ create_folders" : false,
107 "$ select_multiple" : false,
109 "* pack" : "pack_end,true,true,5",
110 "bool expand" : true,
112 "xtype" : "FileChooserWidget"
119 "* pack" : "add_action_widget,1",
125 "* pack" : "add_action_widget,0",
132 "(self, event) => {",
133 "\tthis.el.response(0);",
134 "// this.el.hide();",
139 "name" : "EditProject",
140 "title" : "Project Properties",
142 "| Project.Project? show" : [
146 " //[ 'xtype' ].forEach(function(k) {",
147 " // _this.get(k).setValue(typeof(c[k]) == 'undefined' ? '' : c[k]);",
149 "\t// shouild set path..",
150 " _this.model.loadData();",
151 " this.el.show_all();",
153 " var err_dialog = Xcls_StandardErrorDialog.singleton();",
157 " id = this.el.run();",
164 " if (_this.xtype.getValue().length < 1) {",
166 " err_dialog.show(_this.el,\"You have to set Project type\"); ",
170 " if (_this.dir.el.get_filename().length < 1) {",
172 " err_dialog.show(_this.el,\"You have to select a folder\"); ",
184 " var fn = _this.dir.el.get_filename();",
185 " print(\"add %s\\n\" , fn);",
187 " var project = Project.Project.factory(_this.xtype.getValue(), fn);",
189 " Project.projects.set(project.name,project);",
191 " //var pr = imports.Builder.Provider.ProjectManager.ProjectManager.update(this.project);",
196 " //this.success = c.success;",
203 "name" : "EditProject",
205 "path" : "/home/alan/gitlive/roobuilder/src/Builder4/EditProject.bjs",