Krita Source Code Documentation
Loading...
Searching...
No Matches
KoAddRemoveShapeCommandImpl Struct Reference

#include <KoAddRemoveShapeCommands.h>

+ Inheritance diagram for KoAddRemoveShapeCommandImpl:

Public Member Functions

 KoAddRemoveShapeCommandImpl (KoShape *shape, KoShapeContainer *parent, State state, KUndo2Command *parentCommand)
 
void partA () override
 
void partB () override
 
 ~KoAddRemoveShapeCommandImpl ()
 
- 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

bool m_ownShape = true
 
KoShapeContainer * m_parent = 0
 
KoShape * m_shape = 0
 

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
 

Detailed Description

Definition at line 18 of file KoAddRemoveShapeCommands.h.

Constructor & Destructor Documentation

◆ KoAddRemoveShapeCommandImpl()

KoAddRemoveShapeCommandImpl::KoAddRemoveShapeCommandImpl ( KoShape * shape,
KoShapeContainer * parent,
State state,
KUndo2Command * parentCommand )

◆ ~KoAddRemoveShapeCommandImpl()

KoAddRemoveShapeCommandImpl::~KoAddRemoveShapeCommandImpl ( )

Definition at line 20 of file KoAddRemoveShapeCommands.cpp.

20 {
21 if (m_ownShape) {
22 delete m_shape;
23 }
24}

References m_ownShape, and m_shape.

Member Function Documentation

◆ partA()

void KoAddRemoveShapeCommandImpl::partA ( )
overridevirtual

◆ partB()

void KoAddRemoveShapeCommandImpl::partB ( )
overridevirtual

Member Data Documentation

◆ m_ownShape

bool KoAddRemoveShapeCommandImpl::m_ownShape = true
private

Definition at line 27 of file KoAddRemoveShapeCommands.h.

◆ m_parent

KoShapeContainer* KoAddRemoveShapeCommandImpl::m_parent = 0
private

Definition at line 29 of file KoAddRemoveShapeCommands.h.

◆ m_shape

KoShape* KoAddRemoveShapeCommandImpl::m_shape = 0
private

Definition at line 28 of file KoAddRemoveShapeCommands.h.


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