Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_input_profile_manager.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 KISINPUTPROFILEMANAGER_H
9#define KISINPUTPROFILEMANAGER_H
10
11#include <QObject>
12
13#include "kritaui_export.h"
14
15#define PROFILE_VERSION 6
16
18class KisInputProfile;
20
26class KRITAUI_EXPORT KisInputProfileManager : public QObject
27{
28 Q_OBJECT
29public:
30 KisInputProfileManager(QObject *parent = 0);
31 ~KisInputProfileManager() override;
32 Q_DISABLE_COPY(KisInputProfileManager)
33
34
41 KisInputProfile *profile(const QString &name) const;
49 QStringList profileNames() const;
50
60 void setCurrentProfile(KisInputProfile *profile);
61
69 KisInputProfile *addProfile(const QString &name);
77 void removeProfile(const QString &name);
86 bool renameProfile(const QString &oldName, const QString &newName);
96 void duplicateProfile(const QString &name, const QString &newName);
97
102
106 void loadProfiles();
110 void saveProfiles();
111
115 void saveProfile(KisInputProfile *profile, QString storagePath);
116
120 QList<KisShortcutConfiguration *> getConflictingShortcuts(KisInputProfile *profile);
121
127 void resetAll();
128
133
134Q_SIGNALS:
143
144private:
145 class Private;
146 Private *const d;
147};
148
149#endif // KISINPUTPROFILEMANAGER_H
PythonPluginManager * instance
Abstract base class for input actions.
A class to manage a list of profiles and actions.
QList< KisAbstractInputAction * > actions()
QList< KisInputProfile * > profiles() const
KisInputProfile * currentProfile() const
A container class for sets of shortcuts associated with an action.
A class encapsulating all settings for a single shortcut.