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
21class KisInputProfile : public QObject
22{
23 Q_OBJECT
24
25public:
29 KisInputProfile(QObject *parent = 0);
33 ~KisInputProfile() override;
34
38 QString name() const;
39
50
63
64public Q_SLOTS:
70 void setName(const QString &name);
71
72Q_SIGNALS:
77
78private:
79 class Private;
80 Private *const d;
81};
82
83#endif // KISINPUTPROFILE_H
Abstract base class for input actions.
A container class for sets of shortcuts associated with an action.
KisInputProfile(QObject *parent=0)
QList< KisShortcutConfiguration * > allShortcuts() const
Private *const d
QList< KisShortcutConfiguration * > shortcutsForAction(KisAbstractInputAction *action) const
void addShortcut(KisShortcutConfiguration *shortcut)
~KisInputProfile() override
QString name() const
void setName(const QString &name)
void removeShortcut(KisShortcutConfiguration *shortcut)
A class encapsulating all settings for a single shortcut.