Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_zoom_and_rotate_action.h
Go to the documentation of this file.
1/*
2 * This file is part of the KDE project
3 * SPDX-FileCopyrightText: 2019 Sharaf Zaman <sharafzaz121@gmail.com>
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 */
7
8#ifndef KIS_ZOOM_AND_ROTATE_ACTION_H
9#define KIS_ZOOM_AND_ROTATE_ACTION_H
10
12#include <QScopedPointer>
13
20{
21public:
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 &lastPos, const QPointF &pos) override;
42 void inputEvent(QEvent* event) override;
43
44 KisInputActionGroup inputActionGroup(int shortcut) const override;
45
46private:
47 class Private;
48 const QScopedPointer<Private> d;
49};
50
51#endif // KIS_ZOOM_AND_ROTATE_ACTION_H
KisInputActionGroup
Abstract base class for input actions.
This class handles both rotation and zooming operation. This is separate from Zoom and Rotate operati...
void cursorMovedAbsolute(const QPointF &lastPos, const QPointF &pos) override
void deactivate(int shortcut) override
KisInputActionGroup inputActionGroup(int shortcut) const override
void begin(int shortcut, QEvent *event) override
void activate(int shortcut) override
void end(QEvent *event) override
const QScopedPointer< Private > d
void inputEvent(QEvent *event) override