Changeset View
Changeset View
Standalone View
Standalone View
containmentactions/contextmenu/menu.h
1 | /* | 1 | /* | ||
---|---|---|---|---|---|
2 | * Copyright 2009 by Chani Armitage <chani@kde.org> | 2 | * Copyright 2009 by Chani Armitage <chani@kde.org> | ||
3 | * Copyright (c) 2018 Kai Uwe Broulik <kde@broulik.de> | ||||
4 | * Work sponsored by the LiMux project of | ||||
5 | * the city of Munich. | ||||
3 | * | 6 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | 7 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU Library General Public License as | 8 | * it under the terms of the GNU Library General Public License as | ||
6 | * published by the Free Software Foundation; either version 2, or | 9 | * published by the Free Software Foundation; either version 2, or | ||
7 | * (at your option) any later version. | 10 | * (at your option) any later version. | ||
8 | * | 11 | * | ||
9 | * This program is distributed in the hope that it will be useful, | 12 | * This program is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
Show All 28 Lines | 32 | public: | |||
39 | void configurationAccepted() override; | 42 | void configurationAccepted() override; | ||
40 | void save(KConfigGroup &config) override; | 43 | void save(KConfigGroup &config) override; | ||
41 | 44 | | |||
42 | public Q_SLOTS: | 45 | public Q_SLOTS: | ||
43 | void runCommand(); | 46 | void runCommand(); | ||
44 | void lockScreen(); | 47 | void lockScreen(); | ||
45 | void startLogout(); | 48 | void startLogout(); | ||
46 | void logout(); | 49 | void logout(); | ||
50 | void openDisplaySettings(); | ||||
47 | 51 | | |||
48 | private: | 52 | private: | ||
49 | QAction *m_runCommandAction; | 53 | QAction *m_runCommandAction; | ||
50 | QAction *m_lockScreenAction; | 54 | QAction *m_lockScreenAction; | ||
51 | QAction *m_logoutAction; | 55 | QAction *m_logoutAction; | ||
56 | QAction *m_displaySettingsAction; | ||||
52 | QAction *m_separator1; | 57 | QAction *m_separator1; | ||
53 | QAction *m_separator2; | 58 | QAction *m_separator2; | ||
54 | QAction *m_separator3; | 59 | QAction *m_separator3; | ||
55 | 60 | | |||
56 | // action name and whether it is enabled or not | 61 | // action name and whether it is enabled or not | ||
57 | QHash<QString, bool> m_actions; | 62 | QHash<QString, bool> m_actions; | ||
58 | QStringList m_actionOrder; | 63 | QStringList m_actionOrder; | ||
59 | QButtonGroup *m_buttons; | 64 | QButtonGroup *m_buttons; | ||
60 | }; | 65 | }; | ||
61 | 66 | | |||
62 | #endif | 67 | #endif |