|
Krita Source Code Documentation
|
Inheritance diagram for DuplicateLayers:Public Types | |
| enum | Mode { MOVE , COPY , ADD } |
Public Member Functions | |
| DuplicateLayers (BatchMoveUpdateDataSP updateData, KisImageSP image, const KisNodeList &nodes, KisNodeSP dstParent, KisNodeSP dstAbove, KisNodeSP activeNode, Mode mode) | |
| void | populateChildCommands () override |
Public Member Functions inherited from KisCommandUtils::AggregateCommand | |
| AggregateCommand (const KUndo2MagicString &text, KUndo2Command *parent=0) | |
| AggregateCommand (KUndo2Command *parent=0) | |
| void | redo () override |
| void | undo () override |
Public Member Functions inherited from KUndo2Command | |
| QString | actionText () const |
| virtual bool | canAnnihilateWith (const KUndo2Command *other) const |
| const KUndo2Command * | child (int index) const |
| int | childCount () const |
| virtual QTime | endTime () const |
| KUndo2CommandExtraData * | extraData () const |
| bool | hasParent () const |
| virtual int | id () const |
| virtual bool | isMerged () const |
| KUndo2Command (const KUndo2MagicString &text, KUndo2Command *parent=0) | |
| KUndo2Command (KUndo2Command *parent=0) | |
| virtual QVector< KUndo2Command * > | mergeCommandsVector () const |
| virtual bool | mergeWith (const KUndo2Command *other) |
| virtual void | redoMergedCommands () |
| void | setEndTime () |
| virtual void | setEndTime (const QTime &time) |
| void | setExtraData (KUndo2CommandExtraData *data) |
| void | setText (const KUndo2MagicString &text) |
| void | setTime () |
| virtual void | setTime (const QTime &time) |
| virtual void | setTimedID (int timedID) |
| KUndo2MagicString | text () const |
| virtual QTime | time () const |
| virtual int | timedId () const |
| virtual bool | timedMergeWith (KUndo2Command *other) |
| virtual void | undoMergedCommands () |
| virtual | ~KUndo2Command () |
Private Member Functions | |
| QList< KisSelectionMaskSP > | findActiveSelectionMasks (KisNodeList nodes) |
| KisSelectionMaskSP | toActiveSelectionMask (KisNodeSP node) |
Private Attributes | |
| KisNodeSP | m_activeNode |
| KisNodeSP | m_dstAbove |
| KisNodeSP | m_dstParent |
| KisImageSP | m_image |
| Mode | m_mode |
| KisNodeList | m_nodes |
| BatchMoveUpdateDataSP | m_updateData |
Additional Inherited Members | |
Protected Member Functions inherited from KisCommandUtils::AggregateCommand | |
| void | addCommand (KUndo2Command *cmd) |
Definition at line 469 of file kis_node_juggler_compressed.cpp.
| Enumerator | |
|---|---|
| MOVE | |
| COPY | |
| ADD | |
Definition at line 470 of file kis_node_juggler_compressed.cpp.
|
inline |
Definition at line 476 of file kis_node_juggler_compressed.cpp.
|
inlineprivate |
Definition at line 617 of file kis_node_juggler_compressed.cpp.
References toActiveSelectionMask().
|
inlineoverridevirtual |
We should first disable the currently active masks, after the operation completed their cloned counterparts will be activated instead.
HINT: we should deactivate the masks before cloning, because otherwise KisGroupLayer::allowAsChild() will not let the second mask to be added to the list of child nodes. See bug 382315.
Activate the cloned counterparts of the masks after the operation is complete.
Implements KisCommandUtils::AggregateCommand.
Definition at line 491 of file kis_node_juggler_compressed.cpp.
References ADD, KisCommandUtils::AggregateCommand::addCommand(), KisLayerUtils::addCopyOfNameTag(), KisNode::clone(), COPY, KisSharedPtr< T >::data(), findActiveSelectionMasks(), KisBaseNode::isEditable(), m_activeNode, m_dstAbove, m_dstParent, m_image, m_mode, m_nodes, m_updateData, MOVE, KisNode::parent, KisLayerUtils::sortAndFilterAnyMergeableNodesSafe(), and toQShared().
|
inlineprivate |
Definition at line 611 of file kis_node_juggler_compressed.cpp.
References KisSelectionMask::active(), and KisSharedPtr< T >::data().
|
private |
Definition at line 633 of file kis_node_juggler_compressed.cpp.
|
private |
Definition at line 632 of file kis_node_juggler_compressed.cpp.
|
private |
Definition at line 631 of file kis_node_juggler_compressed.cpp.
|
private |
Definition at line 629 of file kis_node_juggler_compressed.cpp.
|
private |
Definition at line 634 of file kis_node_juggler_compressed.cpp.
|
private |
Definition at line 630 of file kis_node_juggler_compressed.cpp.
|
private |
Definition at line 628 of file kis_node_juggler_compressed.cpp.