Krita Source Code Documentation
Loading...
Searching...
No Matches
KisLayerUtils::KeepNodesSelectedCommand Class Reference

#include <kis_layer_utils.h>

+ Inheritance diagram for KisLayerUtils::KeepNodesSelectedCommand:

Public Member Functions

 KeepNodesSelectedCommand (const KisNodeList &selectedBefore, const KisNodeList &selectedAfter, KisNodeSP activeBefore, KisNodeSP activeAfter, KisImageSP image, bool finalize, KUndo2Command *parent=0)
 
void partB () override
 
- Public Member Functions inherited from KisCommandUtils::FlipFlopCommand
 FlipFlopCommand (bool finalizing=false, KUndo2Command *parent=0)
 
 FlipFlopCommand (State initialState, 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 Attributes

KisNodeSP m_activeAfter
 
KisNodeSP m_activeBefore
 
KisImageWSP m_image
 
KisNodeList m_selectedAfter
 
KisNodeList m_selectedBefore
 

Additional Inherited Members

- Public Types inherited from KisCommandUtils::FlipFlopCommand
enum  State { INITIALIZING , FINALIZING }
 
- Protected Member Functions inherited from KisCommandUtils::FlipFlopCommand
State getState () const
 
bool isFirstRedo () const
 
virtual void partA ()
 

Detailed Description

A command to keep correct set of selected/active nodes throughout the action.

Definition at line 138 of file kis_layer_utils.h.

Constructor & Destructor Documentation

◆ KeepNodesSelectedCommand()

KisLayerUtils::KeepNodesSelectedCommand::KeepNodesSelectedCommand ( const KisNodeList & selectedBefore,
const KisNodeList & selectedAfter,
KisNodeSP activeBefore,
KisNodeSP activeAfter,
KisImageSP image,
bool finalize,
KUndo2Command * parent = 0 )

Definition at line 878 of file kis_layer_utils.cpp.

884 : FlipFlopCommand(finalize, parent),
885 m_selectedBefore(selectedBefore),
886 m_selectedAfter(selectedAfter),
887 m_activeBefore(activeBefore),
888 m_activeAfter(activeAfter),
889 m_image(image)
890 {
891 }
FlipFlopCommand(State initialState, KUndo2Command *parent=0)

Member Function Documentation

◆ partB()

Member Data Documentation

◆ m_activeAfter

KisNodeSP KisLayerUtils::KeepNodesSelectedCommand::m_activeAfter
private

Definition at line 153 of file kis_layer_utils.h.

◆ m_activeBefore

KisNodeSP KisLayerUtils::KeepNodesSelectedCommand::m_activeBefore
private

Definition at line 152 of file kis_layer_utils.h.

◆ m_image

KisImageWSP KisLayerUtils::KeepNodesSelectedCommand::m_image
private

Definition at line 154 of file kis_layer_utils.h.

◆ m_selectedAfter

KisNodeList KisLayerUtils::KeepNodesSelectedCommand::m_selectedAfter
private

Definition at line 151 of file kis_layer_utils.h.

◆ m_selectedBefore

KisNodeList KisLayerUtils::KeepNodesSelectedCommand::m_selectedBefore
private

Definition at line 150 of file kis_layer_utils.h.


The documentation for this class was generated from the following files: