コード例 #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;
			}
コード例 #4
0
			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);
コード例 #10
0
 public PopupTreeView(CustomPropertiesWidget widget)
 {
     this.widget = widget;
 }