Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_input_profile.h
Go to the documentation of this file.
1/*
2 * This file is part of the KDE project
3 * SPDX-FileCopyrightText: 2013 Arjen Hiemstra <ahiemstra@heimr.nl>
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 */
7
8#ifndef KISINPUTPROFILE_H
9#define KISINPUTPROFILE_H
10
11#include <QObject>
12#include <QMetaType>
13
14#include <kritaui_export.h>
15
23class KRITAUI_EXPORT KisInputProfile : public QObject
24{
25 Q_OBJECT
26
27public:
31 KisInputProfile(QObject *parent = 0);
35 ~KisInputProfile() override;
36
40 QString name() const;
41
45 QList<KisShortcutConfiguration *> allShortcuts() const;
46
50 KisAbstractInputAction* actionForId(const QString &id) const;
51
57 QList<KisShortcutConfiguration *> shortcutsForAction(KisAbstractInputAction *action) const;
58
64 void addShortcut(KisShortcutConfiguration *shortcut);
70 void removeShortcut(KisShortcutConfiguration *shortcut);
71
72public Q_SLOTS:
78 void setName(const QString &name);
79
80Q_SIGNALS:
85
86private:
87 class Private;
88 Private *const d;
89};
90
91#endif // KISINPUTPROFILE_H
Abstract base class for input actions.
A container class for sets of shortcuts associated with an action.
Private *const d
A class encapsulating all settings for a single shortcut.