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

#include <KisToolEncloseAndFillFactory.h>

+ Inheritance diagram for KisToolEncloseAndFillFactory:

Public Member Functions

KoToolBasecreateTool (KoCanvasBase *canvas) override
 
 KisToolEncloseAndFillFactory ()
 
 ~KisToolEncloseAndFillFactory () 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)
 
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 ()
 

Additional Inherited Members

- Public Attributes inherited from KoToolFactoryBase
QString activationId
 
QString iconName
 
const QString id
 
int priority
 
QString section
 
QKeySequence shortcut
 
QString tooltip
 
- 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)
 

Detailed Description

Definition at line 16 of file KisToolEncloseAndFillFactory.h.

Constructor & Destructor Documentation

◆ KisToolEncloseAndFillFactory()

KisToolEncloseAndFillFactory::KisToolEncloseAndFillFactory ( )
inline

Definition at line 20 of file KisToolEncloseAndFillFactory.h.

21 : KisToolPaintFactoryBase("KisToolEncloseAndFill")
22 {
23 setToolTip(i18n("Enclose and Fill Tool"));
26 setIconName(koIconNameCStr("krita_tool_enclose_and_fill"));
27 setPriority(15);
28 }
KisToolPaintFactoryBase(const QString &id)
void setSection(const QString &section)
void setActivationShapeId(const QString &activationShapeId)
void setIconName(const char *iconName)
void setToolTip(const QString &tooltip)
void setPriority(int newPriority)
#define koIconNameCStr(name)
Definition kis_icon.h:28
static const QString KRITA_TOOL_ACTIVATION_ID
Definition kis_tool.h:37
static const QString Fill
Tools that fill parts of the canvas.

References ToolBoxSection::Fill, koIconNameCStr, KRITA_TOOL_ACTIVATION_ID, KoToolFactoryBase::setActivationShapeId(), KoToolFactoryBase::setIconName(), KoToolFactoryBase::setPriority(), KoToolFactoryBase::setSection(), and KoToolFactoryBase::setToolTip().

◆ ~KisToolEncloseAndFillFactory()

KisToolEncloseAndFillFactory::~KisToolEncloseAndFillFactory ( )
inlineoverride

Definition at line 30 of file KisToolEncloseAndFillFactory.h.

31 {}

Member Function Documentation

◆ createTool()

KoToolBase * KisToolEncloseAndFillFactory::createTool ( KoCanvasBase * canvas)
inlineoverridevirtual

Instantiate a new tool

Parameters
canvasthe canvas that the new tool will work on. Should be passed to the constructor of the tool.
Returns
a new KoToolBase instance, or zero if the tool doesn't want to show up.

Implements KoToolFactoryBase.

Definition at line 33 of file KisToolEncloseAndFillFactory.h.

References Private::canvas.


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