Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_alternate_invocation_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_ALTERNATE_INVOCATION_ACTION_H
8#define KIS_ALTERNATE_INVOCATION_ACTION_H
9
11#include <QScopedPointer>
12#include "kis_tool.h"
13
22{
23public:
40
43
44 void activate(int shortcut) override;
45 void deactivate(int shortcut) override;
46
47 int priority() const override;
48
49 void begin(int shortcut, QEvent *event) override;
50 void end(QEvent *event) override;
51 void inputEvent(QEvent* event) override;
52
53 bool supportsHiResInputEvents(int shortcut) const override;
54
55
56private:
57 KisTool::ToolAction shortcutToToolAction(int shortcut) const;
58
59private:
60 struct Private;
61 const QScopedPointer<Private> m_d;
62};
63
64#endif // KIS_ALTERNATE_INVOCATION_ACTION_H
Abstract base class for input actions.
Alternate Invocation implementation of KisAbstractInputAction.
@ SecondaryAlternateModeShortcut
Toggle Secondary mode.
const QScopedPointer< Private > m_d
bool supportsHiResInputEvents(int shortcut) const override
void begin(int shortcut, QEvent *event) override
KisTool::ToolAction shortcutToToolAction(int shortcut) const