8#ifndef KISSHORTCUTCONFIGURATION_H
9#define KISSHORTCUTCONFIGURATION_H
185 Qt::MouseButtons
buttons()
const;
A class encapsulating all settings for a single shortcut.
void setButtons(Qt::MouseButtons newButtons)
void setWheel(MouseWheelMovement type)
bool operator==(const KisShortcutConfiguration &other) const
static QString buttonsToText(Qt::MouseButtons buttons)
MouseWheelMovement wheel() const
static QString keysToText(const QList< Qt::Key > &keys)
ShortcutType type() const
KisAbstractInputAction * action() const
@ MacOSGestureType
A macOS gesture.
@ MouseButtonType
A mouse button, possibly with key modifiers.
@ MouseWheelType
Mouse wheel movement, possibly with key modifiers.
@ KeyCombinationType
A list of keys that should be pressed.
@ UnknownType
Unknown, empty shortcut.
@ GestureType
A touch gesture.
KisShortcutConfiguration & operator=(const KisShortcutConfiguration &other)
virtual ~KisShortcutConfiguration()
Qt::MouseButtons buttons() const
static QString wheelInputToText(const QList< Qt::Key > &keys, MouseWheelMovement wheel)
bool unserialize(const QString &serialized)
KisShortcutConfiguration()
QList< Qt::Key > keys() const
void setGesture(GestureAction type)
GestureAction gesture() const
static QString wheelToText(MouseWheelMovement wheel)
void setAction(KisAbstractInputAction *newAction)
void setType(ShortcutType newType)
QString getInputText() const
void setKeys(const QList< Qt::Key > &newKeys)
void setMode(uint newMode)
@ WheelTrackpad
A pan movement on a trackpad.
@ WheelDown
Downwards movement, toward the user.
@ WheelUp
Upwards movement, away from the user.
@ WheelLeft
Left movement.
@ WheelRight
Right movement.
static QString gestureToText(GestureAction action)
static QString buttonsInputToText(const QList< Qt::Key > &keys, Qt::MouseButtons buttons)
Q_DECLARE_METATYPE(KisShortcutConfiguration *)