11#include <klocalizedstring.h>
38 setName(i18n(
"Tool Invocation"));
39 setDescription(i18n(
"The <i>Tool Invocation</i> action invokes the current tool, for example, using the brush tool, it will start painting."));
71 QString temporaryToolId;
74 temporaryToolId =
"KritaShape/KisToolLine";
77 temporaryToolId =
"KritaShape/KisToolEllipse";
80 temporaryToolId =
"KritaShape/KisToolRectangle";
83 temporaryToolId =
"KritaTransform/KisToolMove";
86 temporaryToolId =
"KritaFill/KisToolFill";
89 temporaryToolId =
"KritaFill/KisToolGradient";
92 temporaryToolId =
"KritaShape/KisToolMeasure";
95 temporaryToolId =
"KisToolSelectElliptical";
98 temporaryToolId =
"KisToolSelectRectangular";
101 temporaryToolId =
"KisToolSelectContiguous";
104 temporaryToolId =
"KisToolSelectOutline";
108 if (!temporaryToolId.isEmpty()) {
169 QKeyEvent pressEvent(QEvent::KeyPress, Qt::Key_Return, QFlags<Qt::KeyboardModifier>());
171 QKeyEvent releaseEvent(QEvent::KeyRelease, Qt::Key_Return, QFlags<Qt::KeyboardModifier>());
KisImageWSP image() const
void requestStrokeCancellation()
QPointer< KoCanvasResourceProvider > resourceManager
#define KIS_SAFE_ASSERT_RECOVER_NOOP(cond)