src/Builder4/DialogPluginWebkit.bjs
[app.Builder.js] / src / Builder4 / DialogPluginWebkit.bjs
1 {
2  "name" : "DialogPluginWebkit",
3  "parent" : "",
4  "title" : "",
5  "path" : "/home/alan/gitlive/app.Builder.js/src/Builder4/DialogPluginWebkit.bjs",
6  "permname" : "",
7  "modOrder" : "",
8  "items" : [
9   {
10    "gint default_height" : 500,
11    "gboolean deletable" : true,
12    "xtype" : "Dialog",
13    "$ xns" : "Gtk",
14    "gint default_width" : 500,
15    "items" : [
16     {
17      "xtype" : "VBox",
18      "$ pack" : "get_content_area().add",
19      "$ xns" : "Gtk",
20      "items" : [
21       {
22        "* init" : "  this.el.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC);\n \n",
23        "* pack" : "pack_end,true,true,0",
24        "xtype" : "ScrolledWindow",
25        "$ xns" : "Gtk",
26        "items" : [
27         {
28          "id" : "patchview",
29          "* 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",
30          "xtype" : "WebView",
31          "* pack" : "add",
32          "$ xns" : "WebKit"
33         }
34        ]
35       }
36      ]
37     }
38    ]
39   }
40  ]
41 }