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 KUndo2Command * presentCommand () 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 54 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 118 of file kis_undo_stores.cpp.

119{
123 command->redo();
124 delete command;
125
126 Q_EMIT historyStateChanged();
127}
void historyStateChanged()

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

◆ beginMacro()

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

Yes, sir! >:)

Implements KisUndoStore.

Definition at line 129 of file kis_undo_stores.cpp.

130{
134 Q_UNUSED(macroName);
135}

◆ endMacro()

void KisDumbUndoStore::endMacro ( )
overridevirtual

Roger that! :)

Implements KisUndoStore.

Definition at line 137 of file kis_undo_stores.cpp.

138{
143 Q_EMIT historyStateChanged();
144}

References KisUndoStore::historyStateChanged().

◆ presentCommand()

const KUndo2Command * KisDumbUndoStore::presentCommand ( )
overridevirtual

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

Implements KisUndoStore.

Definition at line 104 of file kis_undo_stores.cpp.

105{
106 return 0;
107}

◆ purgeRedoState()

void KisDumbUndoStore::purgeRedoState ( )
overridevirtual

Erm... what? %)

Implements KisUndoStore.

Definition at line 146 of file kis_undo_stores.cpp.

147{
151}

◆ undoLastCommand()

void KisDumbUndoStore::undoLastCommand ( )
overridevirtual

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

Implements KisUndoStore.

Definition at line 109 of file kis_undo_stores.cpp.

110{
115 Q_EMIT historyStateChanged();
116}

References KisUndoStore::historyStateChanged().


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