Changeset View
Changeset View
Standalone View
Standalone View
src/ShortcutActions.h
- This file was added.
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 | | ||||
19 | #ifndef SHORTCUT_ACTIONS_H | ||||
20 | #define SHORTCUT_ACTIONS_H | ||||
21 | | ||||
22 | #include <KActionCollection> | ||||
23 | | ||||
24 | class ShortcutActions { | ||||
25 | public: | ||||
26 | static ShortcutActions* self(); | ||||
27 | | ||||
28 | KActionCollection* shortcutActions(); | ||||
29 | | ||||
30 | QString componentName() const; | ||||
31 | | ||||
32 | QAction* openAction() const; | ||||
33 | QAction* fullScreenAction() const; | ||||
34 | QAction* currentScreenAction() const; | ||||
35 | QAction* activeWindowAction() const; | ||||
36 | QAction* regionAction() const; | ||||
37 | | ||||
38 | private: | ||||
39 | ShortcutActions(); | ||||
40 | KActionCollection mActions; | ||||
41 | }; | ||||
42 | | ||||
43 | #endif |