1 static Xcls_GtkView _GtkView;
3 public class Xcls_GtkView : Object
6 private Xcls_GtkView _this;
8 public static Xcls_GtkView singleton()
10 if (_GtkView == null) {
11 _GtkView= new Xcls_GtkView();
15 public Xcls_container container;
18 public Gtk.Widget lastObj;
19 public JsRender.JsRender file;
25 this.el = new Gtk.VPaned();
32 var child_0 = new Xcls_Viewport2( _this );
34 this.el.pack1 ( child_0.el , true,true );
35 var child_1 = new Xcls_VBox4( _this );
37 this.el.pack2 ( child_1.el , true,true );
40 // user defined functions
41 public void createThumb () {
44 if (this.file == null) {
47 var filename = this.file.getIconFileName(false);
49 var win = this.el.get_parent_window();
50 var width = win.get_width();
51 var height = win.get_height();
53 Gdk.Pixbuf screenshot = Gdk.pixbuf_get_from_window(win, 0, 0, width, height); // this.el.position?
55 screenshot.save(filename,"png");
64 // should we hold until it's printed...
75 public void loadFile (JsRender.JsRender file)
78 this.el.set_position((int)(this.el.max_position * 0.7));
81 if (file.tree == null) {
85 if (this.lastObj != null) {
86 this.container.el.remove(this.lastObj);
89 var x = new JsRender.NodeToGtk(file.tree);
90 var obj = x.munge() as Gtk.Widget;
97 this.container.el.add(obj);
100 public class Xcls_Viewport2 : Object
102 public Gtk.Viewport el;
103 private Xcls_GtkView _this;
109 public Xcls_Viewport2(Xcls_GtkView _owner )
112 this.el = new Gtk.Viewport( null, null );
116 // set gobject values
117 var child_0 = new Xcls_container( _this );
119 this.el.add ( child_0.el );
122 // user defined functions
124 public class Xcls_container : Object
127 private Xcls_GtkView _this;
133 public Xcls_container(Xcls_GtkView _owner )
136 _this.container = this;
137 this.el = new Gtk.HBox( true, 0 );
141 // set gobject values
144 // user defined functions
146 public class Xcls_VBox4 : Object
149 private Xcls_GtkView _this;
155 public Xcls_VBox4(Xcls_GtkView _owner )
158 this.el = new Gtk.VBox( false, 0 );
162 // set gobject values
163 var child_0 = new Xcls_HBox5( _this );
165 this.el.pack_start ( child_0.el , false,false,0 );
166 var child_1 = new Xcls_HBox7( _this );
168 this.el.pack_start ( child_1.el , true,true,0 );
171 // user defined functions
173 public class Xcls_HBox5 : Object
176 private Xcls_GtkView _this;
182 public Xcls_HBox5(Xcls_GtkView _owner )
185 this.el = new Gtk.HBox( true, 0 );
189 // set gobject values
190 var child_0 = new Xcls_Button6( _this );
192 this.el.pack_start ( child_0.el , true,true,0 );
195 // user defined functions
197 public class Xcls_Button6 : Object
199 public Gtk.Button el;
200 private Xcls_GtkView _this;
206 public Xcls_Button6(Xcls_GtkView _owner )
209 this.el = new Gtk.Button();
213 // set gobject values
214 this.el.label = "Full Compile";
217 // user defined functions
219 public class Xcls_HBox7 : Object
222 private Xcls_GtkView _this;
228 public Xcls_HBox7(Xcls_GtkView _owner )
231 this.el = new Gtk.HBox( true, 0 );
235 // set gobject values
236 var child_0 = new Xcls_TreeView8( _this );
238 this.el.add ( child_0.el );
239 var child_1 = new Xcls_ScrolledWindow12( _this );
241 this.el.pack_start ( child_1.el , true,true,0 );
244 // user defined functions
246 public class Xcls_TreeView8 : Object
248 public Gtk.TreeView el;
249 private Xcls_GtkView _this;
255 public Xcls_TreeView8(Xcls_GtkView _owner )
258 this.el = new Gtk.TreeView();
262 // set gobject values
263 var child_0 = new Xcls_ListStore9( _this );
265 this.el.set_model ( child_0.el );
266 var child_1 = new Xcls_column( _this );
270 // user defined functions
272 public class Xcls_ListStore9 : Object
274 public Gtk.ListStore el;
275 private Xcls_GtkView _this;
281 public Xcls_ListStore9(Xcls_GtkView _owner )
284 this.el = new Gtk.ListStore( 1, typeof(string) );
288 // set gobject values
291 // user defined functions
293 public class Xcls_column : Object
295 public Gtk.TreeViewColumn el;
296 private Xcls_GtkView _this;
302 public Xcls_column(Xcls_GtkView _owner )
305 this.el = new Gtk.TreeViewColumn();
309 // set gobject values
310 this.el.title = "Compile output";
311 var child_0 = new Xcls_CellRendererText11( _this );
313 this.el.pack_start ( child_0.el , false );
316 // user defined functions
318 public class Xcls_CellRendererText11 : Object
320 public Gtk.CellRendererText el;
321 private Xcls_GtkView _this;
327 public Xcls_CellRendererText11(Xcls_GtkView _owner )
330 this.el = new Gtk.CellRendererText();
334 // set gobject values
337 // user defined functions
339 public class Xcls_ScrolledWindow12 : Object
341 public Gtk.ScrolledWindow el;
342 private Xcls_GtkView _this;
348 public Xcls_ScrolledWindow12(Xcls_GtkView _owner )
351 this.el = new Gtk.ScrolledWindow( null, null );
355 // set gobject values
356 var child_0 = new Xcls_View13( _this );
358 this.el.add ( child_0.el );
361 // user defined functions
363 public class Xcls_View13 : Object
365 public Gtk.SourceView el;
366 private Xcls_GtkView _this;
372 public Xcls_View13(Xcls_GtkView _owner )
375 this.el = new Gtk.SourceView();
379 // set gobject values
380 this.el.editable = false;
381 this.el.show_line_marks = true;
382 this.el.show_line_numbers = true;
385 // user defined functions