--- /dev/null
+static Xcls_GtkView _GtkView;
+
+public class Xcls_GtkView : Object
+{
+ public Gtk.VPaned el;
+ private Xcls_GtkView _this;
+
+ public static Xcls_GtkView singleton()
+ {
+ if (_GtkView == null) {
+ _GtkView= new Xcls_GtkView();
+ }
+ return _GtkView;
+ }
+ public Xcls_container container;
+
+ // my vars (def)
+ public Gtk.Widget lastObj;
+ public JsRender.JsRender file;
+
+ // ctor
+ public Xcls_GtkView()
+ {
+ _this = this;
+ this.el = new Gtk.VPaned();
+
+ // my vars (dec)
+ this.lastObj = null;
+ this.file = null;
+
+ // set gobject values
+ var child_0 = new Xcls_Viewport2( _this );
+ child_0.ref();
+ this.el.pack1 ( child_0.el , true,true );
+ var child_1 = new Xcls_VBox4( _this );
+ child_1.ref();
+ this.el.pack2 ( child_1.el , true,true );
+ }
+
+ // user defined functions
+ public void createThumb () {
+
+
+ if (this.file == null) {
+ return;
+ }
+ var filename = this.file.getIconFileName(false);
+
+ var win = this.el.get_parent_window();
+ var width = win.get_width();
+ var height = win.get_height();
+
+ Gdk.Pixbuf screenshot = Gdk.pixbuf_get_from_window(win, 0, 0, width, height); // this.el.position?
+
+ screenshot.save(filename,"png");
+ return;
+
+
+
+
+
+
+
+ // should we hold until it's printed...
+
+
+
+
+
+
+
+
+
+ }
+ public void loadFile (JsRender.JsRender file)
+ {
+
+ this.el.set_position((int)(this.el.max_position * 0.7));
+ this.file = null;
+
+ if (file.tree == null) {
+ return;
+ }
+ this.file = file;
+ if (this.lastObj != null) {
+ this.container.el.remove(this.lastObj);
+ }
+
+ var x = new JsRender.NodeToGtk(file.tree);
+ var obj = x.munge() as Gtk.Widget;
+ this.lastObj = null;
+ if (obj == null) {
+ return;
+ }
+ this.lastObj = obj;
+
+ this.container.el.add(obj);
+ obj.show_all();
+ }
+ public class Xcls_Viewport2 : Object
+ {
+ public Gtk.Viewport el;
+ private Xcls_GtkView _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_Viewport2(Xcls_GtkView _owner )
+ {
+ _this = _owner;
+ this.el = new Gtk.Viewport( null, null );
+
+ // my vars (dec)
+
+ // set gobject values
+ var child_0 = new Xcls_container( _this );
+ child_0.ref();
+ this.el.add ( child_0.el );
+ }
+
+ // user defined functions
+ }
+ public class Xcls_container : Object
+ {
+ public Gtk.HBox el;
+ private Xcls_GtkView _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_container(Xcls_GtkView _owner )
+ {
+ _this = _owner;
+ _this.container = this;
+ this.el = new Gtk.HBox( true, 0 );
+
+ // my vars (dec)
+
+ // set gobject values
+ }
+
+ // user defined functions
+ }
+ public class Xcls_VBox4 : Object
+ {
+ public Gtk.VBox el;
+ private Xcls_GtkView _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_VBox4(Xcls_GtkView _owner )
+ {
+ _this = _owner;
+ this.el = new Gtk.VBox( false, 0 );
+
+ // my vars (dec)
+
+ // set gobject values
+ var child_0 = new Xcls_HBox5( _this );
+ child_0.ref();
+ this.el.pack_start ( child_0.el , false,false,0 );
+ var child_1 = new Xcls_HBox7( _this );
+ child_1.ref();
+ this.el.pack_start ( child_1.el , true,true,0 );
+ }
+
+ // user defined functions
+ }
+ public class Xcls_HBox5 : Object
+ {
+ public Gtk.HBox el;
+ private Xcls_GtkView _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_HBox5(Xcls_GtkView _owner )
+ {
+ _this = _owner;
+ this.el = new Gtk.HBox( true, 0 );
+
+ // my vars (dec)
+
+ // set gobject values
+ var child_0 = new Xcls_Button6( _this );
+ child_0.ref();
+ this.el.pack_start ( child_0.el , true,true,0 );
+ }
+
+ // user defined functions
+ }
+ public class Xcls_Button6 : Object
+ {
+ public Gtk.Button el;
+ private Xcls_GtkView _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_Button6(Xcls_GtkView _owner )
+ {
+ _this = _owner;
+ this.el = new Gtk.Button();
+
+ // my vars (dec)
+
+ // set gobject values
+ this.el.label = "Full Compile";
+ }
+
+ // user defined functions
+ }
+ public class Xcls_HBox7 : Object
+ {
+ public Gtk.HBox el;
+ private Xcls_GtkView _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_HBox7(Xcls_GtkView _owner )
+ {
+ _this = _owner;
+ this.el = new Gtk.HBox( true, 0 );
+
+ // my vars (dec)
+
+ // set gobject values
+ var child_0 = new Xcls_TreeView8( _this );
+ child_0.ref();
+ this.el.add ( child_0.el );
+ var child_1 = new Xcls_ScrolledWindow12( _this );
+ child_1.ref();
+ this.el.pack_start ( child_1.el , true,true,0 );
+ }
+
+ // user defined functions
+ }
+ public class Xcls_TreeView8 : Object
+ {
+ public Gtk.TreeView el;
+ private Xcls_GtkView _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_TreeView8(Xcls_GtkView _owner )
+ {
+ _this = _owner;
+ this.el = new Gtk.TreeView();
+
+ // my vars (dec)
+
+ // set gobject values
+ var child_0 = new Xcls_ListStore9( _this );
+ child_0.ref();
+ this.el.set_model ( child_0.el );
+ var child_1 = new Xcls_column( _this );
+ child_1.ref();
+ }
+
+ // user defined functions
+ }
+ public class Xcls_ListStore9 : Object
+ {
+ public Gtk.ListStore el;
+ private Xcls_GtkView _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_ListStore9(Xcls_GtkView _owner )
+ {
+ _this = _owner;
+ this.el = new Gtk.ListStore( 1, typeof(string) );
+
+ // my vars (dec)
+
+ // set gobject values
+ }
+
+ // user defined functions
+ }
+ public class Xcls_column : Object
+ {
+ public Gtk.TreeViewColumn el;
+ private Xcls_GtkView _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_column(Xcls_GtkView _owner )
+ {
+ _this = _owner;
+ this.el = new Gtk.TreeViewColumn();
+
+ // my vars (dec)
+
+ // set gobject values
+ this.el.title = "Compile output";
+ var child_0 = new Xcls_CellRendererText11( _this );
+ child_0.ref();
+ this.el.pack_start ( child_0.el , false );
+ }
+
+ // user defined functions
+ }
+ public class Xcls_CellRendererText11 : Object
+ {
+ public Gtk.CellRendererText el;
+ private Xcls_GtkView _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_CellRendererText11(Xcls_GtkView _owner )
+ {
+ _this = _owner;
+ this.el = new Gtk.CellRendererText();
+
+ // my vars (dec)
+
+ // set gobject values
+ }
+
+ // user defined functions
+ }
+ public class Xcls_ScrolledWindow12 : Object
+ {
+ public Gtk.ScrolledWindow el;
+ private Xcls_GtkView _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_ScrolledWindow12(Xcls_GtkView _owner )
+ {
+ _this = _owner;
+ this.el = new Gtk.ScrolledWindow( null, null );
+
+ // my vars (dec)
+
+ // set gobject values
+ var child_0 = new Xcls_View13( _this );
+ child_0.ref();
+ this.el.add ( child_0.el );
+ }
+
+ // user defined functions
+ }
+ public class Xcls_View13 : Object
+ {
+ public Gtk.SourceView el;
+ private Xcls_GtkView _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_View13(Xcls_GtkView _owner )
+ {
+ _this = _owner;
+ this.el = new Gtk.SourceView();
+
+ // my vars (dec)
+
+ // set gobject values
+ this.el.editable = false;
+ this.el.show_line_marks = true;
+ this.el.show_line_numbers = true;
+ }
+
+ // user defined functions
+ }
+}