1 static DialogPluginWebkit _DialogPluginWebkit;
3 public class DialogPluginWebkit : Object
6 private DialogPluginWebkit _this;
8 public static DialogPluginWebkit singleton()
10 if (_DialogPluginWebkit == null) {
11 _DialogPluginWebkit= new DialogPluginWebkit();
13 return _DialogPluginWebkit;
15 public Xcls_patchview patchview;
20 public DialogPluginWebkit()
23 this.el = new Gtk.Dialog();
28 this.el.default_height = 500;
29 this.el.default_width = 500;
30 var child_0 = new Xcls_VBox2( _this );
32 this.el.get_content_area().add ( child_0.el );
35 // user defined functions
36 public class Xcls_VBox2 : Object
39 private DialogPluginWebkit _this;
45 public Xcls_VBox2(DialogPluginWebkit _owner )
48 this.el = new Gtk.VBox( true, 0 );
53 var child_0 = new Xcls_ScrolledWindow3( _this );
55 this.el.pack_end ( child_0.el , true,true,0 );
58 // user defined functions
60 public class Xcls_ScrolledWindow3 : Object
62 public Gtk.ScrolledWindow el;
63 private DialogPluginWebkit _this;
69 public Xcls_ScrolledWindow3(DialogPluginWebkit _owner )
72 this.el = new Gtk.ScrolledWindow( null, null );
77 var child_0 = new Xcls_patchview( _this );
79 this.el.add ( child_0.el );
83 this.el.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC);
86 // user defined functions
88 public class Xcls_patchview : Object
90 public WebKit.WebView el;
91 private DialogPluginWebkit _this;
97 public Xcls_patchview(DialogPluginWebkit _owner )
100 _this.patchview = this;
101 this.el = new WebKit.WebView();
105 // set gobject values
110 // this may not work!?
111 var settings = this.el.get_settings();
114 //var fs= new FakeServer(this.el);
116 // this was an attempt to change the url perms.. did not work..
117 // settings.enable_file_access_from_file_uris = true;
118 // settings.enable_offline_web_application_cache - true;
119 // settings.enable_universal_access_from_file_uris = true;
126 // FIXME - base url of script..
127 // we need it so some of the database features work.
128 this.el.load_html( "Render not ready" ,
129 //fixme - should be a config option!
130 // or should we catch stuff and fix it up..
131 "xhttp://localhost/app.Builder/"
140 // user defined functions