Krita Source Code Documentation
Loading...
Searching...
No Matches
KisSelectionToolFactoryBase Class Reference

#include <KisSelectionToolFactoryBase.h>

+ Inheritance diagram for KisSelectionToolFactoryBase:

Public Member Functions

 KisSelectionToolFactoryBase (const QString &id)
 
 ~KisSelectionToolFactoryBase () override
 
- Public Member Functions inherited from KisToolPaintFactoryBase
 KisToolPaintFactoryBase (const QString &id)
 
 ~KisToolPaintFactoryBase () override
 
- Public Member Functions inherited from KoToolFactoryBase
QString activationShapeId () const
 
QList< QAction * > createActions (KisKActionCollection *actionCollection)
 
virtual KoToolBasecreateTool (KoCanvasBase *canvas)=0
 
QString iconName () const
 
QString id () const
 
 KoToolFactoryBase (const QString &id)
 
int priority () const
 
 Private (const QString &i)
 
QString section () const
 
QKeySequence shortcut () const
 
QString toolTip () const
 
virtual ~KoToolFactoryBase ()
 

Protected Member Functions

QList< QAction * > createActionsImpl () override
 createActionsImpl should be reimplemented if the tool needs any actions. The actions should have a valid objectName().
 
- Protected Member Functions inherited from KisToolPaintFactoryBase
QList< QAction * > createActionsImpl () override
 createActionsImpl should be reimplemented if the tool needs any actions. The actions should have a valid objectName().
 
- Protected Member Functions inherited from KoToolFactoryBase
void setActivationShapeId (const QString &activationShapeId)
 
void setIconName (const char *iconName)
 
void setIconName (const QString &iconName)
 
void setPriority (int newPriority)
 
void setSection (const QString &section)
 
void setShortcut (const QKeySequence &shortcut)
 
void setToolTip (const QString &tooltip)
 

Additional Inherited Members

- Public Attributes inherited from KoToolFactoryBase
QString activationId
 
QString iconName
 
const QString id
 
int priority
 
QString section
 
QKeySequence shortcut
 
QString tooltip
 

Detailed Description

Definition at line 13 of file KisSelectionToolFactoryBase.h.

Constructor & Destructor Documentation

◆ KisSelectionToolFactoryBase()

KisSelectionToolFactoryBase::KisSelectionToolFactoryBase ( const QString & id)
explicit

Definition at line 10 of file KisSelectionToolFactoryBase.cpp.

12{
13}
KisToolPaintFactoryBase(const QString &id)

◆ ~KisSelectionToolFactoryBase()

KisSelectionToolFactoryBase::~KisSelectionToolFactoryBase ( )
override

Definition at line 15 of file KisSelectionToolFactoryBase.cpp.

16{
17}

Member Function Documentation

◆ createActionsImpl()

QList< QAction * > KisSelectionToolFactoryBase::createActionsImpl ( )
overrideprotectedvirtual

createActionsImpl should be reimplemented if the tool needs any actions. The actions should have a valid objectName().

Returns
the list of actions this tool wishes to be available.

Reimplemented from KoToolFactoryBase.

Reimplemented in KisToolSelectPolygonalFactory, and KisToolSelectMagneticFactory.

Definition at line 19 of file KisSelectionToolFactoryBase.cpp.

20{
23
24 actions << actionRegistry->makeQAction("selection_tool_mode_add", this);
25 actions << actionRegistry->makeQAction("selection_tool_mode_replace", this);
26 actions << actionRegistry->makeQAction("selection_tool_mode_subtract", this);
27 actions << actionRegistry->makeQAction("selection_tool_mode_intersect", this);
28
29 return actions;
30}
QAction * makeQAction(const QString &name, QObject *parent=0)
static KisActionRegistry * instance()
QList< QAction * > createActionsImpl() override
createActionsImpl should be reimplemented if the tool needs any actions. The actions should have a va...

References KisToolPaintFactoryBase::createActionsImpl(), KisActionRegistry::instance(), and KisActionRegistry::makeQAction().


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