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>
27 lines
545 B
C#
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();
|
|
}
|
|
}
|