added make and model to printer general section

issue: MatterHackers/MCCentral#3637
Add printer make model to printer general
This commit is contained in:
Lars Brubaker 2018-07-18 09:40:06 -07:00
parent 96982e5f8a
commit 8d9a3435c7
5 changed files with 51 additions and 1 deletions

View file

@ -27,6 +27,8 @@ of the authors and should not be interpreted as representing official policies,
either expressed or implied, of the FreeBSD Project.
*/
using MatterHackers.Agg.UI;
namespace MatterHackers.MatterControl.SlicerConfiguration
{
public class TextField : UIField
@ -64,4 +66,32 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
base.OnValueChanged(fieldChangedEventArgs);
}
}
public class ReadOnlyTextField : UIField
{
TextWidget textWidget;
public override void Initialize(int tabIndex)
{
textWidget = new TextWidget("")
{
TabIndex = tabIndex,
ToolTipText = this.HelpText,
AutoExpandBoundsToText = true,
Name = this.Name,
};
this.Content = textWidget;
}
protected override void OnValueChanged(FieldChangedEventArgs fieldChangedEventArgs)
{
if (this.Value != textWidget.Text)
{
textWidget.Text = this.Value;
}
base.OnValueChanged(fieldChangedEventArgs);
}
}
}