Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_pan_action.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 * SPDX-FileCopyrightText: 2012 Arjen Hiemstra <ahiemstra@heimr.nl>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KIS_PAN_ACTION_H
8#define KIS_PAN_ACTION_H
9
11
18{
19public:
30
31 explicit KisPanAction();
32 ~KisPanAction() override;
33
34 int priority() const override;
35
36 void activate(int shortcut) override;
37 void deactivate(int shortcut) override;
38
39 void begin(int shortcut, QEvent *event) override;
40 void end(QEvent *event) override;
41
42 void inputEvent(QEvent* event) override;
43 void cursorMovedAbsolute(const QPointF &lastPos, const QPointF &pos) override;
44
45 bool isShortcutRequired(int shortcut) const override;
46
47 KisInputActionGroup inputActionGroup(int shortcut) const override;
48 bool supportsHiResInputEvents(int shortcut) const override;
49
50private:
51 class Private;
52 Private * const d;
53};
54
55#endif // KIS_PAN_ACTION_H
KisInputActionGroup
Abstract base class for input actions.
Pan Canvas implementation of KisAbstractInputAction.
void inputEvent(QEvent *event) override
void end(QEvent *event) override
void cursorMovedAbsolute(const QPointF &lastPos, const QPointF &pos) override
~KisPanAction() override
bool isShortcutRequired(int shortcut) const override
void activate(int shortcut) override
void begin(int shortcut, QEvent *event) override
bool supportsHiResInputEvents(int shortcut) const override
KisInputActionGroup inputActionGroup(int shortcut) const override
int priority() const override
Private *const d
@ PanRightShortcut
Pan right by a fixed amount.
@ PanModeShortcut
Toggle the pan mode.
@ PanUpShortcut
Pan up by a fixed amount.
@ PanDownShortcut
Pan down by a fixed amount.
@ PanLeftShortcut
Pan left by a fixed amount.
void deactivate(int shortcut) override