Table of Contents

Class UndoCloneTab<T>

Namespace
AlphaFramework.Editor
Assembly
AlphaFramework.Editor.dll

A base class for all editor windows that have undo-functionality based on cloning their whole content

public class UndoCloneTab<T> : UndoTab<T>, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl where T : ICloneable<T>

Type Parameters

T
Inheritance
UndoCloneTab<T>
Implements
Derived
Inherited Members
Extension Methods

Remarks

Calling OnChange() will create an undo checkpoint (AlphaFramework.Editor.UndoCloneTab<T>._currentBackup) after the fact, ready for the next change. The first checkpoint is created right at startup.

Constructors

UndoCloneTab()

Initializes a new instance of the UserControl class.

protected UndoCloneTab()

Fields

Content

The content to be handled by the undo-system

protected T Content

Field Value

T

Methods

OnChange()

Mark the content of this tab as changed (needs to be saved) and create a new undo-backup

protected override void OnChange()

OnInitialize()

Called on startup to load the content for this tab from a file

protected override void OnInitialize()

OnRedo()

Called to redo the last undone change

protected override void OnRedo()

OnUndo()

Called to undo the last change

protected override void OnUndo()