Пример #1
0
        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);
        }
Пример #2
0
 public PopupTreeView(CustomPropertiesWidget widget)
 {
     this.widget       = widget;
     this.DoPopupMenu += ShowPopup;
 }
Пример #3
0
			public PopupTreeView (CustomPropertiesWidget widget)
			{
				this.widget = widget;
				this.DoPopupMenu += ShowPopup;
			}
			public PopupTreeView (CustomPropertiesWidget widget)
			{
				this.widget = widget;
			}
Пример #5
0
 public override void RenderValue(CustomPropertiesWidget widget, CellRendererCombo renderer)
 {
     renderer.Sensitive = false;
     renderer.Text      = string.Format("byte[{0}]", Value != null ? Value.Length : 0);
 }
Пример #6
0
 public override void RenderValue(CustomPropertiesWidget widget, CellRendererCombo renderer)
 {
     renderer.Sensitive = true;
     renderer.Text      = Value ? GettextCatalog.GetString("Yes") : GettextCatalog.GetString("No");
 }
Пример #7
0
 public override void RenderValue(CustomPropertiesWidget widget, CellRendererCombo renderer)
 {
     renderer.Sensitive = false;
     renderer.Text      = string.Format(GettextCatalog.GetPluralString("({0} item)", "({0} items)", Count), Count);
 }
Пример #8
0
 public override void RenderValue(CustomPropertiesWidget widget, CellRendererCombo renderer)
 {
     renderer.Sensitive = true;
     renderer.Text      = Value.ToString();
 }
Пример #9
0
 public abstract void RenderValue(CustomPropertiesWidget widget, CellRendererCombo renderer);
 public PopupTreeView(CustomPropertiesWidget widget)
 {
     this.widget = widget;
 }