2 "build_module" : "builder",
5 "# JsRender.Node data" : "",
6 "# Palete.Palete palete" : "",
9 "default_height" : 200,
10 "default_width" : 400,
14 "* pack" : " get_content_area().append",
15 "Gtk.Orientation orientation" : "Gtk.Orientation.HORIZONTAL",
34 "* pack" : "add_action_widget,0",
40 "* pack" : "add_action_widget,1",
49 "\t this.el.response(Gtk.ResponseType.CANCEL);",
58 " if (response_id < 1) {",
63 "\tvar name = _this.name.el.get_text();",
64 "\tif (name.length < 1) {",
65 "\t Xcls_StandardErrorDialog.singleton().show(",
67 "\t \"You must give the template a name. \"",
71 "\tif (!Regex.match_simple (\"^[A-Za-z][A-Za-z0-9. ]+$\", name) )",
73 "\t Xcls_StandardErrorDialog.singleton().show(",
75 "\t \"Template Name must contain only letters dots\"",
80 " this.palete.saveTemplate(name, data);",
82 " // now we save it..",
92 " (Gtk.Window parent, Palete.Palete palete, JsRender.Node data) {",
94 " \tthis.palete = palete;",
95 " this.el.set_transient_for(parent);",
96 " this.el.modal = true;",
98 " this.name.el.set_text(\"\");",
110 "name" : "DialogSaveTemplate",
112 "path" : "/home/alan/gitlive/roobuilder/src/Builder4/DialogSaveTemplate.bjs",