Took out the help text widget and the message action row (replaced by tool tips)
This commit is contained in:
parent
90414866a2
commit
abe8bbd2b8
11 changed files with 15 additions and 282 deletions
|
|
@ -42,22 +42,16 @@ namespace MatterHackers.MatterControl.ActionBar
|
|||
: base("150.3°")
|
||||
{
|
||||
temperatureTypeName.Text = "Extruder";
|
||||
AddHandlers();
|
||||
setToCurrentTemperature();
|
||||
|
||||
ToolTipText = "Current extruder temperature".Localize();
|
||||
preheatButton.ToolTipText = "Preheat the Extruder".Localize();
|
||||
|
||||
PrinterConnectionAndCommunication.Instance.ExtruderTemperatureRead.RegisterEvent(onTemperatureRead, ref unregisterEvents);
|
||||
}
|
||||
|
||||
private event EventHandler unregisterEvents;
|
||||
|
||||
private void AddHandlers()
|
||||
{
|
||||
PrinterConnectionAndCommunication.Instance.ExtruderTemperatureRead.RegisterEvent(onTemperatureRead, ref unregisterEvents);
|
||||
this.MouseEnterBounds += onMouseEnterBounds;
|
||||
this.MouseLeaveBounds += onMouseLeaveBounds;
|
||||
}
|
||||
|
||||
public override void OnClosed(EventArgs e)
|
||||
{
|
||||
if (unregisterEvents != null)
|
||||
|
|
@ -67,16 +61,6 @@ namespace MatterHackers.MatterControl.ActionBar
|
|||
base.OnClosed(e);
|
||||
}
|
||||
|
||||
private void onMouseEnterBounds(Object sender, EventArgs e)
|
||||
{
|
||||
HelpTextWidget.Instance.ShowHoverText(LocalizedString.Get("Extruder Temperature"));
|
||||
}
|
||||
|
||||
private void onMouseLeaveBounds(Object sender, EventArgs e)
|
||||
{
|
||||
HelpTextWidget.Instance.HideHoverText();
|
||||
}
|
||||
|
||||
private void setToCurrentTemperature()
|
||||
{
|
||||
string tempDirectionIndicator = "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue