Files
OpenNest/OpenNest/Actions/Action.cs
AJ Isaacs b030de77a8 feat: restore previous action on Escape from ActionSelect
Pressing Escape from ActionSelect now restores the previous action
(e.g. ActionClone) instead of staying in Select mode. Adds
ConnectEvents() to the Action base class for action resume support.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 10:51:28 -05:00

27 lines
545 B
C#

using OpenNest.Controls;
namespace OpenNest.Actions
{
public abstract class Action
{
protected PlateView plateView;
protected Action(PlateView plateView)
{
this.plateView = plateView;
}
public virtual bool SurvivesPlateChange => false;
public virtual void OnPlateChanged() { }
public virtual void ConnectEvents() { }
public abstract void DisconnectEvents();
public abstract void CancelAction();
public abstract bool IsBusy();
}
}