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:
36
39
40 void activate(int shortcut) override;
41 void deactivate(int shortcut) override;
42
43 int priority() const override;
44
45 void begin(int shortcut, QEvent *event) override;
46 void end(QEvent *event) override;
47 void inputEvent(QEvent* event) override;
48
49 bool supportsHiResInputEvents(int shortcut) const override;
50
51
52private:
53 KisTool::ToolAction shortcutToToolAction(int shortcut) const;
54
55private:
56 struct Private;
57 const QScopedPointer<Private> m_d;
58};
59
60#endif // KIS_ALTERNATE_INVOCATION_ACTION_H
Abstract base class for input actions.
Alternate Invocation implementation of KisAbstractInputAction.
@ SecondaryAlternateModeShortcut
Toggle Secondary mode.
@ TertiaryAlternateModeShortcut
Warning: don't reorder the items of this enum, it breaks user configs!
const QScopedPointer< Private > m_d
bool supportsHiResInputEvents(int shortcut) const override
void begin(int shortcut, QEvent *event) override
KisTool::ToolAction shortcutToToolAction(int shortcut) const