2 "build_module" : "builder",
5 "# JsRender.Node data" : "",
6 "# Project.Project project" : "",
9 "default_height" : 200,
10 "default_width" : 400,
14 " get_content_area().add",
19 "Gtk.Orientation orientation" : "Gtk.Orientation.HORIZONTAL",
38 "* pack" : "add_action_widget,0",
44 "* pack" : "add_action_widget,1",
51 " (self, event) => {",
52 " this.el.response(Gtk.ResponseType.CANCEL);",
59 " (Gtk.Window parent, Project.Project project, JsRender.Node data) {",
62 " this.el.set_transient_for(parent);",
63 " this.el.modal = true;",
66 " this.project = project;",
67 " this.name.el.set_text(\"\");",
68 " this.el.show_all();",
71 " var response_id = this.el.run();",
72 " if (response_id < 1) {",
77 " name = _this.name.el.get_text();",
78 " if (name.length < 1) {",
79 " Xcls_StandardErrorDialog.singleton().show(",
81 " \"You must give the template a name. \"",
85 " if (!Regex.match_simple (\"^[A-Za-z][A-Za-z0-9.]+$\", name) )",
87 " Xcls_StandardErrorDialog.singleton().show(",
89 " \"Template Name must contain only letters dots\"",
95 " var f = project.newFile(name);",
96 " f.tree = _this.data.deepClone();",
99 " // now we save it..",
112 "name" : "DialogSaveModule",
114 "path" : "/home/alan/gitlive/roobuilder/src/Builder4/DialogSaveModule.bjs",