#include <kis_tool_path.h>
Definition at line 43 of file kis_tool_path.h.
◆ KisToolPath()
◆ beginAlternateAction()
Definition at line 85 of file kis_tool_path.cc.
85 {
86 DelegatedPathTool::beginAlternateAction(event, action);
87 if (!nodeEditable()) return;
88
89 if (nodePaintAbility() == KisToolPath::MYPAINTBRUSH_UNPAINTABLE) {
91 QString message = i18n("The MyPaint Brush Engine is not available for this colorspace");
93 event->ignore();
94 return;
95 }
96}
void showFloatingMessage(const QString &message, const QIcon &icon, int timeout=4500, KisFloatingMessage::Priority priority=KisFloatingMessage::Medium, int alignment=Qt::AlignCenter|Qt::TextWordWrap)
shows a floating message in the top right corner of the canvas
#define koIcon(name)
Use these macros for icons without any issues.
References koIcon, KisViewManager::showFloatingMessage(), and KisCanvas2::viewManager().
◆ beginPrimaryAction()
◆ beginPrimaryDoubleClickAction()
◆ continuePrimaryAction()
◆ createOptionWidgets()
| QList< QPointer< QWidget > > KisToolPath::createOptionWidgets |
( |
| ) |
|
|
override |
◆ endPrimaryAction()
◆ eventFilter()
| bool KisToolPath::eventFilter |
( |
QObject * | obj, |
|
|
QEvent * | event ) |
|
override |
Definition at line 62 of file kis_tool_path.cc.
63{
64 Q_UNUSED(obj);
66 return false;
67 }
68 if (event->type() == QEvent::MouseButtonPress ||
69 event->type() == QEvent::MouseButtonDblClick) {
70 QMouseEvent *mouseEvent = static_cast<QMouseEvent*>(event);
71 if (mouseEvent->button() == Qt::RightButton) {
73 return true;
74 }
75 } else if (event->type() == QEvent::TabletPress) {
76 QTabletEvent *tabletEvent = static_cast<QTabletEvent*>(event);
77 if (tabletEvent->button() == Qt::RightButton) {
79 return true;
80 }
81 }
82 return false;
83}
References KisDelegatedTool< BaseClass, DelegateTool, ActivationPolicy >::localTool().
◆ mousePressEvent()
◆ popupWidget()
◆ requestStrokeCancellation()
| void KisToolPath::requestStrokeCancellation |
( |
| ) |
|
|
overrideprotected |
◆ requestStrokeEnd()
| void KisToolPath::requestStrokeEnd |
( |
| ) |
|
|
overrideprotected |
◆ resetCursorStyle
| void KisToolPath::resetCursorStyle |
( |
| ) |
|
|
overrideprotectedslot |
Definition at line 28 of file kis_tool_path.cc.
29{
30 if (isEraser() && (nodePaintAbility() == PAINT)) {
32 } else {
33 DelegatedPathTool::resetCursorStyle();
34 }
35
36 overrideCursorIfNotEditable();
37}
static QCursor eraserCursor()
References KisCursor::eraserCursor().
◆ __KisToolPathLocalTool
The documentation for this class was generated from the following files: