|
Krita Source Code Documentation
|
#include <KisReselectActiveSelectionCommand.h>
Inheritance diagram for KisReselectActiveSelectionCommand:Private Attributes | |
| KisNodeSP | m_activeNode |
| KisSelectionMaskSP | m_reselectedMask |
Additional Inherited Members | |
Protected Member Functions inherited from KisCommandUtils::AggregateCommand | |
| void | addCommand (KUndo2Command *cmd) |
Protected Attributes inherited from KisReselectGlobalSelectionCommand | |
| KisImageWSP | m_image |
Definition at line 13 of file KisReselectActiveSelectionCommand.h.
| KisReselectActiveSelectionCommand::KisReselectActiveSelectionCommand | ( | KisNodeSP | activeNode, |
| KisImageWSP | image, | ||
| KUndo2Command * | parent = 0 ) |
Definition at line 16 of file KisReselectActiveSelectionCommand.cpp.
|
overridevirtual |
Applies a change to the document. This function must be implemented in the derived class. Calling KUndo2QStack::push(), KUndo2QStack::undo() or KUndo2QStack::redo() from this function leads to undefined behavior.
The default implementation calls redo() on all child commands.
Reimplemented from KisCommandUtils::AggregateCommand.
Definition at line 22 of file KisReselectActiveSelectionCommand.cpp.
References KisNode::childNodes(), KisSharedPtr< T >::data(), m_activeNode, m_reselectedMask, KisNode::parent, KisCommandUtils::AggregateCommand::redo(), KisLayer::selectionMask(), KisSelectionMask::setActive(), and KoProperties::setProperty().
|
overridevirtual |
Reverts a change to the document. After undo() is called, the state of the document should be the same as before redo() was called. This function must be implemented in the derived class. Calling KUndo2QStack::push(), KUndo2QStack::undo() or KUndo2QStack::redo() from this function leads to undefined behavior.
The default implementation calls undo() on all child commands in reverse order.
Reimplemented from KisCommandUtils::AggregateCommand.
Definition at line 63 of file KisReselectActiveSelectionCommand.cpp.
References KisSharedPtr< T >::clear(), m_reselectedMask, KisSelectionMask::setActive(), and KisCommandUtils::AggregateCommand::undo().
|
private |
Definition at line 22 of file KisReselectActiveSelectionCommand.h.
|
private |
Definition at line 23 of file KisReselectActiveSelectionCommand.h.