![]() |
DDNet documentation
|
#include <editor_history.h>
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 CEditor * | Editor () const |
| CEditor * | Editor () |
| const CEditorMap * | Map () const |
| CEditorMap * | Map () |
| const IGraphics * | Graphics () const |
| IGraphics * | Graphics () |
| const ISound * | Sound () const |
| ISound * | Sound () |
| const IStorage * | Storage () const |
| IStorage * | Storage () |
| const ITextRender * | TextRender () const |
| ITextRender * | TextRender () |
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} |
|
inlineexplicit |
|
inlineoverride |
| void CEditorHistory::BeginBulk | ( | ) |
|
inline |
|
inline |
| void CEditorHistory::Clear | ( | ) |
| void CEditorHistory::EndBulk | ( | const char * | pDisplay = nullptr | ) |
| void CEditorHistory::EndBulk | ( | int | DisplayToUse | ) |
| void CEditorHistory::Execute | ( | const std::shared_ptr< IEditorAction > & | pAction, |
| const char * | pDisplay = nullptr ) |
| void CEditorHistory::RecordAction | ( | const std::shared_ptr< IEditorAction > & | pAction | ) |
| void CEditorHistory::RecordAction | ( | const std::shared_ptr< IEditorAction > & | pAction, |
| const char * | pDisplay ) |
| bool CEditorHistory::Redo | ( | ) |
| bool CEditorHistory::Undo | ( | ) |
|
private |
|
private |
| std::deque<std::shared_ptr<IEditorAction> > CEditorHistory::m_vpRedoActions |
| std::deque<std::shared_ptr<IEditorAction> > CEditorHistory::m_vpUndoActions |