icon for outline
tree changes selection on arrow keys
This commit is contained in:
parent
a1be21ad65
commit
1f3a449089
8 changed files with 25 additions and 9 deletions
|
|
@ -37,8 +37,6 @@ using MatterHackers.Agg.VertexSource;
|
|||
using MatterHackers.DataConverters3D;
|
||||
using MatterHackers.Localizations;
|
||||
using MatterHackers.MatterControl.PartPreviewWindow;
|
||||
using MatterHackers.DataConverters2D;
|
||||
using MatterHackers.Agg;
|
||||
|
||||
namespace MatterHackers.MatterControl.DesignTools.Operations
|
||||
{
|
||||
|
|
|
|||
|
|
@ -27,18 +27,19 @@ of the authors and should not be interpreted as representing official policies,
|
|||
either expressed or implied, of the FreeBSD Project.
|
||||
*/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using ClipperLib;
|
||||
using MatterHackers.Agg;
|
||||
using MatterHackers.Agg.UI;
|
||||
using MatterHackers.Agg.VertexSource;
|
||||
using MatterHackers.DataConverters2D;
|
||||
using MatterHackers.DataConverters3D;
|
||||
using MatterHackers.Localizations;
|
||||
using MatterHackers.MatterControl.PartPreviewWindow;
|
||||
using MatterHackers.DataConverters2D;
|
||||
using MatterHackers.Agg;
|
||||
|
||||
namespace MatterHackers.MatterControl.DesignTools.Operations
|
||||
{
|
||||
|
|
@ -53,7 +54,7 @@ namespace MatterHackers.MatterControl.DesignTools.Operations
|
|||
}
|
||||
|
||||
[Description("The with of the outline.")]
|
||||
public double OutlineWidth { get; set; }
|
||||
public double OutlineWidth { get; set; } = 3;
|
||||
|
||||
public double Ratio { get; set; } = .5;
|
||||
|
||||
|
|
@ -87,11 +88,24 @@ namespace MatterHackers.MatterControl.DesignTools.Operations
|
|||
public override Task Rebuild()
|
||||
{
|
||||
this.DebugDepth("Rebuild");
|
||||
bool valuesChanged = false;
|
||||
|
||||
if (OutlineWidth < .01 || OutlineWidth > 1000)
|
||||
{
|
||||
OutlineWidth = Math.Min(1000, Math.Max(.01, OutlineWidth));
|
||||
valuesChanged = true;
|
||||
}
|
||||
|
||||
using (RebuildLock())
|
||||
{
|
||||
InsetPath();
|
||||
}
|
||||
|
||||
if (valuesChanged)
|
||||
{
|
||||
Invalidate(InvalidateType.DisplayValues);
|
||||
}
|
||||
|
||||
Parent?.Invalidate(new InvalidateArgs(this, InvalidateType.Path));
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue