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    "id" : "DialogPluginWebkit",
11    "gint default_height" : 500,
12    "gboolean deletable" : true,
13    "xtype" : "Dialog",
14    "$ xns" : "Gtk",
15    "gint default_width" : 500,
16    "items" : [
17     {
18      "xtype" : "VBox",
19      "$ pack" : "get_content_area().add",
20      "$ xns" : "Gtk",
21      "items" : [
22       {
23        "* init" : "  this.el.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC);\n \n",
24        "* pack" : "pack_end,true,true,0",
25        "xtype" : "ScrolledWindow",
26        "$ xns" : "Gtk",
27        "items" : [
28         {
29          "id" : "patchview",
30          "* 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",
31          "xtype" : "WebView",
32          "* pack" : "add",
33          "$ xns" : "WebKit"
34         }
35        ]
36       }
37      ]
38     }
39    ]
40   }
41  ]
42 }