Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_rotate_canvas_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_ROTATE_CANVAS_ACTION_H
8#define KIS_ROTATE_CANVAS_ACTION_H
9
11
19{
20
21public:
32 explicit KisRotateCanvasAction();
33 ~KisRotateCanvasAction() override;
34
35 int priority() const override;
36
37 void activate(int shortcut) override;
38 void deactivate(int shortcut) override;
39 void begin(int shortcut, QEvent *event) override;
40 void end(QEvent *event) override;
41 void cursorMovedAbsolute(const QPointF &startPos, const QPointF &pos) override;
42 void inputEvent(QEvent* event) override;
43
44 KisInputActionGroup inputActionGroup(int shortcut) const override;
45 bool supportsHiResInputEvents(int shortcut) const override;
46
47private:
48 class Private;
49 Private * const d {nullptr};
50};
51
52#endif // KIS_ROTATE_CANVAS_ACTION_H
KisInputActionGroup
Abstract base class for input actions.
Rotate Canvas implementation of KisAbstractInputAction.
KisInputActionGroup inputActionGroup(int shortcut) const override
void deactivate(int shortcut) override
void inputEvent(QEvent *event) override
@ RotateLeftShortcut
Rotate left by a fixed amount.
@ RotateResetShortcut
Reset the rotation to 0.
@ DiscreteRotateModeShortcut
Toggle Discrete Rotate mode.
@ RotateRightShortcut
Rotate right by a fixed amount.
@ RotateModeShortcut
Toggle Rotate mode.
bool supportsHiResInputEvents(int shortcut) const override
void cursorMovedAbsolute(const QPointF &startPos, const QPointF &pos) override
void activate(int shortcut) override
void end(QEvent *event) override
void begin(int shortcut, QEvent *event) override