Krita Source Code Documentation
Loading...
Searching...
No Matches
KisDumbUndoStore Class Reference

The KisDumbUndoStore class doesn't actually save commands, so you cannot undo or redo! More...

#include <kis_undo_stores.h>

+ Inheritance diagram for KisDumbUndoStore:

Public Member Functions

void addCommand (KUndo2Command *cmd) override
 
void beginMacro (const KUndo2MagicString &macroName) override
 
void endMacro () override
 
const KUndo2CommandpresentCommand () override
 
void purgeRedoState () override
 
void undoLastCommand () override
 
- Public Member Functions inherited from KisUndoStore
 KisUndoStore ()
 
virtual ~KisUndoStore ()
 

Additional Inherited Members

- Signals inherited from KisUndoStore
void historyStateChanged ()
 

Detailed Description

The KisDumbUndoStore class doesn't actually save commands, so you cannot undo or redo!

Definition at line 51 of file kis_undo_stores.h.

Member Function Documentation

◆ addCommand()

void KisDumbUndoStore::addCommand ( KUndo2Command * cmd)
overridevirtual

Ermm.. Done with it! :P

Implements KisUndoStore.

Definition at line 109 of file kis_undo_stores.cpp.

110{
114 command->redo();
115 delete command;
116
117 Q_EMIT historyStateChanged();
118}
void historyStateChanged()

References KisUndoStore::historyStateChanged(), and KUndo2Command::redo().

◆ beginMacro()

void KisDumbUndoStore::beginMacro ( const KUndo2MagicString & macroName)
overridevirtual

Yes, sir! >:)

Implements KisUndoStore.

Definition at line 120 of file kis_undo_stores.cpp.

121{
125 Q_UNUSED(macroName);
126}

◆ endMacro()

void KisDumbUndoStore::endMacro ( )
overridevirtual

Roger that! :)

Implements KisUndoStore.

Definition at line 128 of file kis_undo_stores.cpp.

129{
134 Q_EMIT historyStateChanged();
135}

References KisUndoStore::historyStateChanged().

◆ presentCommand()

const KUndo2Command * KisDumbUndoStore::presentCommand ( )
overridevirtual

WARNING: All these methods are not considered as thread-safe

Implements KisUndoStore.

Definition at line 95 of file kis_undo_stores.cpp.

96{
97 return 0;
98}

◆ purgeRedoState()

void KisDumbUndoStore::purgeRedoState ( )
overridevirtual

Erm... what? %)

Implements KisUndoStore.

Definition at line 137 of file kis_undo_stores.cpp.

138{
142}

◆ undoLastCommand()

void KisDumbUndoStore::undoLastCommand ( )
overridevirtual

Ermm.. Do we actually have one? We are dumb! ;)

Implements KisUndoStore.

Definition at line 100 of file kis_undo_stores.cpp.

101{
106 Q_EMIT historyStateChanged();
107}

References KisUndoStore::historyStateChanged().


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