1 static Xcls_ValaCompileResults _ValaCompileResults;
3 public class Xcls_ValaCompileResults : Object
6 private Xcls_ValaCompileResults _this;
8 public static Xcls_ValaCompileResults singleton()
10 if (_ValaCompileResults == null) {
11 _ValaCompileResults= new Xcls_ValaCompileResults();
13 return _ValaCompileResults;
15 public Xcls_compile_view compile_view;
18 public Xcls_MainWindow window;
22 public Xcls_ValaCompileResults()
25 this.el = new Gtk.Popover( null );
31 this.el.width_request = 600;
32 this.el.height_request = 400;
34 this.el.position = Gtk.PositionType.TOP;
35 var child_0 = new Xcls_compile_view( _this );
37 this.el.add ( child_0.el );
40 // user defined functions
41 public void show ( Gtk.Widget onbtn) {
42 this.window.el.get_size(out w, out h);
44 // left tree = 250, editor area = 500?
46 var new_w = int.min(500, w-100);
47 if (new_w > (w-100)) {
50 this.el.set_size_request( int.max(100, new_w), int.max(100, h-120));
53 if (this.el.relative_to == null) {
54 this.el.set_relative_to(onbtn);
61 while(Gtk.events_pending()) {
65 public class Xcls_compile_view : Object
68 private Xcls_ValaCompileResults _this;
74 public Xcls_compile_view(Xcls_ValaCompileResults _owner )
77 _this.compile_view = this;
78 this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
83 this.el.homogeneous = false;
84 var child_0 = new Xcls_ScrolledWindow3( _this );
86 this.el.pack_end ( child_0.el , true,true,0 );
89 // user defined functions
91 public class Xcls_ScrolledWindow3 : Object
93 public Gtk.ScrolledWindow el;
94 private Xcls_ValaCompileResults _this;
100 public Xcls_ScrolledWindow3(Xcls_ValaCompileResults _owner )
103 this.el = new Gtk.ScrolledWindow( null, null );
107 // set gobject values
108 this.el.hexpand = true;
109 var child_0 = new Xcls_SourceView4( _this );
111 this.el.add ( child_0.el );
116 this.el.set_policy (Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC);
122 // user defined functions
124 public class Xcls_SourceView4 : Object
126 public Gtk.SourceView el;
127 private Xcls_ValaCompileResults _this;
133 public Xcls_SourceView4(Xcls_ValaCompileResults _owner )
136 this.el = new Gtk.SourceView();
140 // set gobject values
141 this.el.show_line_numbers = true;
147 var description = Pango.FontDescription.from_string("monospace");
148 description.set_size(8000);
149 this.el.override_font(description);
155 // user defined functions