Krita Source Code Documentation
Loading...
Searching...
No Matches
kshortcutschemeseditor.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2016 Michael Abrahams <miabraha@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-3.0-or-later
5 */
6
7#include <QHBoxLayout>
8#include <QString>
9#include <QHash>
10
12class QPushButton;
13class QComboBox;
14
15class KisKShortcutSchemesEditor: public QHBoxLayout
16{
17 Q_OBJECT
18public:
20
22 QString currentScheme();
23
24private Q_SLOTS:
25 void newScheme();
26 void deleteScheme();
31 // void saveAsDefaultsForScheme(); //Not implemented
32
33Q_SIGNALS:
34 void shortcutsSchemeChanged(const QString &);
35
36protected:
37 void updateDeleteButton();
38
39private:
40 QPushButton *m_newScheme {nullptr};
41 QPushButton *m_deleteScheme {nullptr};
42 QPushButton *m_exportScheme {nullptr};
43 QComboBox *m_schemesList {nullptr};
44
46 QHash<QString, QString> m_schemeFileLocations;
47};
48
void shortcutsSchemeChanged(const QString &)
KisKShortcutSchemesEditor(KisShortcutsDialog *parent)
QHash< QString, QString > m_schemeFileLocations