2 "name" : "DialogPluginWebkit",
5 "path" : "/home/alan/gitlive/app.Builder.js/src/Builder4/DialogPluginWebkit.bjs",
11 "delete_event" : "(self, event) => {\n this.el.hide();\n return true; \n //test \n}\n "
13 "id" : "DialogPluginWebkit",
14 "utf8 title" : "Add / Edit Component",
15 "gint default_height" : 500,
16 "gboolean deletable" : true,
18 "| string show" : " (Gtk.Window parent, JsRender.Node node) {\n \n \n this.el.set_transient_for(parent);\n this.el.modal = true;\n \n \n \n this.el.show_all();\n var ret = \"\";\n while (true) {\n var response_id = this.el.run();\n if (response_id < 1) {\n this.el.hide();\n return \"\";\n }\n \n name = _this.name.el.get_text();\n if (name.length < 1) {\n StandardErrorDialog.singleton().show(\n _this.el,\n \"You must give the template a name. \"\n );\n continue;\n }\n if (!Regex.match_simple (\"^[A-Za-z][A-Za-z0-9.]+$\", name) )\n {\n StandardErrorDialog.singleton().show(\n _this.el,\n \"Template Name must contain only letters dots\"\n );\n continue;\n }\n break;\n }\n var f = project.newFile(name);\n f.tree = _this.data.deepClone();\n f.save();\n \n // now we save it..\n this.el.hide();\n \n return name;\n \n \n \n}\n",
20 "gint default_width" : 500,
21 "gboolean modal" : true,
25 "$ pack" : "get_content_area().add",
29 "* init" : " this.el.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC);\n \n",
30 "* pack" : "pack_end,true,true,0",
31 "xtype" : "ScrolledWindow",
36 "* init" : " {\n // this may not work!?\n var settings = this.el.get_settings();\n \n \n //var fs= new FakeServer(this.el);\n //fs.ref();\n // this was an attempt to change the url perms.. did not work..\n // settings.enable_file_access_from_file_uris = true;\n // settings.enable_offline_web_application_cache - true;\n // settings.enable_universal_access_from_file_uris = true;\n \n \n \n \n \n\n // FIXME - base url of script..\n // we need it so some of the database features work.\n this.el.load_html( \"Render not ready\" , \n //fixme - should be a config option!\n // or should we catch stuff and fix it up..\n \"xhttp://localhost/app.Builder/\"\n );\n \n \n \n \n}\n",
48 "* pack" : "add_action_widget,0",
54 "* pack" : "add_action_widget,1",