public Xcls_label_global label_global;
public Xcls_label_targets label_targets;
public Xcls_compile_flags compile_flags;
+ public Xcls_generate_meson generate_meson;
+ public Xcls_version version;
+ public Xcls_licence licence;
public Xcls_vapi_scroll vapi_scroll;
public Xcls_vapimodel vapimodel;
public Xcls_vapi_filter vapi_filter;
public Xcls_set_vboxb set_vboxb;
public Xcls_build_name build_name;
public Xcls_build_execute_args build_execute_args;
+ public Xcls_build_as_library build_as_library;
public Xcls_save_btn save_btn;
// my vars (def)
public bool cg_loading;
public Xcls_MainWindow window;
public Project.GtkValaSettings? selected_target;
- public uint border_width;
public bool done;
public Project.Gtk project;
+ public uint border_width;
// ctor
public ValaProjectSettingsPopover()
this.cg_loading = false;
this.window = null;
this.selected_target = null;
- this.border_width = 0;
this.done = false;
this.project = null;
+ this.border_width = 0;
// set gobject values
this.el.modal = true;
- var child_1 = new Xcls_HeaderBar2( _this );
+ var child_1 = new Xcls_HeaderBar1( _this );
+ child_1.ref();
this.el.titlebar = child_1.el;
- var child_2 = new Xcls_Box4( _this );
+ var child_2 = new Xcls_Box3( _this );
child_2.ref();
this.el.set_child ( child_2.el );
return true;
}
return false;
+
});
this.el.hide.connect( () => {
if (!this.done) {
_this.el.show();
-
}
});
}
this.compile_flags.el.buffer.set_text(
project.compile_flags.data
);
-
+ this.version.el.buffer.set_text(
+ project.version.data
+ );
+ this.licence.el.buffer.set_text(
+ project.licence.data
+ );
project.loadVapiIntoStore(_this.vapimodel.el);
GLib.Timeout.add(500, () => {
this.vapi_scroll.el.vadjustment.value = 0;
return false;
});
-
+ this.generate_meson.el.active = this.project.generate_meson;
project.loadTargetsIntoStore(this.target_model.el);
public void save () {
this.project.save();
}
- public class Xcls_HeaderBar2 : Object
+ public class Xcls_HeaderBar1 : Object
{
public Gtk.HeaderBar el;
private ValaProjectSettingsPopover _this;
// my vars (def)
// ctor
- public Xcls_HeaderBar2(ValaProjectSettingsPopover _owner )
+ public Xcls_HeaderBar1(ValaProjectSettingsPopover _owner )
{
_this = _owner;
this.el = new Gtk.HeaderBar();
// my vars (dec)
// set gobject values
- var child_1 = new Xcls_Label3( _this );
+ var child_1 = new Xcls_Label2( _this );
+ child_1.ref();
this.el.title_widget = child_1.el;
}
// user defined functions
}
- public class Xcls_Label3 : Object
+ public class Xcls_Label2 : Object
{
public Gtk.Label el;
private ValaProjectSettingsPopover _this;
// my vars (def)
// ctor
- public Xcls_Label3(ValaProjectSettingsPopover _owner )
+ public Xcls_Label2(ValaProjectSettingsPopover _owner )
{
_this = _owner;
this.el = new Gtk.Label( "Change Vala Compile settings" );
}
- public class Xcls_Box4 : Object
+ public class Xcls_Box3 : Object
{
public Gtk.Box el;
private ValaProjectSettingsPopover _this;
// my vars (def)
// ctor
- public Xcls_Box4(ValaProjectSettingsPopover _owner )
+ public Xcls_Box3(ValaProjectSettingsPopover _owner )
{
_this = _owner;
this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
this.el.vexpand = true;
new Xcls_notebook( _this );
this.el.append( _this.notebook.el );
- var child_2 = new Xcls_Box58( _this );
+ var child_2 = new Xcls_Box63( _this );
child_2.ref();
this.el.append( child_2.el );
}
this.el.vexpand = true;
new Xcls_label_global( _this );
new Xcls_label_targets( _this );
- var child_3 = new Xcls_Box8( _this );
+ var child_3 = new Xcls_Box7( _this );
child_3.ref();
this.el.append_page ( child_3.el , _this.label_global.el );
- var child_4 = new Xcls_Paned26( _this );
+ var child_4 = new Xcls_Paned30( _this );
child_4.ref();
this.el.append_page ( child_4.el , _this.label_targets.el );
}
// user defined functions
}
- public class Xcls_Box8 : Object
+ public class Xcls_Box7 : Object
{
public Gtk.Box el;
private ValaProjectSettingsPopover _this;
// my vars (def)
// ctor
- public Xcls_Box8(ValaProjectSettingsPopover _owner )
+ public Xcls_Box7(ValaProjectSettingsPopover _owner )
{
_this = _owner;
this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
// set gobject values
this.el.homogeneous = false;
- var child_1 = new Xcls_Label9( _this );
+ var child_1 = new Xcls_Box8( _this );
child_1.ref();
this.el.append( child_1.el );
- new Xcls_compile_flags( _this );
- this.el.append( _this.compile_flags.el );
+ var child_2 = new Xcls_Box102( _this );
+ child_2.ref();
+ this.el.append( child_2.el );
new Xcls_vapi_scroll( _this );
this.el.append( _this.vapi_scroll.el );
new Xcls_vapi_search( _this );
// user defined functions
}
+ public class Xcls_Box8 : Object
+ {
+ public Gtk.Box el;
+ private ValaProjectSettingsPopover _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_Box8(ValaProjectSettingsPopover _owner )
+ {
+ _this = _owner;
+ this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 10 );
+
+ // my vars (dec)
+
+ // set gobject values
+ var child_1 = new Xcls_Label9( _this );
+ child_1.ref();
+ this.el.append( child_1.el );
+ new Xcls_compile_flags( _this );
+ this.el.append( _this.compile_flags.el );
+ new Xcls_generate_meson( _this );
+ this.el.append( _this.generate_meson.el );
+ }
+
+ // user defined functions
+ }
public class Xcls_Label9 : Object
{
public Gtk.Label el;
public Xcls_Label9(ValaProjectSettingsPopover _owner )
{
_this = _owner;
- this.el = new Gtk.Label( "compile flags" );
+ this.el = new Gtk.Label( "Compile flags:" );
// my vars (dec)
// set gobject values
this.el.halign = Gtk.Align.START;
- this.el.hexpand = true;
+ this.el.hexpand = false;
}
// user defined functions
// user defined functions
}
+ public class Xcls_generate_meson : Object
+ {
+ public Gtk.CheckButton el;
+ private ValaProjectSettingsPopover _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_generate_meson(ValaProjectSettingsPopover _owner )
+ {
+ _this = _owner;
+ _this.generate_meson = this;
+ this.el = new Gtk.CheckButton();
+
+ // my vars (dec)
+
+ // set gobject values
+ this.el.label = "Generate Meson";
+
+ //listeners
+ this.el.activate.connect( ( ) => {
+
+ _this.project.generate_meson = this.el.active;
+ });
+ }
+
+ // user defined functions
+ }
+
+
+ public class Xcls_Box102 : Object
+ {
+ public Gtk.Box el;
+ private ValaProjectSettingsPopover _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_Box102(ValaProjectSettingsPopover _owner )
+ {
+ _this = _owner;
+ this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 10 );
+
+ // my vars (dec)
+
+ // set gobject values
+ var child_1 = new Xcls_Label105( _this );
+ child_1.ref();
+ this.el.append( child_1.el );
+ new Xcls_version( _this );
+ this.el.append( _this.version.el );
+ var child_3 = new Xcls_Label107( _this );
+ child_3.ref();
+ this.el.append( child_3.el );
+ new Xcls_licence( _this );
+ this.el.append( _this.licence.el );
+ }
+
+ // user defined functions
+ }
+ public class Xcls_Label105 : Object
+ {
+ public Gtk.Label el;
+ private ValaProjectSettingsPopover _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_Label105(ValaProjectSettingsPopover _owner )
+ {
+ _this = _owner;
+ this.el = new Gtk.Label( "Version:" );
+
+ // my vars (dec)
+
+ // set gobject values
+ this.el.halign = Gtk.Align.START;
+ this.el.hexpand = false;
+ }
+
+ // user defined functions
+ }
+
+ public class Xcls_version : Object
+ {
+ public Gtk.Entry el;
+ private ValaProjectSettingsPopover _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_version(ValaProjectSettingsPopover _owner )
+ {
+ _this = _owner;
+ _this.version = this;
+ this.el = new Gtk.Entry();
+
+ // my vars (dec)
+
+ // set gobject values
+ this.el.placeholder_text = "eg. 1.5";
+
+ //listeners
+ this.el.changed.connect( () => {
+
+ _this.project.version = this.el.buffer.text;
+ _this.project.save();
+ // _this.project.save();
+
+ });
+ }
+
+ // user defined functions
+ }
+
+ public class Xcls_Label107 : Object
+ {
+ public Gtk.Label el;
+ private ValaProjectSettingsPopover _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_Label107(ValaProjectSettingsPopover _owner )
+ {
+ _this = _owner;
+ this.el = new Gtk.Label( "Licence:" );
+
+ // my vars (dec)
+
+ // set gobject values
+ this.el.halign = Gtk.Align.START;
+ this.el.hexpand = false;
+ }
+
+ // user defined functions
+ }
+
+ public class Xcls_licence : Object
+ {
+ public Gtk.Entry el;
+ private ValaProjectSettingsPopover _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_licence(ValaProjectSettingsPopover _owner )
+ {
+ _this = _owner;
+ _this.licence = this;
+ this.el = new Gtk.Entry();
+
+ // my vars (dec)
+
+ // set gobject values
+ this.el.placeholder_text = "eg. LGPL";
+
+ //listeners
+ this.el.changed.connect( () => {
+
+ _this.project.licence = this.el.buffer.text;
+ _this.project.save();
+ // _this.project.save();
+
+ });
+ }
+
+ // user defined functions
+ }
+
+
public class Xcls_vapi_scroll : Object
{
public Gtk.ScrolledWindow el;
this.el.hexpand = true;
this.el.vexpand = true;
this.el.hscrollbar_policy = Gtk.PolicyType.AUTOMATIC;
- var child_1 = new Xcls_ColumnView12( _this );
+ var child_1 = new Xcls_ColumnView16( _this );
+ child_1.ref();
this.el.child = child_1.el;
}
// user defined functions
}
- public class Xcls_ColumnView12 : Object
+ public class Xcls_ColumnView16 : Object
{
public Gtk.ColumnView el;
private ValaProjectSettingsPopover _this;
// my vars (def)
// ctor
- public Xcls_ColumnView12(ValaProjectSettingsPopover _owner )
+ public Xcls_ColumnView16(ValaProjectSettingsPopover _owner )
{
_this = _owner;
- var child_1 = new Xcls_NoSelection13( _this );
+ var child_1 = new Xcls_NoSelection17( _this );
child_1.ref();
this.el = new Gtk.ColumnView( child_1.el );
// my vars (dec)
// set gobject values
- var child_2 = new Xcls_ColumnViewColumn21( _this );
+ var child_2 = new Xcls_ColumnViewColumn25( _this );
child_2.ref();
this.el.append_column ( child_2.el );
- var child_3 = new Xcls_ColumnViewColumn23( _this );
+ var child_3 = new Xcls_ColumnViewColumn27( _this );
child_3.ref();
this.el.append_column ( child_3.el );
}
// user defined functions
}
- public class Xcls_NoSelection13 : Object
+ public class Xcls_NoSelection17 : Object
{
public Gtk.NoSelection el;
private ValaProjectSettingsPopover _this;
// my vars (def)
// ctor
- public Xcls_NoSelection13(ValaProjectSettingsPopover _owner )
+ public Xcls_NoSelection17(ValaProjectSettingsPopover _owner )
{
_this = _owner;
- var child_1 = new Xcls_FilterListModel14( _this );
+ var child_1 = new Xcls_FilterListModel18( _this );
child_1.ref();
this.el = new Gtk.NoSelection( child_1.el );
// user defined functions
}
- public class Xcls_FilterListModel14 : Object
+ public class Xcls_FilterListModel18 : Object
{
public Gtk.FilterListModel el;
private ValaProjectSettingsPopover _this;
// my vars (def)
// ctor
- public Xcls_FilterListModel14(ValaProjectSettingsPopover _owner )
+ public Xcls_FilterListModel18(ValaProjectSettingsPopover _owner )
{
_this = _owner;
- var child_1 = new Xcls_SortListModel15( _this );
+ var child_1 = new Xcls_SortListModel19( _this );
child_1.ref();
new Xcls_vapi_filter( _this );
this.el = new Gtk.FilterListModel( child_1.el, _this.vapi_filter.el );
// user defined functions
}
- public class Xcls_SortListModel15 : Object
+ public class Xcls_SortListModel19 : Object
{
public Gtk.SortListModel el;
private ValaProjectSettingsPopover _this;
// my vars (def)
// ctor
- public Xcls_SortListModel15(ValaProjectSettingsPopover _owner )
+ public Xcls_SortListModel19(ValaProjectSettingsPopover _owner )
{
_this = _owner;
new Xcls_vapimodel( _this );
- var child_2 = new Xcls_StringSorter17( _this );
+ var child_2 = new Xcls_StringSorter21( _this );
child_2.ref();
this.el = new Gtk.SortListModel( _this.vapimodel.el, child_2.el );
// user defined functions
}
- public class Xcls_StringSorter17 : Object
+ public class Xcls_StringSorter21 : Object
{
public Gtk.StringSorter el;
private ValaProjectSettingsPopover _this;
// my vars (def)
// ctor
- public Xcls_StringSorter17(ValaProjectSettingsPopover _owner )
+ public Xcls_StringSorter21(ValaProjectSettingsPopover _owner )
{
_this = _owner;
- var child_1 = new Xcls_PropertyExpression18( _this );
+ var child_1 = new Xcls_PropertyExpression22( _this );
child_1.ref();
this.el = new Gtk.StringSorter( child_1.el );
// user defined functions
}
- public class Xcls_PropertyExpression18 : Object
+ public class Xcls_PropertyExpression22 : Object
{
public Gtk.PropertyExpression el;
private ValaProjectSettingsPopover _this;
// my vars (def)
// ctor
- public Xcls_PropertyExpression18(ValaProjectSettingsPopover _owner )
+ public Xcls_PropertyExpression22(ValaProjectSettingsPopover _owner )
{
_this = _owner;
this.el = new Gtk.PropertyExpression( typeof(Project.VapiSelection), null, "sortkey" );
{
_this = _owner;
_this.vapi_filter = this;
- var child_1 = new Xcls_PropertyExpression20( _this );
+ var child_1 = new Xcls_PropertyExpression24( _this );
child_1.ref();
this.el = new Gtk.StringFilter( child_1.el );
// user defined functions
}
- public class Xcls_PropertyExpression20 : Object
+ public class Xcls_PropertyExpression24 : Object
{
public Gtk.PropertyExpression el;
private ValaProjectSettingsPopover _this;
// my vars (def)
// ctor
- public Xcls_PropertyExpression20(ValaProjectSettingsPopover _owner )
+ public Xcls_PropertyExpression24(ValaProjectSettingsPopover _owner )
{
_this = _owner;
this.el = new Gtk.PropertyExpression( typeof(Project.VapiSelection), null, "sortkey" );
- public class Xcls_ColumnViewColumn21 : Object
+ public class Xcls_ColumnViewColumn25 : Object
{
public Gtk.ColumnViewColumn el;
private ValaProjectSettingsPopover _this;
// my vars (def)
// ctor
- public Xcls_ColumnViewColumn21(ValaProjectSettingsPopover _owner )
+ public Xcls_ColumnViewColumn25(ValaProjectSettingsPopover _owner )
{
_this = _owner;
- var child_1 = new Xcls_SignalListItemFactory22( _this );
+ var child_1 = new Xcls_SignalListItemFactory26( _this );
child_1.ref();
this.el = new Gtk.ColumnViewColumn( "Vapi Package", child_1.el );
// user defined functions
}
- public class Xcls_SignalListItemFactory22 : Object
+ public class Xcls_SignalListItemFactory26 : Object
{
public Gtk.SignalListItemFactory el;
private ValaProjectSettingsPopover _this;
// my vars (def)
// ctor
- public Xcls_SignalListItemFactory22(ValaProjectSettingsPopover _owner )
+ public Xcls_SignalListItemFactory26(ValaProjectSettingsPopover _owner )
{
_this = _owner;
this.el = new Gtk.SignalListItemFactory();
}
- public class Xcls_ColumnViewColumn23 : Object
+ public class Xcls_ColumnViewColumn27 : Object
{
public Gtk.ColumnViewColumn el;
private ValaProjectSettingsPopover _this;
// my vars (def)
// ctor
- public Xcls_ColumnViewColumn23(ValaProjectSettingsPopover _owner )
+ public Xcls_ColumnViewColumn27(ValaProjectSettingsPopover _owner )
{
_this = _owner;
- var child_1 = new Xcls_SignalListItemFactory24( _this );
+ var child_1 = new Xcls_SignalListItemFactory28( _this );
child_1.ref();
this.el = new Gtk.ColumnViewColumn( "use", child_1.el );
// user defined functions
}
- public class Xcls_SignalListItemFactory24 : Object
+ public class Xcls_SignalListItemFactory28 : Object
{
public Gtk.SignalListItemFactory el;
private ValaProjectSettingsPopover _this;
// my vars (def)
// ctor
- public Xcls_SignalListItemFactory24(ValaProjectSettingsPopover _owner )
+ public Xcls_SignalListItemFactory28(ValaProjectSettingsPopover _owner )
{
_this = _owner;
this.el = new Gtk.SignalListItemFactory();
}
- public class Xcls_Paned26 : Object
+ public class Xcls_Paned30 : Object
{
public Gtk.Paned el;
private ValaProjectSettingsPopover _this;
// my vars (def)
// ctor
- public Xcls_Paned26(ValaProjectSettingsPopover _owner )
+ public Xcls_Paned30(ValaProjectSettingsPopover _owner )
{
_this = _owner;
this.el = new Gtk.Paned( Gtk.Orientation.HORIZONTAL );
this.el.position = 300;
new Xcls_set_vbox( _this );
this.el.set_end_child ( _this.set_vbox.el );
- var child_2 = new Xcls_Box43( _this );
+ var child_2 = new Xcls_Box47( _this );
+ child_2.ref();
this.el.start_child = child_2.el;
}
// set gobject values
this.el.homogeneous = false;
- var child_1 = new Xcls_ScrolledWindow28( _this );
+ var child_1 = new Xcls_ScrolledWindow32( _this );
child_1.ref();
this.el.append( child_1.el );
}
// user defined functions
}
- public class Xcls_ScrolledWindow28 : Object
+ public class Xcls_ScrolledWindow32 : Object
{
public Gtk.ScrolledWindow el;
private ValaProjectSettingsPopover _this;
// my vars (def)
// ctor
- public Xcls_ScrolledWindow28(ValaProjectSettingsPopover _owner )
+ public Xcls_ScrolledWindow32(ValaProjectSettingsPopover _owner )
{
_this = _owner;
this.el = new Gtk.ScrolledWindow();
// set gobject values
new Xcls_name( _this );
this.el.append_column ( _this.name.el );
- var child_3 = new Xcls_ColumnViewColumn41( _this );
+ var child_3 = new Xcls_ColumnViewColumn45( _this );
child_3.ref();
this.el.append_column ( child_3.el );
}
{
_this = _owner;
_this.treeselmodel = this;
- var child_1 = new Xcls_FilterListModel31( _this );
+ var child_1 = new Xcls_FilterListModel35( _this );
child_1.ref();
this.el = new Gtk.SingleSelection( child_1.el );
// user defined functions
}
- public class Xcls_FilterListModel31 : Object
+ public class Xcls_FilterListModel35 : Object
{
public Gtk.FilterListModel el;
private ValaProjectSettingsPopover _this;
// my vars (def)
// ctor
- public Xcls_FilterListModel31(ValaProjectSettingsPopover _owner )
+ public Xcls_FilterListModel35(ValaProjectSettingsPopover _owner )
{
_this = _owner;
new Xcls_treelistsort( _this );
- var child_2 = new Xcls_CustomFilter38( _this );
+ var child_2 = new Xcls_CustomFilter42( _this );
child_2.ref();
this.el = new Gtk.FilterListModel( _this.treelistsort.el, child_2.el );
_this = _owner;
_this.treelistsort = this;
new Xcls_treelistmodel( _this );
- var child_2 = new Xcls_TreeListRowSorter35( _this );
+ var child_2 = new Xcls_TreeListRowSorter39( _this );
child_2.ref();
this.el = new Gtk.SortListModel( _this.treelistmodel.el, child_2.el );
}
- public class Xcls_TreeListRowSorter35 : Object
+ public class Xcls_TreeListRowSorter39 : Object
{
public Gtk.TreeListRowSorter el;
private ValaProjectSettingsPopover _this;
// my vars (def)
// ctor
- public Xcls_TreeListRowSorter35(ValaProjectSettingsPopover _owner )
+ public Xcls_TreeListRowSorter39(ValaProjectSettingsPopover _owner )
{
_this = _owner;
- var child_1 = new Xcls_StringSorter36( _this );
+ var child_1 = new Xcls_StringSorter40( _this );
child_1.ref();
this.el = new Gtk.TreeListRowSorter( child_1.el );
// user defined functions
}
- public class Xcls_StringSorter36 : Object
+ public class Xcls_StringSorter40 : Object
{
public Gtk.StringSorter el;
private ValaProjectSettingsPopover _this;
// my vars (def)
// ctor
- public Xcls_StringSorter36(ValaProjectSettingsPopover _owner )
+ public Xcls_StringSorter40(ValaProjectSettingsPopover _owner )
{
_this = _owner;
- var child_1 = new Xcls_PropertyExpression37( _this );
+ var child_1 = new Xcls_PropertyExpression41( _this );
child_1.ref();
this.el = new Gtk.StringSorter( child_1.el );
// user defined functions
}
- public class Xcls_PropertyExpression37 : Object
+ public class Xcls_PropertyExpression41 : Object
{
public Gtk.PropertyExpression el;
private ValaProjectSettingsPopover _this;
// my vars (def)
// ctor
- public Xcls_PropertyExpression37(ValaProjectSettingsPopover _owner )
+ public Xcls_PropertyExpression41(ValaProjectSettingsPopover _owner )
{
_this = _owner;
this.el = new Gtk.PropertyExpression( typeof(JsRender.JsRender), null, "name" );
- public class Xcls_CustomFilter38 : Object
+ public class Xcls_CustomFilter42 : Object
{
public Gtk.CustomFilter el;
private ValaProjectSettingsPopover _this;
// my vars (def)
// ctor
- public Xcls_CustomFilter38(ValaProjectSettingsPopover _owner )
+ public Xcls_CustomFilter42(ValaProjectSettingsPopover _owner )
{
_this = _owner;
this.el = new Gtk.CustomFilter( (item) => {
{
_this = _owner;
_this.name = this;
- var child_1 = new Xcls_SignalListItemFactory40( _this );
+ var child_1 = new Xcls_SignalListItemFactory44( _this );
child_1.ref();
this.el = new Gtk.ColumnViewColumn( "Other Files", child_1.el );
// user defined functions
}
- public class Xcls_SignalListItemFactory40 : Object
+ public class Xcls_SignalListItemFactory44 : Object
{
public Gtk.SignalListItemFactory el;
private ValaProjectSettingsPopover _this;
// my vars (def)
// ctor
- public Xcls_SignalListItemFactory40(ValaProjectSettingsPopover _owner )
+ public Xcls_SignalListItemFactory44(ValaProjectSettingsPopover _owner )
{
_this = _owner;
this.el = new Gtk.SignalListItemFactory();
expand.set_hide_expander( jr.childfiles.n_items < 1);
expand.set_list_row(lr);
- expand.set_hide_expander( jr.xtype != "Dir" );
+ expand.set_hide_expander( jr.xtype != "Dir" );
expand.set_list_row(lr);
// bind image...
}
- public class Xcls_ColumnViewColumn41 : Object
+ public class Xcls_ColumnViewColumn45 : Object
{
public Gtk.ColumnViewColumn el;
private ValaProjectSettingsPopover _this;
// my vars (def)
// ctor
- public Xcls_ColumnViewColumn41(ValaProjectSettingsPopover _owner )
+ public Xcls_ColumnViewColumn45(ValaProjectSettingsPopover _owner )
{
_this = _owner;
- var child_1 = new Xcls_SignalListItemFactory42( _this );
+ var child_1 = new Xcls_SignalListItemFactory46( _this );
child_1.ref();
this.el = new Gtk.ColumnViewColumn( "use", child_1.el );
// user defined functions
}
- public class Xcls_SignalListItemFactory42 : Object
+ public class Xcls_SignalListItemFactory46 : Object
{
public Gtk.SignalListItemFactory el;
private ValaProjectSettingsPopover _this;
// my vars (def)
// ctor
- public Xcls_SignalListItemFactory42(ValaProjectSettingsPopover _owner )
+ public Xcls_SignalListItemFactory46(ValaProjectSettingsPopover _owner )
{
_this = _owner;
this.el = new Gtk.SignalListItemFactory();
//GLib.debug("change %s to %s", lbl.label, np.name);
//btn.active = jr.compile_group_selected;
-
- jr.bind_property("compile_group_selected",
- btn, "active",
- GLib.BindingFlags.BIDIRECTIONAL);
+ btn.active = _this.selected_target.has_file(jr);
+
+ //jr.bind_property("compile_group_selected",
+ // btn, "active",
+ // GLib.BindingFlags.BIDIRECTIONAL);
// bind image...
});
- public class Xcls_Box43 : Object
+ public class Xcls_Box47 : Object
{
public Gtk.Box el;
private ValaProjectSettingsPopover _this;
// my vars (def)
// ctor
- public Xcls_Box43(ValaProjectSettingsPopover _owner )
+ public Xcls_Box47(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 );
+ var child_1 = new Xcls_Box48( _this );
child_1.ref();
this.el.append( child_1.el );
- var child_2 = new Xcls_ScrolledWindow47( _this );
+ var child_2 = new Xcls_ScrolledWindow51( _this );
child_2.ref();
this.el.append( child_2.el );
new Xcls_set_vboxb( _this );
// user defined functions
}
- public class Xcls_Box44 : Object
+ public class Xcls_Box48 : Object
{
public Gtk.Box el;
private ValaProjectSettingsPopover _this;
// my vars (def)
// ctor
- public Xcls_Box44(ValaProjectSettingsPopover _owner )
+ public Xcls_Box48(ValaProjectSettingsPopover _owner )
{
_this = _owner;
this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
// set gobject values
this.el.hexpand = true;
- var child_1 = new Xcls_Button45( _this );
+ var child_1 = new Xcls_Button49( _this );
child_1.ref();
this.el.append( child_1.el );
- var child_2 = new Xcls_Button46( _this );
+ var child_2 = new Xcls_Button50( _this );
child_2.ref();
this.el.append( child_2.el );
}
// user defined functions
}
- public class Xcls_Button45 : Object
+ public class Xcls_Button49 : Object
{
public Gtk.Button el;
private ValaProjectSettingsPopover _this;
// my vars (def)
// ctor
- public Xcls_Button45(ValaProjectSettingsPopover _owner )
+ public Xcls_Button49(ValaProjectSettingsPopover _owner )
{
_this = _owner;
this.el = new Gtk.Button();
// user defined functions
}
- public class Xcls_Button46 : Object
+ public class Xcls_Button50 : Object
{
public Gtk.Button el;
private ValaProjectSettingsPopover _this;
// my vars (def)
// ctor
- public Xcls_Button46(ValaProjectSettingsPopover _owner )
+ public Xcls_Button50(ValaProjectSettingsPopover _owner )
{
_this = _owner;
this.el = new Gtk.Button();
}
- public class Xcls_ScrolledWindow47 : Object
+ public class Xcls_ScrolledWindow51 : Object
{
public Gtk.ScrolledWindow el;
private ValaProjectSettingsPopover _this;
// my vars (def)
// ctor
- public Xcls_ScrolledWindow47(ValaProjectSettingsPopover _owner )
+ public Xcls_ScrolledWindow51(ValaProjectSettingsPopover _owner )
{
_this = _owner;
this.el = new Gtk.ScrolledWindow();
// set gobject values
this.el.vexpand = true;
- var child_1 = new Xcls_ColumnView48( _this );
+ var child_1 = new Xcls_ColumnView52( _this );
+ child_1.ref();
this.el.child = child_1.el;
// init method
// user defined functions
}
- public class Xcls_ColumnView48 : Object
+ public class Xcls_ColumnView52 : Object
{
public Gtk.ColumnView el;
private ValaProjectSettingsPopover _this;
// my vars (def)
// ctor
- public Xcls_ColumnView48(ValaProjectSettingsPopover _owner )
+ public Xcls_ColumnView52(ValaProjectSettingsPopover _owner )
{
_this = _owner;
new Xcls_target_sel( _this );
// my vars (dec)
// set gobject values
- var child_2 = new Xcls_ColumnViewColumn51( _this );
+ var child_2 = new Xcls_ColumnViewColumn55( _this );
child_2.ref();
this.el.append_column ( child_2.el );
}
GLib.debug("Set name to %s", cg.name);
_this.build_name.el.buffer.set_text(cg.name.data);
-
+ _this.build_as_library.el.active = cg.is_library;
_this.build_execute_args.el.buffer.set_text( cg.execute_args.data );
}
- public class Xcls_ColumnViewColumn51 : Object
+ public class Xcls_ColumnViewColumn55 : Object
{
public Gtk.ColumnViewColumn el;
private ValaProjectSettingsPopover _this;
// my vars (def)
// ctor
- public Xcls_ColumnViewColumn51(ValaProjectSettingsPopover _owner )
+ public Xcls_ColumnViewColumn55(ValaProjectSettingsPopover _owner )
{
_this = _owner;
- var child_1 = new Xcls_SignalListItemFactory52( _this );
+ var child_1 = new Xcls_SignalListItemFactory56( _this );
child_1.ref();
this.el = new Gtk.ColumnViewColumn( "Build Target", child_1.el );
// user defined functions
}
- public class Xcls_SignalListItemFactory52 : Object
+ public class Xcls_SignalListItemFactory56 : Object
{
public Gtk.SignalListItemFactory el;
private ValaProjectSettingsPopover _this;
// my vars (def)
// ctor
- public Xcls_SignalListItemFactory52(ValaProjectSettingsPopover _owner )
+ public Xcls_SignalListItemFactory56(ValaProjectSettingsPopover _owner )
{
_this = _owner;
this.el = new Gtk.SignalListItemFactory();
// my vars (dec)
// set gobject values
- var child_1 = new Xcls_Label54( _this );
+ var child_1 = new Xcls_Label58( _this );
child_1.ref();
this.el.append( child_1.el );
new Xcls_build_name( _this );
this.el.append( _this.build_name.el );
- var child_3 = new Xcls_Label56( _this );
+ var child_3 = new Xcls_Label60( _this );
child_3.ref();
this.el.append( child_3.el );
new Xcls_build_execute_args( _this );
this.el.append( _this.build_execute_args.el );
+ new Xcls_build_as_library( _this );
+ this.el.append( _this.build_as_library.el );
}
// user defined functions
}
- public class Xcls_Label54 : Object
+ public class Xcls_Label58 : Object
{
public Gtk.Label el;
private ValaProjectSettingsPopover _this;
// my vars (def)
// ctor
- public Xcls_Label54(ValaProjectSettingsPopover _owner )
+ public Xcls_Label58(ValaProjectSettingsPopover _owner )
{
_this = _owner;
this.el = new Gtk.Label( "Build Name (executable name)" );
// my vars (def)
+ public bool in_insert;
// ctor
public Xcls_build_name(ValaProjectSettingsPopover _owner )
this.el = new Gtk.Entry();
// my vars (dec)
+ this.in_insert = false;
// set gobject values
+ // init method
+
+ var ed = (this.el.get_delegate() as Gtk.Editable);
+ if (ed != null) {
+ ed.insert_text.connect((text, length, ref position) => {
+ if (this.in_insert) {
+ return;
+ }
+ GLib.debug("got insert text %s", text);
+
+ var nt = "";
+ for(var i = 0;i < text.length; i++){
+ if (Posix.isupper(text[i]) ||Posix.islower(text[i]) ) {
+ nt += text[i].to_string();
+ }
+ }
+ if (nt.length < 1) {
+ GLib.Signal.stop_emission_by_name(ed, "insert_text");
+ return;
+ }
+
+ this.in_insert = true;
+
+ this.el.insert_text(nt,nt.length, ref position);
+ this.in_insert = false;
+ GLib.Signal.stop_emission_by_name(ed, "insert_text");
+ });
+
+ }
+
//listeners
+ this.el.insert_text.connect( (text, length, ref position) => {
+ if (this.in_insert) {
+ return;
+ }
+ GLib.debug("got insert text %s", text);
+
+ var nt = "";
+ for(var i = 0;i < text.length; i++){
+ if (Posix.isalpha(text[i])) {
+ nt += text[i].to_string();
+ }
+ }
+ if (nt.length < 1) {
+ return;
+ }
+
+ this.in_insert = true;
+
+ this.el.insert_text(text,length, ref position);
+ this.in_insert = false;
+ });
this.el.changed.connect( () => {
if (_this.selected_target == null) {
return;
// user defined functions
}
- public class Xcls_Label56 : Object
+ public class Xcls_Label60 : Object
{
public Gtk.Label el;
private ValaProjectSettingsPopover _this;
// my vars (def)
// ctor
- public Xcls_Label56(ValaProjectSettingsPopover _owner )
+ public Xcls_Label60(ValaProjectSettingsPopover _owner )
{
_this = _owner;
this.el = new Gtk.Label( "test argments - when run after a build" );
// user defined functions
}
+ public class Xcls_build_as_library : Object
+ {
+ public Gtk.CheckButton el;
+ private ValaProjectSettingsPopover _this;
+ // my vars (def)
+ // ctor
+ public Xcls_build_as_library(ValaProjectSettingsPopover _owner )
+ {
+ _this = _owner;
+ _this.build_as_library = this;
+ this.el = new Gtk.CheckButton();
- public class Xcls_Box58 : Object
+ // my vars (dec)
+
+ // set gobject values
+ this.el.label = "build as library";
+
+ //listeners
+ this.el.notify["active"].connect( () => {
+ if (_this.selected_target == null) {
+ return;
+ }
+ _this.selected_target.is_library = this.el.active;
+
+ });
+ }
+
+ // user defined functions
+ }
+
+
+
+
+
+ public class Xcls_Box63 : Object
{
public Gtk.Box el;
private ValaProjectSettingsPopover _this;
// my vars (def)
// ctor
- public Xcls_Box58(ValaProjectSettingsPopover _owner )
+ public Xcls_Box63(ValaProjectSettingsPopover _owner )
{
_this = _owner;
this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
this.el.hexpand = true;
this.el.margin_bottom = 4;
this.el.margin_top = 4;
- var child_1 = new Xcls_Button59( _this );
+ var child_1 = new Xcls_Button64( _this );
child_1.ref();
this.el.append( child_1.el );
- var child_2 = new Xcls_Label60( _this );
+ var child_2 = new Xcls_Label65( _this );
child_2.ref();
this.el.append( child_2.el );
new Xcls_save_btn( _this );
// user defined functions
}
- public class Xcls_Button59 : Object
+ public class Xcls_Button64 : Object
{
public Gtk.Button el;
private ValaProjectSettingsPopover _this;
// my vars (def)
// ctor
- public Xcls_Button59(ValaProjectSettingsPopover _owner )
+ public Xcls_Button64(ValaProjectSettingsPopover _owner )
{
_this = _owner;
this.el = new Gtk.Button();
// user defined functions
}
- public class Xcls_Label60 : Object
+ public class Xcls_Label65 : Object
{
public Gtk.Label el;
private ValaProjectSettingsPopover _this;
// my vars (def)
// ctor
- public Xcls_Label60(ValaProjectSettingsPopover _owner )
+ public Xcls_Label65(ValaProjectSettingsPopover _owner )
{
_this = _owner;
this.el = new Gtk.Label( "" );