public override void RenderValue(CustomPropertiesWidget widget, CellRendererCombo renderer) { renderer.Sensitive = true; var key = Parent != null?widget.Scheme.GetKey(Parent.Key) : null; if (key != null) { var val = key.Values.FirstOrDefault(v => v.Identifier == Value); if (val != null && widget.ShowDescriptions) { renderer.Text = GettextCatalog.GetString(val.Description); return; } } base.RenderValue(widget, renderer); }
public PopupTreeView(CustomPropertiesWidget widget) { this.widget = widget; this.DoPopupMenu += ShowPopup; }
public PopupTreeView (CustomPropertiesWidget widget) { this.widget = widget; this.DoPopupMenu += ShowPopup; }
public PopupTreeView (CustomPropertiesWidget widget) { this.widget = widget; }
public override void RenderValue(CustomPropertiesWidget widget, CellRendererCombo renderer) { renderer.Sensitive = false; renderer.Text = string.Format("byte[{0}]", Value != null ? Value.Length : 0); }
public override void RenderValue(CustomPropertiesWidget widget, CellRendererCombo renderer) { renderer.Sensitive = true; renderer.Text = Value ? GettextCatalog.GetString("Yes") : GettextCatalog.GetString("No"); }
public override void RenderValue(CustomPropertiesWidget widget, CellRendererCombo renderer) { renderer.Sensitive = false; renderer.Text = string.Format(GettextCatalog.GetPluralString("({0} item)", "({0} items)", Count), Count); }
public override void RenderValue(CustomPropertiesWidget widget, CellRendererCombo renderer) { renderer.Sensitive = true; renderer.Text = Value.ToString(); }
public abstract void RenderValue(CustomPropertiesWidget widget, CellRendererCombo renderer);
public PopupTreeView(CustomPropertiesWidget widget) { this.widget = widget; }