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

#include <KisSelectionToolFactoryBase.h>

+ Inheritance diagram for KisToolPolyLineFactoryBase:

Public Member Functions

 KisToolPolyLineFactoryBase (const QString &id)
 
 ~KisToolPolyLineFactoryBase () 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 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 22 of file KisSelectionToolFactoryBase.h.

Constructor & Destructor Documentation

◆ KisToolPolyLineFactoryBase()

KisToolPolyLineFactoryBase::KisToolPolyLineFactoryBase ( const QString & id)
explicit

Definition at line 32 of file KisSelectionToolFactoryBase.cpp.

34{
35}
KisToolPaintFactoryBase(const QString &id)

◆ ~KisToolPolyLineFactoryBase()

KisToolPolyLineFactoryBase::~KisToolPolyLineFactoryBase ( )
override

Definition at line 37 of file KisSelectionToolFactoryBase.cpp.

38{
39
40}

Member Function Documentation

◆ createActionsImpl()

QList< QAction * > KisToolPolyLineFactoryBase::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 KisToolPaintFactoryBase.

Definition at line 42 of file KisSelectionToolFactoryBase.cpp.

43{
46
47 actions << actionRegistry->makeQAction("undo_polygon_selection", this);
48 actions << actionRegistry->makeQAction("selection_tool_mode_add", this);
49
50 return actions;
51}
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: