AlphaFramework API  1.0.3
Protected Member Functions | List of all members
AlphaFramework.Editor.UndoCommandTab Class Reference

A base class for all editor windows that have undo-functionality based on IUndoCommand logging (using the command pattern) More...

Inheritance diagram for AlphaFramework.Editor.UndoCommandTab:
AlphaFramework.Editor.UndoTab< IUndoCommand > AlphaFramework.Editor.Graphics.ParticleSystemEditor AlphaFramework.Editor.Gui.CutsceneEditor AlphaFramework.Editor.Graphics.CpuParticleSystemEditor AlphaFramework.Editor.Graphics.GpuParticleSystemEditor

Protected Member Functions

 UndoCommandTab ()
 
void ExecuteCommand (IUndoCommand command)
 Executes a IUndoCommand using this tab's undo stack. More...
 
void ExecuteCommandSafe (IUndoCommand command)
 Executes a IUndoCommand and automatically displays message boxes for common exception types. More...
 
override void OnUndo ()
 Hook to undo the last change
 
override void OnRedo ()
 Hook to redo the last undone change
 
- Protected Member Functions inherited from AlphaFramework.Editor.UndoTab< IUndoCommand >
 UndoTab ()
 
override void OnSaveFile ()
 
override void OnChange ()
 

Additional Inherited Members

- Public Member Functions inherited from AlphaFramework.Editor.UndoTab< IUndoCommand >
override void Undo ()
 
override void Redo ()
 
- Protected Attributes inherited from AlphaFramework.Editor.UndoTab< IUndoCommand >
readonly Button buttonUndo
 The undo button. More...
 
readonly Button buttonRedo
 The redo button. More...
 
readonly Stack< T > UndoBackups
 Entries used by the undo-system to undo changes More...
 
readonly Stack< T > RedoBackups
 Entries used by the undo-system to redo changes previously undone More...
 

Detailed Description

A base class for all editor windows that have undo-functionality based on IUndoCommand logging (using the command pattern)

All changes to the content must be performed via the ExecuteCommand interface to be handled by the undo-system

Member Function Documentation

◆ ExecuteCommand()

void AlphaFramework.Editor.UndoCommandTab.ExecuteCommand ( IUndoCommand  command)
inlineprotected

Executes a IUndoCommand using this tab's undo stack.

◆ ExecuteCommandSafe()

void AlphaFramework.Editor.UndoCommandTab.ExecuteCommandSafe ( IUndoCommand  command)
inlineprotected

Executes a IUndoCommand and automatically displays message boxes for common exception types.


The documentation for this class was generated from the following file: