11#include <klocalizedstring.h>
39 setName(i18n(
"Tool Invocation"));
40 setDescription(i18n(
"The <i>Tool Invocation</i> action invokes the current tool, for example, using the brush tool, it will start painting."));
72 QString temporaryToolId;
75 temporaryToolId =
"KritaShape/KisToolLine";
78 temporaryToolId =
"KritaShape/KisToolEllipse";
81 temporaryToolId =
"KritaShape/KisToolRectangle";
84 temporaryToolId =
"KritaTransform/KisToolMove";
87 temporaryToolId =
"KritaFill/KisToolFill";
90 temporaryToolId =
"KritaFill/KisToolGradient";
93 temporaryToolId =
"KritaShape/KisToolMeasure";
96 temporaryToolId =
"KisToolSelectElliptical";
99 temporaryToolId =
"KisToolSelectRectangular";
102 temporaryToolId =
"KisToolSelectContiguous";
105 temporaryToolId =
"KisToolSelectOutline";
109 if (!temporaryToolId.isEmpty()) {
170 QKeyEvent pressEvent(QEvent::KeyPress, Qt::Key_Return, QFlags<Qt::KeyboardModifier>());
172 QKeyEvent releaseEvent(QEvent::KeyRelease, Qt::Key_Return, QFlags<Qt::KeyboardModifier>());
KisImageWSP image() const
void requestStrokeCancellation()
QPointer< KoCanvasResourceProvider > resourceManager
KoCanvasController * canvasController() const
QPointer< KoToolManager > toolManager
#define KIS_SAFE_ASSERT_RECOVER_NOOP(cond)