public QueryBox (QueryFieldSet fieldSet, QueryOrder [] orders, QueryLimit [] limits) : base () { //this.sorted_fields = fieldSet.Fields; this.field_set = fieldSet; terms_box = new QueryTermsBox (field_set); limit_box = new QueryLimitBox (orders, limits); BuildInterface (); }
public SmartPlaylistDefinition (string name, string description, string condition, int limit_number, QueryLimit limit, QueryOrder order) { Name = name; Description = description; Condition = condition; LimitNumber = new IntegerQueryValue (); LimitNumber.SetValue (limit_number); Limit = limit; Order = order; }
public QueryLimitBox(QueryOrder [] orders, QueryLimit [] limits) : base() { this.orders = orders; this.limits = limits; Spacing = 5; enabled_checkbox = new CheckButton (Catalog.GetString ("_Limit to")); enabled_checkbox.Toggled += OnEnabledToggled; count_spin = new SpinButton (0, Double.MaxValue, 1); count_spin.Numeric = true; count_spin.Digits = 0; count_spin.Value = 25; count_spin.SetSizeRequest (60, -1); limit_combo = new ComboBoxText (); foreach (QueryLimit limit in limits) { limit_combo.AppendText (limit.Label); } order_combo = new ComboBoxText (); order_combo.RowSeparatorFunc = IsRowSeparator; foreach (QueryOrder order in orders) { if (order == null) { order_combo.AppendText (String.Empty); } else { order_combo.AppendText (order.Label); } } PackStart (enabled_checkbox, false, false, 0); PackStart (count_spin, false, false, 0); PackStart (limit_combo, false, false, 0); PackStart (new Label (Catalog.GetString ("selected by")), false, false, 0); PackStart (order_combo, false, false, 0); enabled_checkbox.Active = false; limit_combo.Active = 0; order_combo.Active = 0; OnEnabledToggled (null, null); ShowAll (); }
public SmartPlaylistDefinition(string name, string description, string condition, int limit_number, QueryLimit limit, QueryOrder order) : this(name, description, condition, limit_number, limit, order, false) { }