1 static Xcls_DialogPluginWebkit _DialogPluginWebkit;
3 public class Xcls_DialogPluginWebkit : Object
6 private Xcls_DialogPluginWebkit _this;
8 public static Xcls_DialogPluginWebkit singleton()
10 if (_DialogPluginWebkit == null) {
11 _DialogPluginWebkit= new Xcls_DialogPluginWebkit();
13 return _DialogPluginWebkit;
15 public Xcls_patchview patchview;
20 public Xcls_DialogPluginWebkit()
23 this.el = new Gtk.Dialog();
28 this.el.title = "Add / Edit Component";
29 this.el.default_height = 500;
30 this.el.default_width = 500;
31 this.el.deletable = true;
33 var child_0 = new Xcls_VBox2( _this );
35 this.el.get_content_area().add ( child_0.el );
38 this.el.delete_event.connect( (self, event) => {
45 // user defined functions
46 public return_type XXXX () {
49 public class Xcls_VBox2 : Object
52 private Xcls_DialogPluginWebkit _this;
58 public Xcls_VBox2(Xcls_DialogPluginWebkit _owner )
61 this.el = new Gtk.VBox( true, 0 );
66 var child_0 = new Xcls_ScrolledWindow3( _this );
68 this.el.pack_end ( child_0.el , true,true,0 );
71 // user defined functions
73 public class Xcls_ScrolledWindow3 : Object
75 public Gtk.ScrolledWindow el;
76 private Xcls_DialogPluginWebkit _this;
82 public Xcls_ScrolledWindow3(Xcls_DialogPluginWebkit _owner )
85 this.el = new Gtk.ScrolledWindow( null, null );
90 var child_0 = new Xcls_patchview( _this );
92 this.el.add ( child_0.el );
96 this.el.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC);
99 // user defined functions
101 public class Xcls_patchview : Object
103 public WebKit.WebView el;
104 private Xcls_DialogPluginWebkit _this;
110 public Xcls_patchview(Xcls_DialogPluginWebkit _owner )
113 _this.patchview = this;
114 this.el = new WebKit.WebView();
118 // set gobject values
123 // this may not work!?
124 var settings = this.el.get_settings();
127 //var fs= new FakeServer(this.el);
129 // this was an attempt to change the url perms.. did not work..
130 // settings.enable_file_access_from_file_uris = true;
131 // settings.enable_offline_web_application_cache - true;
132 // settings.enable_universal_access_from_file_uris = true;
139 // FIXME - base url of script..
140 // we need it so some of the database features work.
141 this.el.load_html( "Render not ready" ,
142 //fixme - should be a config option!
143 // or should we catch stuff and fix it up..
144 "xhttp://localhost/app.Builder/"
153 // user defined functions