|
Krita Source Code Documentation
|
#include <KoToolManager.h>
Inheritance diagram for KoToolAction:Public Slots | |
| void | trigger () |
| Request the activation of the tool. | |
Signals | |
| void | changed () |
| Emitted when a property changes (shortcut ATM) | |
Public Member Functions | |
| int | buttonGroupId () const |
| A unique ID for this tool as passed by changedTool(), >= 0. | |
| QString | iconName () const |
| The icon name of the tool. | |
| QString | iconText () const |
| The icontext of the tool. | |
| QString | id () const |
| The id of the tool. | |
| KoToolAction (KoToolFactoryBase *toolFactory) | |
| int | priority () const |
| Lower number (higher priority) means coming first in the section. | |
| QString | section () const |
| The section the tool wants to be in. | |
| QKeySequence | shortcut () const |
| The shortcut to activate the tool. | |
| KoToolFactoryBase * | toolFactory () const |
| Factory to create new tool object instances. | |
| QString | toolTip () const |
| The tooltip of the tool. | |
| QString | visibilityCode () const |
| This tool should become visible when we Q_EMIT this string in toolCodesSelected() | |
| ~KoToolAction () override | |
Public Attributes | |
| KoToolFactoryBase * | toolFactory |
Private Attributes | |
| Private *const | d |
Private Attributes inherited from Private | |
| KisCanvas2 * | canvas |
| int | displayedFrame |
| int | intendedFrame |
Additional Inherited Members | |
Private Member Functions inherited from Private | |
| Private (KisCanvas2 *c) | |
This class serves as a QAction-like control object for activation of a tool.
It allows to implement a custom UI to control the activation of tools. See KoToolBox & KoModeBox in the kowidgets library.
KoToolAction objects are owned by the KoToolManager singleton and live until the end of its lifetime.
Definition at line 40 of file KoToolManager.h.
|
explicit |
Definition at line 23 of file KoToolManager_p.cpp.
References d, and toolFactory.
|
override |
| int KoToolAction::buttonGroupId | ( | ) | const |
A unique ID for this tool as passed by changedTool(), >= 0.
|
signal |
Emitted when a property changes (shortcut ATM)
| QString KoToolAction::iconName | ( | ) | const |
| QString KoToolAction::iconText | ( | ) | const |
The icontext of the tool.
Definition at line 40 of file KoToolManager_p.cpp.
References d.
| QString KoToolAction::id | ( | ) | const |
| int KoToolAction::priority | ( | ) | const |
Lower number (higher priority) means coming first in the section.
Definition at line 72 of file KoToolManager_p.cpp.
References d.
| QString KoToolAction::section | ( | ) | const |
The section the tool wants to be in.
Definition at line 67 of file KoToolManager_p.cpp.
References d.
| QKeySequence KoToolAction::shortcut | ( | ) | const |
| KoToolFactoryBase * KoToolAction::toolFactory | ( | ) | const |
Factory to create new tool object instances.
| QString KoToolAction::toolTip | ( | ) | const |
|
slot |
Request the activation of the tool.
Definition at line 34 of file KoToolManager_p.cpp.
References KoToolManager::instance(), and KoToolManager::switchToolRequested().
| QString KoToolAction::visibilityCode | ( | ) | const |
This tool should become visible when we Q_EMIT this string in toolCodesSelected()
Definition at line 77 of file KoToolManager_p.cpp.
References d.
|
private |
Definition at line 69 of file KoToolManager.h.
| KoToolFactoryBase * KoToolAction::toolFactory |
Definition at line 20 of file KoToolManager_p.cpp.