|
Krita Source Code Documentation
|
#include <KisDeselectActiveSelectionCommand.h>
Inheritance diagram for KisDeselectActiveSelectionCommand:Private Attributes | |
| KisSelectionSP | m_activeSelection |
| KisSelectionMaskSP | m_deselectedMask |
Additional Inherited Members | |
Protected Member Functions inherited from KisCommandUtils::AggregateCommand | |
| void | addCommand (KUndo2Command *cmd) |
Protected Attributes inherited from KisDeselectGlobalSelectionCommand | |
| KisImageWSP | m_image |
Definition at line 12 of file KisDeselectActiveSelectionCommand.h.
| KisDeselectActiveSelectionCommand::KisDeselectActiveSelectionCommand | ( | KisSelectionSP | activeSelection, |
| KisImageWSP | image, | ||
| KUndo2Command * | parent = 0 ) |
Definition at line 12 of file KisDeselectActiveSelectionCommand.cpp.
|
override |
Definition at line 18 of file KisDeselectActiveSelectionCommand.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 KisDeselectActiveSelectionCommand.cpp.
References KisSelectionMask::active(), KisSharedPtr< T >::clear(), KisSharedPtr< T >::data(), KisImage::globalSelection(), KIS_SAFE_ASSERT_RECOVER, KIS_SAFE_ASSERT_RECOVER_RETURN, m_activeSelection, m_deselectedMask, KisDeselectGlobalSelectionCommand::m_image, KisSelection::parentNode, KisCommandUtils::AggregateCommand::redo(), KisSelectionMask::setActive(), and KisWeakSharedPtr< T >::toStrongRef().
|
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 45 of file KisDeselectActiveSelectionCommand.cpp.
References KisSharedPtr< T >::clear(), m_deselectedMask, KisSelectionMask::setActive(), and KisCommandUtils::AggregateCommand::undo().
|
private |
Definition at line 22 of file KisDeselectActiveSelectionCommand.h.
|
private |
Definition at line 23 of file KisDeselectActiveSelectionCommand.h.