|
Krita Source Code Documentation
|
The KisTouchShortcut class only handles touch gestures it does not handle tool invocation i.e painting (which is being handled in KisShortcutMatcher). More...
#include <kis_touch_shortcut.h>
Inheritance diagram for KisTouchShortcut:Classes | |
| class | Private |
Public Member Functions | |
| KisTouchShortcut (KisAbstractInputAction *action, int index, GestureAction type) | |
| bool | matchDragType (QTouchEvent *event) |
| bool | matchTapType (QTouchEvent *event) |
| bool | matchTouchPoint (QTouchEvent *event) |
| int | priority () const override |
| void | setDisableOnTouchPainting (bool disableOnTouchPainting) |
| void | setMaximumTouchPoints (int max) |
| void | setMinimumTouchPoints (int min) |
| ~KisTouchShortcut () override | |
Public Member Functions inherited from KisAbstractShortcut | |
| KisAbstractInputAction * | action () const |
| bool | isAvailable (KisInputActionGroupsMask mask) const |
| KisAbstractShortcut (KisAbstractInputAction *action, int index) | |
| void | setAction (KisAbstractInputAction *action) |
| int | shortcutIndex () const |
| virtual | ~KisAbstractShortcut () |
Private Types | |
| using | GestureAction = KisShortcutConfiguration::GestureAction |
Private Attributes | |
| Private *const | d |
Additional Inherited Members | |
Public Attributes inherited from KisAbstractShortcut | |
| KisAbstractInputAction * | action |
| int | shortcutIndex |
Protected Member Functions inherited from KisAbstractShortcut | |
| bool | compareKeys (const QSet< Qt::Key > &keys1, const QSet< Qt::Key > &keys2) |
The KisTouchShortcut class only handles touch gestures it does not handle tool invocation i.e painting (which is being handled in KisShortcutMatcher).
Definition at line 21 of file kis_touch_shortcut.h.
Definition at line 23 of file kis_touch_shortcut.h.
| KisTouchShortcut::KisTouchShortcut | ( | KisAbstractInputAction * | action, |
| int | index, | ||
| GestureAction | type ) |
Definition at line 31 of file kis_touch_shortcut.cpp.
|
override |
| bool KisTouchShortcut::matchDragType | ( | QTouchEvent * | event | ) |
Definition at line 72 of file kis_touch_shortcut.cpp.
References d, KisShortcutConfiguration::FiveFingerDrag, matchTouchPoint(), KisShortcutConfiguration::OneFingerDrag, and KisTouchShortcut::Private::type.
| bool KisTouchShortcut::matchTapType | ( | QTouchEvent * | event | ) |
Definition at line 63 of file kis_touch_shortcut.cpp.
References d, KisShortcutConfiguration::FiveFingerTap, matchTouchPoint(), KisShortcutConfiguration::OneFingerTap, and KisTouchShortcut::Private::type.
| bool KisTouchShortcut::matchTouchPoint | ( | QTouchEvent * | event | ) |
Definition at line 81 of file kis_touch_shortcut.cpp.
References d, KisTouchShortcut::Private::disableOnTouchPainting, KisTouchShortcut::Private::maxTouchPoints, and KisTouchShortcut::Private::minTouchPoints.
|
overridevirtual |
The priority of the shortcut. The shortcut with the greatest value will be chosen for execution
Implements KisAbstractShortcut.
Definition at line 43 of file kis_touch_shortcut.cpp.
References KisAbstractShortcut::action, and KisAbstractInputAction::priority().
| void KisTouchShortcut::setDisableOnTouchPainting | ( | bool | disableOnTouchPainting | ) |
Definition at line 58 of file kis_touch_shortcut.cpp.
References d, and KisTouchShortcut::Private::disableOnTouchPainting.
| void KisTouchShortcut::setMaximumTouchPoints | ( | int | max | ) |
Definition at line 53 of file kis_touch_shortcut.cpp.
References d, and KisTouchShortcut::Private::maxTouchPoints.
| void KisTouchShortcut::setMinimumTouchPoints | ( | int | min | ) |
Definition at line 48 of file kis_touch_shortcut.cpp.
References d, and KisTouchShortcut::Private::minTouchPoints.
|
private |
Definition at line 41 of file kis_touch_shortcut.h.