- // my vars (dec)
-
- // set gobject values
- }
-
- // user defined functions
- }
-
-
-
- public class Xcls_name : Object
- {
- public Gtk.ColumnViewColumn el;
- private ValaProjectSettingsPopover _this;
-
-
- // my vars (def)
-
- // ctor
- public Xcls_name(ValaProjectSettingsPopover _owner )
- {
- _this = _owner;
- _this.name = this;
- var child_1 = new Xcls_SignalListItemFactory40( _this );
- child_1.ref();
- this.el = new Gtk.ColumnViewColumn( "Other Files", child_1.el );
-
- // my vars (dec)
-
- // set gobject values
- this.el.id = "name";
- this.el.expand = true;
- this.el.resizable = true;
-
- // init method
-
- {
- this.el.set_sorter( new Gtk.StringSorter(
- new Gtk.PropertyExpression(typeof(JsRender.JsRender), null, "name")
- ));
- ;
-
- }
- }
-
- // user defined functions
- }
- public class Xcls_SignalListItemFactory40 : Object
- {
- public Gtk.SignalListItemFactory el;
- private ValaProjectSettingsPopover _this;
-
-
- // my vars (def)
-
- // ctor
- public Xcls_SignalListItemFactory40(ValaProjectSettingsPopover _owner )
- {
- _this = _owner;
- this.el = new Gtk.SignalListItemFactory();
-
- // my vars (dec)
-
- // set gobject values
-
- //listeners
- this.el.setup.connect( (listitem) => {
-
- var expand = new Gtk.TreeExpander();
-
- expand.set_indent_for_depth(true);
- expand.set_indent_for_icon(true);
-
- var lbl = new Gtk.Label("");
- lbl.use_markup = true;
-
-
- lbl.justify = Gtk.Justification.LEFT;
- lbl.xalign = 0;
-
-
- expand.set_child(lbl);
- ((Gtk.ListItem)listitem).set_child(expand);
- ((Gtk.ListItem)listitem).activatable = false;
- });
- this.el.bind.connect( (listitem) => {
- //GLib.debug("listitme is is %s", ((Gtk.ListItem)listitem).get_type().name());
-
-
-
- //var expand = (Gtk.TreeExpander) ((Gtk.ListItem)listitem).get_child();
- var expand = (Gtk.TreeExpander) ((Gtk.ListItem)listitem).get_child();
-
-
- var lbl = (Gtk.Label) expand.child;
-
- if (lbl.label != "") { // do not update
- return;
- }
-
-
- var lr = (Gtk.TreeListRow)((Gtk.ListItem)listitem).get_item();
- var jr = (JsRender.JsRender) lr.get_item();
- //GLib.debug("change %s to %s", lbl.label, np.name);
- lbl.label = jr.name; // for dir's we could hsow the sub path..
- lbl.tooltip_markup = jr.path;
-
- expand.set_hide_expander( jr.childfiles.n_items < 1);
- expand.set_list_row(lr);
-
- expand.set_hide_expander( jr.xtype != "Dir" );
- expand.set_list_row(lr);
-
- // bind image...
-
- });
- }
-
- // user defined functions
- }
-
-
- public class Xcls_ColumnViewColumn41 : Object
- {
- public Gtk.ColumnViewColumn el;
- private ValaProjectSettingsPopover _this;
-
-
- // my vars (def)
-
- // ctor
- public Xcls_ColumnViewColumn41(ValaProjectSettingsPopover _owner )
- {
- _this = _owner;
- var child_1 = new Xcls_SignalListItemFactory42( _this );
- child_1.ref();
- this.el = new Gtk.ColumnViewColumn( "use", child_1.el );
-
- // my vars (dec)
-
- // set gobject values
- }
-
- // user defined functions
- }
- public class Xcls_SignalListItemFactory42 : Object
- {
- public Gtk.SignalListItemFactory el;
- private ValaProjectSettingsPopover _this;
-
-
- // my vars (def)
-
- // ctor
- public Xcls_SignalListItemFactory42(ValaProjectSettingsPopover _owner )
- {
- _this = _owner;
- this.el = new Gtk.SignalListItemFactory();
-
- // my vars (dec)
-
- // set gobject values
-
- //listeners
- this.el.setup.connect( (listitem) => {
-
- var btn = new Gtk.CheckButton();
-
- ((Gtk.ListItem)listitem).set_child(btn);
-
- btn.toggled.connect(() => {
- if (_this.cg_loading) {
- return;
- }
- var lr = (Gtk.TreeListRow)((Gtk.ListItem)listitem).get_item();
- var jr = (JsRender.JsRender) lr.get_item();
- jr.compile_group_selected = btn.active;
-
-
- });
- });
- this.el.bind.connect( (listitem) => {
- //GLib.debug("listitme is is %s", ((Gtk.ListItem)listitem).get_type().name());
-
-
-
- //var expand = (Gtk.TreeExpander) ((Gtk.ListItem)listitem).get_child();
- var btn = (Gtk.CheckButton) ((Gtk.ListItem)listitem).get_child();
-
-
- var lr = (Gtk.TreeListRow)((Gtk.ListItem)listitem).get_item();
- var jr = (JsRender.JsRender) lr.get_item();
- //GLib.debug("change %s to %s", lbl.label, np.name);
-
- //btn.active = jr.compile_group_selected;
- btn.active = _this.selected_target.has_file(jr);
-
- //jr.bind_property("compile_group_selected",
- // btn, "active",
- // GLib.BindingFlags.BIDIRECTIONAL);
- // bind image...
-
- });
- }
-
- // user defined functions
- }
-
-
-
-
-
- public class Xcls_Box43 : Object
- {
- public Gtk.Box el;
- private ValaProjectSettingsPopover _this;
-
-
- // my vars (def)
-
- // ctor
- public Xcls_Box43(ValaProjectSettingsPopover _owner )
- {
- _this = _owner;
- this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
-
- // my vars (dec)
-
- // set gobject values
- var child_1 = new Xcls_Box44( _this );
- child_1.ref();
- this.el.append( child_1.el );
- var child_2 = new Xcls_ScrolledWindow47( _this );
- child_2.ref();
- this.el.append( child_2.el );
- new Xcls_set_vboxb( _this );
- this.el.append( _this.set_vboxb.el );
- }
-
- // user defined functions
- }
- public class Xcls_Box44 : Object
- {
- public Gtk.Box el;
- private ValaProjectSettingsPopover _this;
-
-
- // my vars (def)
-
- // ctor
- public Xcls_Box44(ValaProjectSettingsPopover _owner )
- {
- _this = _owner;
- this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
-
- // my vars (dec)
-
- // set gobject values
- this.el.hexpand = true;
- var child_1 = new Xcls_Button45( _this );
- child_1.ref();
- this.el.append( child_1.el );
- var child_2 = new Xcls_Button46( _this );
- child_2.ref();
- this.el.append( child_2.el );
- }
-
- // user defined functions
- }
- public class Xcls_Button45 : Object
- {
- public Gtk.Button el;
- private ValaProjectSettingsPopover _this;
-
-
- // my vars (def)
-
- // ctor
- public Xcls_Button45(ValaProjectSettingsPopover _owner )
- {
- _this = _owner;
- this.el = new Gtk.Button();
-
- // my vars (dec)
-
- // set gobject values
- this.el.hexpand = true;
- this.el.label = "Add Compile Target";
-
- //listeners
- this.el.clicked.connect( () => {
-
- if (_this.project.compilegroups.has_key("NEW GROUP")) {
- return;
- }
- var cg = new Project.GtkValaSettings(_this.project, "NEW GROUP");
- _this.project.compilegroups.set(cg.name, cg);
- _this.project.loadTargetsIntoStore(_this.target_model.el);
- // select it.. ?? should load it??
- for(var i =0;i < _this.target_model.el.n_items; i++) {
- var ncg = (Project.GtkValaSettings) _this.target_model.el.get_item(i);
- if (ncg.name == cg.name) {
- _this.target_sel.el.selected = i;
- _this.target_sel.selectTarget(cg);
- break;
- }
- }
-
-
-
- });
- }
-
- // user defined functions
- }
-
- public class Xcls_Button46 : Object
- {
- public Gtk.Button el;
- private ValaProjectSettingsPopover _this;
-
-
- // my vars (def)
-
- // ctor
- public Xcls_Button46(ValaProjectSettingsPopover _owner )
- {
- _this = _owner;
- this.el = new Gtk.Button();
-
- // my vars (dec)
-
- // set gobject values
- this.el.hexpand = true;
- this.el.label = "Remove Target";
-
- //listeners
- this.el.clicked.connect( () => {
- // load the new values.
- if (_this.target_sel.el.selected == Gtk.INVALID_LIST_POSITION) {
- GLib.debug("nothing selected");
- return;
- }
-
-
- // add the directory..
- var cg = (Project.GtkValaSettings) _this.target_model.el.get_item(_this.target_sel.el.selected);
-
-
- GLib.debug("remove: %s\n", cg.name);
- if (!_this.project.compilegroups.unset(cg.name)) {
- GLib.debug("remove failed");
- }
- _this.project.loadTargetsIntoStore(_this.target_model.el);
- });
- }
-
- // user defined functions
- }
-
-
- public class Xcls_ScrolledWindow47 : Object
- {
- public Gtk.ScrolledWindow el;
- private ValaProjectSettingsPopover _this;
-
-
- // my vars (def)
-
- // ctor
- public Xcls_ScrolledWindow47(ValaProjectSettingsPopover _owner )
- {
- _this = _owner;
- this.el = new Gtk.ScrolledWindow();
-
- // my vars (dec)
-
- // set gobject values
- this.el.vexpand = true;
- var child_1 = new Xcls_ColumnView48( _this );
- this.el.child = child_1.el;
-
- // init method
-
- {
- this.el.set_policy (Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC);
-
- }
- }
-
- // user defined functions
- }
- public class Xcls_ColumnView48 : Object
- {
- public Gtk.ColumnView el;
- private ValaProjectSettingsPopover _this;
-
-
- // my vars (def)
-
- // ctor
- public Xcls_ColumnView48(ValaProjectSettingsPopover _owner )
- {
- _this = _owner;
- new Xcls_target_sel( _this );
- this.el = new Gtk.ColumnView( _this.target_sel.el );
-
- // my vars (dec)
-
- // set gobject values
- var child_2 = new Xcls_ColumnViewColumn51( _this );
- child_2.ref();
- this.el.append_column ( child_2.el );
- }
-
- // user defined functions
- }
- public class Xcls_target_sel : Object
- {
- public Gtk.SingleSelection el;
- private ValaProjectSettingsPopover _this;
-
-
- // my vars (def)
-
- // ctor
- public Xcls_target_sel(ValaProjectSettingsPopover _owner )
- {
- _this = _owner;
- _this.target_sel = this;
- new Xcls_target_model( _this );
- this.el = new Gtk.SingleSelection( _this.target_model.el );
-
- // my vars (dec)
-
- // set gobject values
-
- //listeners
- this.el.selection_changed.connect( (position, n_items) => {
-
-
- // load the new values.
- if (this.el.selected == Gtk.INVALID_LIST_POSITION) {
- this.selectTarget(null);
- return;
- }
- this.selectTarget(null);
-
-
-
- // add the directory..
- var cg = (Project.GtkValaSettings) _this.target_model.el.get_item(this.el.selected);
-
- this.selectTarget(cg);
-
- });
- }
-
- // user defined functions
- public void selectTarget (Project.GtkValaSettings? cg) {
- // load the new values
- _this.selected_target = cg;
- _this.project.active_cg = cg;
-
-
- if (cg == null) {
-
- _this.set_vbox.el.hide();
- _this.set_vboxb.el.hide();
- return;
- }
-
-
- _this.set_vbox.el.show();
- _this.set_vboxb.el.show();
- // add the directory..
-
-
- GLib.debug("loading dirs into project list");
- cg.loading_ui = true;
- _this.cg_loading = true;
-
- _this.treeview.el.set_model(new Gtk.SingleSelection(null));
- _this.project.loadDirsIntoStore(_this.treemodel.el);
- _this.treeview.el.set_model(_this.treeselmodel.el);
-
- cg.loading_ui = false;
-
- _this.cg_loading = false;
- GLib.debug("Set name to %s", cg.name);
-
- _this.build_name.el.buffer.set_text(cg.name.data);
-
-
- _this.build_execute_args.el.buffer.set_text( cg.execute_args.data );
-
- }
- }
- public class Xcls_target_model : Object
- {
- public GLib.ListStore el;
- private ValaProjectSettingsPopover _this;
-
-
- // my vars (def)
-
- // ctor
- public Xcls_target_model(ValaProjectSettingsPopover _owner )
- {
- _this = _owner;
- _this.target_model = this;
- this.el = new GLib.ListStore( typeof(Project.GtkValaSettings) );
-
- // my vars (dec)
-
- // set gobject values
- }
-
- // user defined functions
- }
-
-
- public class Xcls_ColumnViewColumn51 : Object
- {
- public Gtk.ColumnViewColumn el;
- private ValaProjectSettingsPopover _this;
-
-
- // my vars (def)
-
- // ctor
- public Xcls_ColumnViewColumn51(ValaProjectSettingsPopover _owner )
- {
- _this = _owner;
- var child_1 = new Xcls_SignalListItemFactory52( _this );
- child_1.ref();
- this.el = new Gtk.ColumnViewColumn( "Build Target", child_1.el );
-
- // my vars (dec)
-
- // set gobject values
- this.el.expand = true;
- }
-
- // user defined functions
- }
- public class Xcls_SignalListItemFactory52 : Object
- {
- public Gtk.SignalListItemFactory el;
- private ValaProjectSettingsPopover _this;
-
-
- // my vars (def)
-
- // ctor
- public Xcls_SignalListItemFactory52(ValaProjectSettingsPopover _owner )
- {
- _this = _owner;
- this.el = new Gtk.SignalListItemFactory();
-
- // my vars (dec)
-
- // set gobject values
-
- //listeners
- this.el.setup.connect( (item) => {
- //var j = (JsRender.JsRender) item;
- var gi = (Gtk.ListItem)item;
-
- var lbl = new Gtk.Label("");
- lbl.halign = Gtk.Align.START;
- gi.set_child(lbl);
-
-
-
- });
- this.el.bind.connect( (listitem) => {
-
- var lbl = (Gtk.Label) ((Gtk.ListItem)listitem).get_child();
-
- var item = (Project.GtkValaSettings) ((Gtk.ListItem)listitem).get_item();
-
- item.bind_property("name",
- lbl, "label",
- GLib.BindingFlags.SYNC_CREATE);
-
-
- });
- }
-
- // user defined functions
- }
-
-
-
+ // my vars (dec)
+
+ // set gobject values
+ }
+
+ // user defined functions
+ }
+
+
+
+ public class Xcls_name : Object
+ {
+ public Gtk.ColumnViewColumn el;
+ private ValaProjectSettingsPopover _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_name(ValaProjectSettingsPopover _owner )
+ {
+ _this = _owner;
+ _this.name = this;
+ var child_1 = new Xcls_SignalListItemFactory40( _this );
+ child_1.ref();
+ this.el = new Gtk.ColumnViewColumn( "Other Files", child_1.el );
+
+ // my vars (dec)
+
+ // set gobject values
+ this.el.id = "name";
+ this.el.expand = true;
+ this.el.resizable = true;
+
+ // init method
+
+ {
+ this.el.set_sorter( new Gtk.StringSorter(
+ new Gtk.PropertyExpression(typeof(JsRender.JsRender), null, "name")
+ ));
+ ;
+
+ }
+ }
+
+ // user defined functions
+ }
+ public class Xcls_SignalListItemFactory40 : Object
+ {
+ public Gtk.SignalListItemFactory el;
+ private ValaProjectSettingsPopover _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_SignalListItemFactory40(ValaProjectSettingsPopover _owner )
+ {
+ _this = _owner;
+ this.el = new Gtk.SignalListItemFactory();
+
+ // my vars (dec)
+
+ // set gobject values
+
+ //listeners
+ this.el.setup.connect( (listitem) => {
+
+ var expand = new Gtk.TreeExpander();
+
+ expand.set_indent_for_depth(true);
+ expand.set_indent_for_icon(true);
+
+ var lbl = new Gtk.Label("");
+ lbl.use_markup = true;
+
+
+ lbl.justify = Gtk.Justification.LEFT;
+ lbl.xalign = 0;
+
+
+ expand.set_child(lbl);
+ ((Gtk.ListItem)listitem).set_child(expand);
+ ((Gtk.ListItem)listitem).activatable = false;
+ });
+ this.el.bind.connect( (listitem) => {
+ //GLib.debug("listitme is is %s", ((Gtk.ListItem)listitem).get_type().name());
+
+
+
+ //var expand = (Gtk.TreeExpander) ((Gtk.ListItem)listitem).get_child();
+ var expand = (Gtk.TreeExpander) ((Gtk.ListItem)listitem).get_child();
+
+
+ var lbl = (Gtk.Label) expand.child;
+
+ if (lbl.label != "") { // do not update
+ return;
+ }
+
+
+ var lr = (Gtk.TreeListRow)((Gtk.ListItem)listitem).get_item();
+ var jr = (JsRender.JsRender) lr.get_item();
+ //GLib.debug("change %s to %s", lbl.label, np.name);
+ lbl.label = jr.name; // for dir's we could hsow the sub path..
+ lbl.tooltip_markup = jr.path;
+
+ expand.set_hide_expander( jr.childfiles.n_items < 1);
+ expand.set_list_row(lr);
+
+ expand.set_hide_expander( jr.xtype != "Dir" );
+ expand.set_list_row(lr);
+
+ // bind image...
+
+ });
+ }
+
+ // user defined functions
+ }
+
+
+ public class Xcls_ColumnViewColumn41 : Object
+ {
+ public Gtk.ColumnViewColumn el;
+ private ValaProjectSettingsPopover _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_ColumnViewColumn41(ValaProjectSettingsPopover _owner )
+ {
+ _this = _owner;
+ var child_1 = new Xcls_SignalListItemFactory42( _this );
+ child_1.ref();
+ this.el = new Gtk.ColumnViewColumn( "use", child_1.el );
+
+ // my vars (dec)
+
+ // set gobject values
+ }
+
+ // user defined functions
+ }
+ public class Xcls_SignalListItemFactory42 : Object
+ {
+ public Gtk.SignalListItemFactory el;
+ private ValaProjectSettingsPopover _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_SignalListItemFactory42(ValaProjectSettingsPopover _owner )
+ {
+ _this = _owner;
+ this.el = new Gtk.SignalListItemFactory();
+
+ // my vars (dec)
+
+ // set gobject values
+
+ //listeners
+ this.el.setup.connect( (listitem) => {
+
+ var btn = new Gtk.CheckButton();
+
+ ((Gtk.ListItem)listitem).set_child(btn);
+
+ btn.toggled.connect(() => {
+
+ var lr = (Gtk.TreeListRow)((Gtk.ListItem)listitem).get_item();
+ var jr = (JsRender.JsRender) lr.get_item();
+ jr.compile_group_selected = btn.active;
+
+
+ });
+ });
+ this.el.bind.connect( (listitem) => {
+ //GLib.debug("listitme is is %s", ((Gtk.ListItem)listitem).get_type().name());
+
+
+
+ //var expand = (Gtk.TreeExpander) ((Gtk.ListItem)listitem).get_child();
+ var btn = (Gtk.CheckButton) ((Gtk.ListItem)listitem).get_child();
+
+
+ var lr = (Gtk.TreeListRow)((Gtk.ListItem)listitem).get_item();
+ var jr = (JsRender.JsRender) lr.get_item();
+ //GLib.debug("change %s to %s", lbl.label, np.name);
+
+
+
+ jr.bind_property("compile_group_selected",
+ btn, "active",
+ GLib.BindingFlags.SYNC_CREATE);
+ // bind image...
+
+ });
+ }
+
+ // user defined functions
+ }
+
+
+
+
+
+ public class Xcls_Box43 : Object
+ {
+ public Gtk.Box el;
+ private ValaProjectSettingsPopover _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_Box43(ValaProjectSettingsPopover _owner )
+ {
+ _this = _owner;
+ this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
+
+ // my vars (dec)
+
+ // set gobject values
+ var child_1 = new Xcls_Box44( _this );
+ child_1.ref();
+ this.el.append( child_1.el );
+ var child_2 = new Xcls_ScrolledWindow47( _this );
+ child_2.ref();
+ this.el.append( child_2.el );
+ new Xcls_set_vboxb( _this );
+ this.el.append( _this.set_vboxb.el );
+ }
+
+ // user defined functions
+ }
+ public class Xcls_Box44 : Object
+ {
+ public Gtk.Box el;
+ private ValaProjectSettingsPopover _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_Box44(ValaProjectSettingsPopover _owner )
+ {
+ _this = _owner;
+ this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
+
+ // my vars (dec)
+
+ // set gobject values
+ this.el.hexpand = true;
+ var child_1 = new Xcls_Button45( _this );
+ child_1.ref();
+ this.el.append( child_1.el );
+ var child_2 = new Xcls_Button46( _this );
+ child_2.ref();
+ this.el.append( child_2.el );
+ }
+
+ // user defined functions
+ }
+ public class Xcls_Button45 : Object
+ {
+ public Gtk.Button el;
+ private ValaProjectSettingsPopover _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_Button45(ValaProjectSettingsPopover _owner )
+ {
+ _this = _owner;
+ this.el = new Gtk.Button();
+
+ // my vars (dec)
+
+ // set gobject values
+ this.el.hexpand = true;
+ this.el.label = "Add Compile Target";
+
+ //listeners
+ this.el.clicked.connect( () => {
+
+ if (_this.project.compilegroups.has_key("NEW GROUP")) {
+ return;
+ }
+ var cg = new Project.GtkValaSettings(_this.project, "NEW GROUP");
+ _this.project.compilegroups.set(cg.name, cg);
+ _this.project.loadTargetsIntoStore(_this.target_model.el);
+ // select it.. ?? should load it??
+ for(var i =0;i < _this.target_model.el.n_items; i++) {
+ var ncg = (Project.GtkValaSettings) _this.target_model.el.get_item(i);
+ if (ncg.name == cg.name) {
+ _this.target_sel.el.selected = i;
+ _this.target_sel.selectTarget(cg);
+ break;
+ }
+ }
+
+
+
+ });
+ }
+
+ // user defined functions
+ }
+
+ public class Xcls_Button46 : Object
+ {
+ public Gtk.Button el;
+ private ValaProjectSettingsPopover _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_Button46(ValaProjectSettingsPopover _owner )
+ {
+ _this = _owner;
+ this.el = new Gtk.Button();
+
+ // my vars (dec)
+
+ // set gobject values
+ this.el.hexpand = true;
+ this.el.label = "Remove Target";
+
+ //listeners
+ this.el.clicked.connect( () => {
+ // load the new values.
+ if (_this.target_sel.el.selected == Gtk.INVALID_LIST_POSITION) {
+ GLib.debug("nothing selected");
+ return;
+ }
+
+
+ // add the directory..
+ var cg = (Project.GtkValaSettings) _this.target_model.el.get_item(_this.target_sel.el.selected);
+
+
+ GLib.debug("remove: %s\n", cg.name);
+ if (!_this.project.compilegroups.unset(cg.name)) {
+ GLib.debug("remove failed");
+ }
+ _this.project.loadTargetsIntoStore(_this.target_model.el);
+ });
+ }
+
+ // user defined functions
+ }
+
+
+ public class Xcls_ScrolledWindow47 : Object
+ {
+ public Gtk.ScrolledWindow el;
+ private ValaProjectSettingsPopover _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_ScrolledWindow47(ValaProjectSettingsPopover _owner )
+ {
+ _this = _owner;
+ this.el = new Gtk.ScrolledWindow();
+
+ // my vars (dec)
+
+ // set gobject values
+ this.el.vexpand = true;
+ var child_1 = new Xcls_ColumnView48( _this );
+ this.el.child = child_1.el;
+
+ // init method
+
+ {
+ this.el.set_policy (Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC);
+
+ }
+ }
+
+ // user defined functions
+ }
+ public class Xcls_ColumnView48 : Object
+ {
+ public Gtk.ColumnView el;
+ private ValaProjectSettingsPopover _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_ColumnView48(ValaProjectSettingsPopover _owner )
+ {
+ _this = _owner;
+ new Xcls_target_sel( _this );
+ this.el = new Gtk.ColumnView( _this.target_sel.el );
+
+ // my vars (dec)
+
+ // set gobject values
+ var child_2 = new Xcls_ColumnViewColumn51( _this );
+ child_2.ref();
+ this.el.append_column ( child_2.el );
+ }
+
+ // user defined functions
+ }
+ public class Xcls_target_sel : Object
+ {
+ public Gtk.SingleSelection el;
+ private ValaProjectSettingsPopover _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_target_sel(ValaProjectSettingsPopover _owner )
+ {
+ _this = _owner;
+ _this.target_sel = this;
+ new Xcls_target_model( _this );
+ this.el = new Gtk.SingleSelection( _this.target_model.el );
+
+ // my vars (dec)
+
+ // set gobject values
+
+ //listeners
+ this.el.selection_changed.connect( (position, n_items) => {
+
+
+ // load the new values.
+ if (this.el.selected == Gtk.INVALID_LIST_POSITION) {
+ this.selectTarget(null);
+ return;
+ }
+ this.selectTarget(null);
+
+
+
+ // add the directory..
+ var cg = (Project.GtkValaSettings) _this.target_model.el.get_item(this.el.selected);
+
+ this.selectTarget(cg);
+
+ });
+ }
+
+ // user defined functions
+ public void selectTarget (Project.GtkValaSettings? cg) {
+ // load the new values
+ _this.selected_target = cg;
+ _this.project.active_cg = cg;
+
+
+ if (cg == null) {
+
+ _this.set_vbox.el.hide();
+ _this.set_vboxb.el.hide();
+ return;
+ }
+
+
+ _this.set_vbox.el.show();
+ _this.set_vboxb.el.show();
+ // add the directory..
+
+
+ GLib.debug("loading dirs into project list");
+ cg.loading_ui = true;
+
+
+ _this.treeview.el.set_model(new Gtk.SingleSelection(null));
+ _this.project.loadDirsIntoStore(_this.treemodel.el);
+ _this.treeview.el.set_model(_this.treeselmodel.el);
+
+ cg.loading_ui = false;
+ GLib.debug("Set name to %s", cg.name);
+
+ _this.build_name.el.buffer.set_text(cg.name.data);
+
+
+ _this.build_execute_args.el.buffer.set_text( cg.execute_args.data );
+
+
+ }
+ }
+ public class Xcls_target_model : Object
+ {
+ public GLib.ListStore el;
+ private ValaProjectSettingsPopover _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_target_model(ValaProjectSettingsPopover _owner )
+ {
+ _this = _owner;
+ _this.target_model = this;
+ this.el = new GLib.ListStore( typeof(Project.GtkValaSettings) );
+
+ // my vars (dec)
+
+ // set gobject values
+ }
+
+ // user defined functions
+ }
+
+
+ public class Xcls_ColumnViewColumn51 : Object
+ {
+ public Gtk.ColumnViewColumn el;
+ private ValaProjectSettingsPopover _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_ColumnViewColumn51(ValaProjectSettingsPopover _owner )
+ {
+ _this = _owner;
+ var child_1 = new Xcls_SignalListItemFactory52( _this );
+ child_1.ref();
+ this.el = new Gtk.ColumnViewColumn( "Build Target", child_1.el );
+
+ // my vars (dec)
+
+ // set gobject values
+ this.el.expand = true;
+ }
+
+ // user defined functions
+ }
+ public class Xcls_SignalListItemFactory52 : Object
+ {
+ public Gtk.SignalListItemFactory el;
+ private ValaProjectSettingsPopover _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_SignalListItemFactory52(ValaProjectSettingsPopover _owner )
+ {
+ _this = _owner;
+ this.el = new Gtk.SignalListItemFactory();
+
+ // my vars (dec)
+
+ // set gobject values
+
+ //listeners
+ this.el.setup.connect( (item) => {
+ //var j = (JsRender.JsRender) item;
+ var gi = (Gtk.ListItem)item;
+
+ var lbl = new Gtk.Label("");
+ lbl.halign = Gtk.Align.START;
+ gi.set_child(lbl);
+
+
+
+ });
+ this.el.bind.connect( (listitem) => {
+
+ var lbl = (Gtk.Box) ((Gtk.ListItem)listitem).get_child();
+
+ var item = (Project.GtkValaSettings) ((Gtk.ListItem)listitem).get_item();
+
+ item.bind_property("name",
+ lbl, "label",
+ GLib.BindingFlags.SYNC_CREATE);
+
+
+ });
+ }
+
+ // user defined functions
+ }
+
+
+
+
+ public class Xcls_set_vboxb : Object
+ {
+ public Gtk.Box el;
+ private ValaProjectSettingsPopover _this;
+