DDraceNetwork Docs
CEditorHistory Class Reference

#include <editor_history.h>

Collaboration diagram for CEditorHistory:
[legend]

Public Member Functions

 CEditorHistory ()
 
 ~CEditorHistory ()
 
void RecordAction (const std::shared_ptr< IEditorAction > &pAction)
 
void RecordAction (const std::shared_ptr< IEditorAction > &pAction, const char *pDisplay)
 
void Execute (const std::shared_ptr< IEditorAction > &pAction, const char *pDisplay=nullptr)
 
bool Undo ()
 
bool Redo ()
 
void Clear ()
 
bool CanUndo () const
 
bool CanRedo () const
 
void BeginBulk ()
 
void EndBulk (const char *pDisplay=nullptr)
 
void EndBulk (int DisplayToUse)
 

Public Attributes

CEditorm_pEditor
 
std::deque< std::shared_ptr< IEditorAction > > m_vpUndoActions
 
std::deque< std::shared_ptr< IEditorAction > > m_vpRedoActions
 

Private Attributes

std::vector< std::shared_ptr< IEditorAction > > m_vpBulkActions
 
bool m_IsBulk
 

Constructor & Destructor Documentation

◆ CEditorHistory()

CEditorHistory::CEditorHistory ( )
inline

◆ ~CEditorHistory()

CEditorHistory::~CEditorHistory ( )
inline

Member Function Documentation

◆ BeginBulk()

void CEditorHistory::BeginBulk ( )

◆ CanRedo()

bool CEditorHistory::CanRedo ( ) const
inline

◆ CanUndo()

bool CEditorHistory::CanUndo ( ) const
inline

◆ Clear()

void CEditorHistory::Clear ( )

◆ EndBulk() [1/2]

void CEditorHistory::EndBulk ( const char *  pDisplay = nullptr)

◆ EndBulk() [2/2]

void CEditorHistory::EndBulk ( int  DisplayToUse)

◆ Execute()

void CEditorHistory::Execute ( const std::shared_ptr< IEditorAction > &  pAction,
const char *  pDisplay = nullptr 
)

◆ RecordAction() [1/2]

void CEditorHistory::RecordAction ( const std::shared_ptr< IEditorAction > &  pAction)

◆ RecordAction() [2/2]

void CEditorHistory::RecordAction ( const std::shared_ptr< IEditorAction > &  pAction,
const char *  pDisplay 
)

◆ Redo()

bool CEditorHistory::Redo ( )

◆ Undo()

bool CEditorHistory::Undo ( )

Member Data Documentation

◆ m_IsBulk

bool CEditorHistory::m_IsBulk
private

◆ m_pEditor

CEditor* CEditorHistory::m_pEditor

◆ m_vpBulkActions

std::vector<std::shared_ptr<IEditorAction> > CEditorHistory::m_vpBulkActions
private

◆ m_vpRedoActions

std::deque<std::shared_ptr<IEditorAction> > CEditorHistory::m_vpRedoActions

◆ m_vpUndoActions

std::deque<std::shared_ptr<IEditorAction> > CEditorHistory::m_vpUndoActions

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