- static Xcls_ValaCompileErrors _ValaCompileErrors;
-
- public class Xcls_ValaCompileErrors : Object
- {
- public Gtk.Popover el;
- private Xcls_ValaCompileErrors _this;
-
- public static Xcls_ValaCompileErrors singleton()
- {
- if (_ValaCompileErrors == null) {
- _ValaCompileErrors= new Xcls_ValaCompileErrors();
- }
- return _ValaCompileErrors;
- }
- public Xcls_compile_view compile_view;
- public Xcls_tree tree;
- public Xcls_selmodel selmodel;
- public Xcls_sortmodel sortmodel;
- public Xcls_model model;
-
- // my vars (def)
- public Xcls_MainWindow window;
- public bool loaded;
-
- // ctor
- public Xcls_ValaCompileErrors()
- {
- _this = this;
- this.el = new Gtk.Popover();
-
- // my vars (dec)
- this.loaded = false;
-
- // set gobject values
- this.el.width_request = 900;
- this.el.height_request = 800;
- this.el.autohide = true;
- this.el.position = Gtk.PositionType.TOP;
- new Xcls_compile_view( _this );
- this.el.set_child ( _this.compile_view.el );
- }
-
- // user defined functions
- public void updateNotices ( GLib.ListStore? ls) {
- GLib.debug("errors : update");
- if (ls == null || ls.get_n_items() < 1) {
- GLib.debug("errors : none available");
- return;
- }
-
- GLib.debug("Loading list into tree");
- this.tree.el.hide();
- var tm = new Gtk.TreeListModel(
- ls, //..... << that's our store..
- false, // passthru
- false, // autexpand
- (item) => {
-
- return ((Palete.CompileError)item).lines;
-
- }
-
- );
-
- _this.model.el = tm;
- _this.sortmodel.el.set_model(tm);
- this.tree.el.show();
- }
- public void show ( ) {
- GLib.debug("errors : show");
-
- if (_this.model.el.get_n_items() < 1) {
-
- GLib.debug("errors : none available");
- return;
- }
- //this.el.present();
- //this.el.popup();
-
- //print("looking for %s\n", id);
- // loop through parent childnre
-
-
- ; //<< very important!!!
-
- // store.set_sort_column_id(0,Gtk.SortType.ASCENDING);
-
- var win = this.window.el;
- var w = win.get_width();
- var h = win.get_height();
-
-
- // left tree = 250, editor area = 500?
-
- // min 450?
- var new_w = int.min(650, w-100);
- if (new_w > (w-100)) {
- new_w = w-100;
- }
- GLib.debug("set size");
- this.el.set_size_request( int.max(100, new_w), int.max(100, h-120));
-
-
- // this.el.set_relative_to(onbtn);
- //Gtk.Allocation rect;
- //onbtn.get_allocation(out rect);
- //this.el.set_pointing_to(rect);
- //this.el.present();
-
- GLib.debug("call popup");
- this.el.popup();
- // only need to load once.
- //if (!this.loaded) {
-
- //this.loaded = true;
- //}
-
-
-
- //if (expand != null) {
- // _this.compile_tree.el.expand_row( store.get_path(expand) , true);
- // }
-
- // this.hpane.el.set_position( 0);
- }
- public class Xcls_compile_view : Object
- {
- public Gtk.Box el;
- private Xcls_ValaCompileErrors _this;
-
-
- // my vars (def)
-
- // ctor
- public Xcls_compile_view(Xcls_ValaCompileErrors _owner )
- {
- _this = _owner;
- _this.compile_view = this;
- this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
-
- // my vars (dec)
-
- // set gobject values
- this.el.homogeneous = false;
- this.el.hexpand = false;
- var child_1 = new Xcls_ScrolledWindow3( _this );
- child_1.ref();
- this.el.append( child_1.el );
- }
-
- // user defined functions
- }
- public class Xcls_ScrolledWindow3 : Object
- {
- public Gtk.ScrolledWindow el;
- private Xcls_ValaCompileErrors _this;
-
-
- // my vars (def)
-
- // ctor
- public Xcls_ScrolledWindow3(Xcls_ValaCompileErrors _owner )
- {
- _this = _owner;
- this.el = new Gtk.ScrolledWindow();
-
- // my vars (dec)
-
- // set gobject values
- new Xcls_tree( _this );
- this.el.set_child ( _this.tree.el );
-
- // init method
-
- {
- this.el.set_policy (Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC);
-
-
- }
- }
-
- // user defined functions
- }
- public class Xcls_tree : Object
- {
- public Gtk.ColumnView el;
- private Xcls_ValaCompileErrors _this;
-
-
- // my vars (def)
-
- // ctor
- public Xcls_tree(Xcls_ValaCompileErrors _owner )
- {
- _this = _owner;
- _this.tree = this;
- new Xcls_selmodel( _this );
- this.el = new Gtk.ColumnView( _this.selmodel.el );
-
- // my vars (dec)
-
- // set gobject values
- this.el.hexpand = true;
- this.el.vexpand = true;
- var child_2 = new Xcls_ColumnViewColumn11( _this );
- child_2.ref();
- this.el.append_column ( child_2.el );
- var child_3 = new Xcls_GestureClick13( _this );
- child_3.ref();
- this.el.add_controller( child_3.el );
- }
-
- // user defined functions
- }
- public class Xcls_selmodel : Object
- {
- public Gtk.SingleSelection el;
- private Xcls_ValaCompileErrors _this;
-
-
- // my vars (def)
-
- // ctor
- public Xcls_selmodel(Xcls_ValaCompileErrors _owner )
- {
- _this = _owner;
- _this.selmodel = this;
- new Xcls_sortmodel( _this );
- this.el = new Gtk.SingleSelection( _this.sortmodel.el );
-
- // my vars (dec)
-
- // set gobject values
- }
-
- // user defined functions
- public Json.Object getNodeAt (uint row) {
-
- var tr = (Gtk.TreeListRow)this.el.get_item(row);
-
- var a = tr.get_item();;
- GLib.debug("get_item (2) = %s", a.get_type().name());
-
- return (Json.Object)tr.get_item();
-
- }
- }
- public class Xcls_sortmodel : Object
- {
- public Gtk.SortListModel el;
- private Xcls_ValaCompileErrors _this;
-
-
- // my vars (def)
-
- // ctor
- public Xcls_sortmodel(Xcls_ValaCompileErrors _owner )
- {
- _this = _owner;
- _this.sortmodel = this;
- new Xcls_model( _this );
- var child_2 = new Xcls_TreeListRowSorter8( _this );
- child_2.ref();
- this.el = new Gtk.SortListModel( _this.model.el, child_2.el );
-
- // my vars (dec)
-
- // set gobject values
- }
-
- // user defined functions
- public Json.Object getNodeAt (uint row) {
-
- var tr = (Gtk.TreeListRow)this.el.get_item(row);
-
-
- // GLib.debug("get_item (2) = %s", a.get_type().name());
-
-
- return (Json.Object)tr.get_item();
-
- }
- }
- public class Xcls_model : Object
- {
- public Gtk.TreeListModel el;
- private Xcls_ValaCompileErrors _this;
-
-
- // my vars (def)
-
- // ctor
- public Xcls_model(Xcls_ValaCompileErrors _owner )
- {
- _this = _owner;
- _this.model = this;
- this.el = new Gtk.TreeListModel(
+static Xcls_ValaCompileErrors _ValaCompileErrors;
+
+public class Xcls_ValaCompileErrors : Object
+{
+ public Gtk.Popover el;
+ private Xcls_ValaCompileErrors _this;
+
+ public static Xcls_ValaCompileErrors singleton()
+ {
+ if (_ValaCompileErrors == null) {
+ _ValaCompileErrors= new Xcls_ValaCompileErrors();
+ }
+ return _ValaCompileErrors;
+ }
+ public Xcls_compile_view compile_view;
+ public Xcls_tree tree;
+ public Xcls_selmodel selmodel;
+ public Xcls_sortmodel sortmodel;
+ public Xcls_model model;
+
+ // my vars (def)
+ public Xcls_MainWindow window;
+ public bool loaded;
+
+ // ctor
+ public Xcls_ValaCompileErrors()
+ {
+ _this = this;
+ this.el = new Gtk.Popover();
+
+ // my vars (dec)
+ this.loaded = false;
+
+ // set gobject values
+ this.el.width_request = 900;
+ this.el.height_request = 800;
+ this.el.autohide = true;
+ this.el.position = Gtk.PositionType.TOP;
+ new Xcls_compile_view( _this );
+ this.el.set_child ( _this.compile_view.el );
+ }
+
+ // user defined functions
+ public void updateNotices ( GLib.ListStore? ls) {
+ GLib.debug("errors : update");
+ if (ls == null || ls.get_n_items() < 1) {
+ // GLib.debug("errors : none available");
+ return;
+ }
+
+ //GLib.debug("Loading list into tree");
+ this.tree.el.hide();
+ var tm = new Gtk.TreeListModel(
+ ls, //..... << that's our store..
+ false, // passthru
+ false, // autexpand
+ (item) => {
+
+ return ((Palete.CompileError)item).lines;
+
+ }
+
+ );
+
+ _this.model.el = tm;
+ _this.sortmodel.el.set_model(tm);
+ this.tree.el.show();
+ }
+ public void show ( ) {
+ GLib.debug("errors : show");
+
+ if (_this.model.el.get_n_items() < 1) {
+
+ GLib.debug("errors : none available");
+ return;
+ }
+ //this.el.present();
+ //this.el.popup();
+
+ //print("looking for %s\n", id);
+ // loop through parent childnre
+
+
+ ; //<< very important!!!
+
+ // store.set_sort_column_id(0,Gtk.SortType.ASCENDING);
+
+ var win = this.window.el;
+ var w = win.get_width();
+ var h = win.get_height();
+
+
+ // left tree = 250, editor area = 500?
+
+ // min 450?
+ var new_w = int.min(650, w-100);
+ if (new_w > (w-100)) {
+ new_w = w-100;
+ }
+ GLib.debug("set size");
+ this.el.set_size_request( int.max(100, new_w), int.max(100, h-120));
+
+
+ // this.el.set_relative_to(onbtn);
+ //Gtk.Allocation rect;
+ //onbtn.get_allocation(out rect);
+ //this.el.set_pointing_to(rect);
+ //this.el.present();
+
+ GLib.debug("call popup");
+ this.el.popup();
+ // only need to load once.
+ //if (!this.loaded) {
+
+ //this.loaded = true;
+ //}
+
+
+
+ //if (expand != null) {
+ // _this.compile_tree.el.expand_row( store.get_path(expand) , true);
+ // }
+
+ // this.hpane.el.set_position( 0);
+ }
+ public class Xcls_compile_view : Object
+ {
+ public Gtk.Box el;
+ private Xcls_ValaCompileErrors _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_compile_view(Xcls_ValaCompileErrors _owner )
+ {
+ _this = _owner;
+ _this.compile_view = this;
+ this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
+
+ // my vars (dec)
+
+ // set gobject values
+ this.el.homogeneous = false;
+ this.el.hexpand = false;
+ var child_1 = new Xcls_ScrolledWindow3( _this );
+ child_1.ref();
+ this.el.append( child_1.el );
+ }
+
+ // user defined functions
+ }
+ public class Xcls_ScrolledWindow3 : Object
+ {
+ public Gtk.ScrolledWindow el;
+ private Xcls_ValaCompileErrors _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_ScrolledWindow3(Xcls_ValaCompileErrors _owner )
+ {
+ _this = _owner;
+ this.el = new Gtk.ScrolledWindow();
+
+ // my vars (dec)
+
+ // set gobject values
+ new Xcls_tree( _this );
+ this.el.set_child ( _this.tree.el );
+
+ // init method
+
+ {
+ this.el.set_policy (Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC);
+
+
+ }
+ }
+
+ // user defined functions
+ }
+ public class Xcls_tree : Object
+ {
+ public Gtk.ColumnView el;
+ private Xcls_ValaCompileErrors _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_tree(Xcls_ValaCompileErrors _owner )
+ {
+ _this = _owner;
+ _this.tree = this;
+ new Xcls_selmodel( _this );
+ this.el = new Gtk.ColumnView( _this.selmodel.el );
+
+ // my vars (dec)
+
+ // set gobject values
+ this.el.hexpand = true;
+ this.el.vexpand = true;
+ var child_2 = new Xcls_ColumnViewColumn11( _this );
+ child_2.ref();
+ this.el.append_column ( child_2.el );
+ var child_3 = new Xcls_GestureClick13( _this );
+ child_3.ref();
+ this.el.add_controller( child_3.el );
+ }
+
+ // user defined functions
+ }
+ public class Xcls_selmodel : Object
+ {
+ public Gtk.SingleSelection el;
+ private Xcls_ValaCompileErrors _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_selmodel(Xcls_ValaCompileErrors _owner )
+ {
+ _this = _owner;
+ _this.selmodel = this;
+ new Xcls_sortmodel( _this );
+ this.el = new Gtk.SingleSelection( _this.sortmodel.el );
+
+ // my vars (dec)
+
+ // set gobject values
+ }
+
+ // user defined functions
+ public Json.Object getNodeAt (uint row) {
+
+ var tr = (Gtk.TreeListRow)this.el.get_item(row);
+
+ var a = tr.get_item();;
+ GLib.debug("get_item (2) = %s", a.get_type().name());
+
+ return (Json.Object)tr.get_item();
+
+ }
+ }
+ public class Xcls_sortmodel : Object
+ {
+ public Gtk.SortListModel el;
+ private Xcls_ValaCompileErrors _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_sortmodel(Xcls_ValaCompileErrors _owner )
+ {
+ _this = _owner;
+ _this.sortmodel = this;
+ new Xcls_model( _this );
+ var child_2 = new Xcls_TreeListRowSorter8( _this );
+ child_2.ref();
+ this.el = new Gtk.SortListModel( _this.model.el, child_2.el );
+
+ // my vars (dec)
+
+ // set gobject values
+ }
+
+ // user defined functions
+ public Json.Object getNodeAt (uint row) {
+
+ var tr = (Gtk.TreeListRow)this.el.get_item(row);
+
+
+ // GLib.debug("get_item (2) = %s", a.get_type().name());
+
+
+ return (Json.Object)tr.get_item();
+
+ }
+ }
+ public class Xcls_model : Object
+ {
+ public Gtk.TreeListModel el;
+ private Xcls_ValaCompileErrors _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_model(Xcls_ValaCompileErrors _owner )
+ {
+ _this = _owner;
+ _this.model = this;
+ this.el = new Gtk.TreeListModel(