DDraceNetwork Documentation
Loading...
Searching...
No Matches
CEditorHistory Class Reference

#include <editor_history.h>

Inheritance diagram for CEditorHistory:
[legend]
Collaboration diagram for CEditorHistory:
[legend]

Public Member Functions

 CEditorHistory (CEditorMap *pMap)
 ~CEditorHistory () override
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 Member Functions inherited from CMapObject
 CMapObject (CEditorMap *pMap)
 CMapObject (const CMapObject &Other)
virtual ~CMapObject ()=default
virtual void OnAttach (CEditorMap *pMap)
const CEditorEditor () const
CEditorEditor ()
const CEditorMapMap () const
CEditorMapMap ()
const IGraphicsGraphics () const
IGraphicsGraphics ()
const ISoundSound () const
ISoundSound ()
const IStorageStorage () const
IStorageStorage ()
const ITextRenderTextRender () const
ITextRenderTextRender ()

Public Attributes

std::deque< std::shared_ptr< IEditorAction > > m_vpUndoActions
std::deque< std::shared_ptr< IEditorAction > > m_vpRedoActions
Public Attributes inherited from CMapObject
float m_aLayerOffset [2]
bool m_UseClipping
float m_aaClipArea [2][2]
float m_aSpeed [2]
float m_aaScreenOffset [2][2]
float m_aaBaseArea [2][2]
float m_aaExtendedArea [2][2]

Private Attributes

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

Additional Inherited Members

Static Public Attributes inherited from CMapObject
static constexpr float ms_aStandardScreen [2] = {1430 / 2.f, 1050 / 2.f}

Constructor & Destructor Documentation

◆ CEditorHistory()

CEditorHistory::CEditorHistory ( CEditorMap * pMap)
inlineexplicit

◆ ~CEditorHistory()

CEditorHistory::~CEditorHistory ( )
inlineoverride

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 = false
private

◆ 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: