Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_stroke_shortcut.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2012 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef __KIS_STROKE_SHORTCUT_H
8#define __KIS_STROKE_SHORTCUT_H
9
11
12class QMouseEvent;
13class QPointF;
14
30class KRITAUI_EXPORT KisStrokeShortcut : public KisAbstractShortcut
31{
32public:
33 KisStrokeShortcut(KisAbstractInputAction *action, int index);
34 ~KisStrokeShortcut() override;
35
36 int priority() const override;
37
46 void setButtons(const QSet<Qt::Key> &modifiers,
47 const QSet<Qt::MouseButton> &buttons);
48
55 bool matchReady(const QSet<Qt::Key> &modifiers,
56 const QSet<Qt::MouseButton> &buttons);
57
63 bool matchBegin(Qt::MouseButton button);
64
65 QMouseEvent fakeEndEvent(const QPointF &localPos) const;
66
67private:
68 class Private;
69 Private * const m_d;
70};
71
72#endif /* __KIS_STROKE_SHORTCUT_H */
Abstract base class for input actions.
virtual int priority() const =0
QString button(const QWheelEvent &ev)
QString buttons(const T &ev)