Changeset View
Changeset View
Standalone View
Standalone View
src/Gui/SettingsDialog/ShortcutsOptionsPage.h
1 | /* | ||||
---|---|---|---|---|---|
2 | * Copyright (C) 2019 David Redondo <kde@david-redondo.de> | ||||
3 | * | ||||
4 | * This program is free software; you can redistribute it and/or modify | ||||
5 | * it under the terms of the GNU General Public License as published by | ||||
6 | * the Free Software Foundation; either version 2 of the License, or | ||||
7 | * (at your option) any later version. | ||||
8 | * | ||||
9 | * This program is distributed in the hope that it will be useful, | ||||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
12 | * GNU General Public License for more details. | ||||
13 | * | ||||
14 | * You should have received a copy of the GNU General Public License along | ||||
15 | * with this program; if not, write to the Free Software Foundation, Inc., | ||||
16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||||
17 | */ | ||||
18 | | ||||
1 | #ifndef SHORTCUTSOPTIONSPAGE_H | 19 | #ifndef SHORTCUTSOPTIONSPAGE_H | ||
2 | #define SHORTCUTSOPTIONSPAGE_H | 20 | #define SHORTCUTSOPTIONSPAGE_H | ||
3 | 21 | | |||
4 | #include "SettingsPage.h" | 22 | #include <QWidget> | ||
5 | 23 | | |||
6 | class KShortcutsEditor; | 24 | class KShortcutsEditor; | ||
7 | 25 | | |||
8 | class ShortcutsOptionsPage : public SettingsPage | 26 | class ShortcutsOptionsPage : public QWidget | ||
9 | { | 27 | { | ||
10 | Q_OBJECT | 28 | Q_OBJECT | ||
11 | 29 | | |||
12 | public: | 30 | public: | ||
13 | 31 | | |||
14 | explicit ShortcutsOptionsPage ( QWidget* parent ); | 32 | explicit ShortcutsOptionsPage (QWidget* parent); | ||
15 | ~ShortcutsOptionsPage(); | 33 | ~ShortcutsOptionsPage(); | ||
16 | 34 | | |||
17 | public Q_SLOTS: | 35 | bool isModified(); | ||
36 | void defaults(); | ||||
18 | 37 | | |||
19 | void saveChanges() override; | 38 | Q_SIGNALS: | ||
20 | void resetChanges() override; | 39 | void shortCutsChanged(); | ||
40 | | ||||
41 | public Q_SLOTS: | ||||
21 | 42 | | |||
22 | private Q_SLOTS: | 43 | void saveChanges(); | ||
44 | void resetChanges(); | ||||
23 | 45 | | |||
24 | void markDirty(); | | |||
25 | 46 | | |||
26 | private: | 47 | private: | ||
27 | 48 | | |||
28 | KShortcutsEditor* mEditor; | 49 | KShortcutsEditor* mEditor; | ||
29 | }; | 50 | }; | ||
30 | 51 | | |||
31 | #endif // SHORTCUTSOPTIONSPAGE_H | 52 | #endif // SHORTCUTSOPTIONSPAGE_H |