|
Krita Source Code Documentation
|
#include <kis_set_global_selection_command.h>
Inheritance diagram for KisSetGlobalSelectionCommand:Private Attributes | |
| KisImageWSP | m_image |
| KisSelectionSP | m_newSelection |
| KisSelectionSP | m_oldSelection |
Additional Inherited Members | |
Protected Member Functions inherited from KisCommandUtils::AggregateCommand | |
| void | addCommand (KUndo2Command *cmd) |
This command sets the global selection of the image. No saving of the previous selection for "Reselect" action happens
Definition at line 18 of file kis_set_global_selection_command.h.
| KisSetGlobalSelectionCommand::KisSetGlobalSelectionCommand | ( | KisImageWSP | image, |
| KisSelectionSP | selection ) |
Constructor
| image | the image to set the global selection on |
| selection | the selection that will be set a global selection, null selection will remove the selection |
Definition at line 30 of file kis_set_global_selection_command.cpp.
References KisImage::globalSelection(), m_image, m_newSelection, m_oldSelection, and KisWeakSharedPtr< T >::toStrongRef().
|
overridevirtual |
Implements KisCommandUtils::AggregateCommand.
Definition at line 41 of file kis_set_global_selection_command.cpp.
References KisCommandUtils::AggregateCommand::addCommand(), KisCommandUtils::FlipFlopCommand::FINALIZING, KisCommandUtils::FlipFlopCommand::INITIALIZING, KisMask::initSelection(), KIS_SAFE_ASSERT_RECOVER_RETURN, KisNode::lastChild(), m_image, m_newSelection, KisNodeFacade::root, KisImage::rootLayer(), KisLayer::selectionMask(), KisSelectionMask::setSelection(), and KisWeakSharedPtr< T >::toStrongRef().
|
private |
Definition at line 33 of file kis_set_global_selection_command.h.
|
private |
Definition at line 34 of file kis_set_global_selection_command.h.
|
private |
Definition at line 35 of file kis_set_global_selection_command.h.