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 var child_0 = new Xcls_VBox2( _this );
30 this.el.get_content_area().add ( child_0.el );
33 // user defined functions
34 public class Xcls_VBox2 : Object
37 private DialogPluginWebkit _this;
43 public Xcls_VBox2(DialogPluginWebkit _owner )
46 this.el = new Gtk.VBox( true, 0 );
51 var child_0 = new Xcls_ScrolledWindow3( _this );
53 this.el.pack_end ( child_0.el , true,true,0 );
56 // user defined functions
58 public class Xcls_ScrolledWindow3 : Object
60 public Gtk.ScrolledWindow el;
61 private DialogPluginWebkit _this;
67 public Xcls_ScrolledWindow3(DialogPluginWebkit _owner )
70 this.el = new Gtk.ScrolledWindow( null, null );
75 var child_0 = new Xcls_patchview( _this );
77 this.el.add ( child_0.el );
81 this.el.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC);
84 // user defined functions
86 public class Xcls_patchview : Object
88 public WebKit.WebView el;
89 private DialogPluginWebkit _this;
95 public Xcls_patchview(DialogPluginWebkit _owner )
98 _this.patchview = this;
99 this.el = new WebKit.WebView();
103 // set gobject values
108 // this may not work!?
109 var settings = this.el.get_settings();
112 //var fs= new FakeServer(this.el);
114 // this was an attempt to change the url perms.. did not work..
115 // settings.enable_file_access_from_file_uris = true;
116 // settings.enable_offline_web_application_cache - true;
117 // settings.enable_universal_access_from_file_uris = true;
124 // FIXME - base url of script..
125 // we need it so some of the database features work.
126 this.el.load_html( "Render not ready" ,
127 //fixme - should be a config option!
128 // or should we catch stuff and fix it up..
129 "xhttp://localhost/app.Builder/"
138 // user defined functions