JX Application Framework
Loading...
Searching...
No Matches
Public Member Functions | List of all members
JUndo Class Referenceabstract

#include <JUndo.h>

Inheritance diagram for JUndo:
[legend]

Public Member Functions

 JUndo ()
 
virtual ~JUndo ()
 
virtual void Undo ()=0
 
bool IsActive () const
 
void Activate ()
 
void Deactivate ()
 
bool IsRedo () const
 
void SetRedo (const bool isRedo)
 

Detailed Description

Interface for the JUndo class.

Base class to support the fundamental concept of undoing an operation.
We require that all derived classes implement Undo().

We maintain an "active" flag because some derived classes will accumulate
a set of changes into one undo action.  A deactivated Undo object can no
longer accumulate changes and must therefore be replaced before the next
change.

We also maintain a "redo" flag so other objects can tell whether we
are actually performing an undo or a redo operation.  (Redo objects should
only be created by Undo objects.)

Constructor & Destructor Documentation

◆ JUndo()

JUndo::JUndo ( )

◆ ~JUndo()

JUndo::~JUndo ( )
virtual

Member Function Documentation

◆ Activate()

void JUndo::Activate ( )
inline

◆ Deactivate()

void JUndo::Deactivate ( )
inline

◆ IsActive()

bool JUndo::IsActive ( ) const
inline

◆ IsRedo()

bool JUndo::IsRedo ( ) const
inline

◆ SetRedo()

void JUndo::SetRedo ( const bool  isRedo)
inline

◆ Undo()

virtual void JUndo::Undo ( )
pure virtual

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