Krita Source Code Documentation
Loading...
Searching...
No Matches
KisInputProfileMigrator.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2022 Sharaf Zaman <shzam@sdf.org>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7#ifndef __KISINPUTPROFILEMIGRATOR_H_
8#define __KISINPUTPROFILEMIGRATOR_H_
9
10#include <QList>
11#include <QMap>
12
16
18{
19 QString name;
20 QString fullpath;
22
23 int operator<(const ProfileEntry other) const
24 {
25 return this->name < other.name;
26 }
27};
28
30{
31public:
33
35
36protected:
38};
39
63
79
80#endif // __KISINPUTPROFILEMIGRATOR_H_
Abstract base class for input actions.
A class to manage a list of profiles and actions.
QList< KisShortcutConfiguration > migrate(const ProfileEntry &profile) override
KisInputProfileMigratorFrom5(KisInputProfileManager *manager)
KisInputProfileManager * m_manager
void filterShortcuts(QList< KisShortcutConfiguration > &shortcuts, Func func)
QList< KisShortcutConfiguration > defaultTouchShortcuts()
QList< KisShortcutConfiguration > migrate(const ProfileEntry &profile) override
KisInputProfileManager * m_manager
KisInputProfileMigratorFrom6(KisInputProfileManager *manager)
virtual QList< KisShortcutConfiguration > migrate(const ProfileEntry &profile)=0
static QList< KisShortcutConfiguration > getShortcutsFromProfile(QString profile, KisInputProfileManager *manager)
A class encapsulating all settings for a single shortcut.
int operator<(const ProfileEntry other) const