|
Krita Source Code Documentation
|
#include <kis_image_layer_remove_command_impl.h>
Inheritance diagram for KisImageLayerRemoveCommandImpl:Public Attributes | |
| QList< KisCloneLayerSP > | clonesList |
| KisNodeSP | node |
| KisNodeSP | prevAbove |
| KisNodeSP | prevParent |
| KisImageLayerRemoveCommandImpl * | q |
| QList< KisLayerSP > | reincarnatedNodes |
Public Attributes inherited from Private | |
| KisCanvas2 * | canvas |
| int | displayedFrame |
| int | intendedFrame |
Private Attributes | |
| Private *const | m_d |
Additional Inherited Members | |
Protected Attributes inherited from KisImageCommand | |
| KisImageWSP | m_image |
The command for removing a single node. It should be used inside KisImageLayerRemoveCommand only
Definition at line 16 of file kis_image_layer_remove_command_impl.cpp.
| KisImageLayerRemoveCommandImpl::KisImageLayerRemoveCommandImpl | ( | KisImageWSP | image, |
| KisNodeSP | node, | ||
| KUndo2Command * | parent = 0 ) |
Constructor
| image | The image the command will be working on. |
| node | the node to remove |
Definition at line 34 of file kis_image_layer_remove_command_impl.cpp.
References m_d, node, KisNode::parent, and KisNode::prevSibling().
|
override |
Definition at line 43 of file kis_image_layer_remove_command_impl.cpp.
References m_d.
| void KisImageLayerRemoveCommandImpl::moveClones | ( | KisLayerSP | src, |
| KisLayerSP | dst ) |
|
inline |
Definition at line 17 of file kis_image_layer_remove_command_impl.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 KUndo2Command.
Definition at line 48 of file kis_image_layer_remove_command_impl.cpp.
References m_d, KisImageCommand::m_image, KisNodeFacade::removeNode(), and KisWeakSharedPtr< T >::toStrongRef().
| void KisImageLayerRemoveCommandImpl::restoreClones | ( | ) |
|
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 KUndo2Command.
Definition at line 58 of file kis_image_layer_remove_command_impl.cpp.
References KisNodeFacade::addNode(), m_d, KisImageCommand::m_image, and KisWeakSharedPtr< T >::toStrongRef().
| QList<KisCloneLayerSP> KisImageLayerRemoveCommandImpl::clonesList |
Definition at line 25 of file kis_image_layer_remove_command_impl.cpp.
|
private |
Definition at line 36 of file kis_image_layer_remove_command_impl.h.
| KisNodeSP KisImageLayerRemoveCommandImpl::node |
Definition at line 21 of file kis_image_layer_remove_command_impl.cpp.
| KisNodeSP KisImageLayerRemoveCommandImpl::prevAbove |
Definition at line 23 of file kis_image_layer_remove_command_impl.cpp.
| KisNodeSP KisImageLayerRemoveCommandImpl::prevParent |
Definition at line 22 of file kis_image_layer_remove_command_impl.cpp.
| KisImageLayerRemoveCommandImpl* KisImageLayerRemoveCommandImpl::q |
Definition at line 19 of file kis_image_layer_remove_command_impl.cpp.
| QList<KisLayerSP> KisImageLayerRemoveCommandImpl::reincarnatedNodes |
Definition at line 26 of file kis_image_layer_remove_command_impl.cpp.