Change make permanent to apply (consistent with solidworks)

issues:
MatterHackers/MCCentral#3273
Selection object should not have delete and make permanent
MatterHackers/MCCentral#3277
check on text makes group of meshes
MatterHackers/MCCentral#3276
disable delete on text
MatterHackers/MCCentral#3263
Need a material none button (unset)
This commit is contained in:
Lars Brubaker 2018-05-02 14:34:44 -07:00
parent 423a1b26ef
commit 6bf019c5b4
11 changed files with 65 additions and 34 deletions

View file

@ -267,7 +267,7 @@ namespace MatterHackers.MatterControl.DesignTools.Operations
[DisplayName("Offset Z")]
public double ZOffset { get; set; } = 0;
public override bool CanMakePermanent => true;
public override bool CanApply => true;
public override bool CanRemove => true;
@ -404,7 +404,7 @@ namespace MatterHackers.MatterControl.DesignTools.Operations
});
}
public override void Remove()
public override void Remove(UndoBuffer undoBuffer)
{
// put everything back to where it was before the arrange started
if (OriginalChildrenBounds.Count == Children.Count)
@ -418,7 +418,7 @@ namespace MatterHackers.MatterControl.DesignTools.Operations
}
}
base.Remove();
base.Remove(undoBuffer);
}
public void UpdateControls(PPEContext context)