Changeset View
Changeset View
Standalone View
Standalone View
effects/diminactive/diminactive_config.h
1 | /******************************************************************** | 1 | /******************************************************************** | ||
---|---|---|---|---|---|
2 | KWin - the KDE window manager | 2 | KWin - the KDE window manager | ||
3 | This file is part of the KDE project. | 3 | This file is part of the KDE project. | ||
4 | 4 | | |||
5 | Copyright (C) 2007 Christian Nitschkowski <christian.nitschkowski@kdemail.net> | 5 | Copyright (C) 2007 Christian Nitschkowski <christian.nitschkowski@kdemail.net> | ||
6 | Copyright (C) 2018 Vlad Zagorodniy <vladzzag@gmail.com> | ||||
6 | 7 | | |||
7 | This program is free software; you can redistribute it and/or modify | 8 | This program is free software; you can redistribute it and/or modify | ||
8 | it under the terms of the GNU General Public License as published by | 9 | it under the terms of the GNU General Public License as published by | ||
9 | the Free Software Foundation; either version 2 of the License, or | 10 | the Free Software Foundation; either version 2 of the License, or | ||
10 | (at your option) any later version. | 11 | (at your option) any later version. | ||
11 | 12 | | |||
12 | This program is distributed in the hope that it will be useful, | 13 | This program is distributed in the hope that it will be useful, | ||
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | GNU General Public License for more details. | 16 | GNU General Public License for more details. | ||
16 | 17 | | |||
17 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License | ||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | *********************************************************************/ | 20 | *********************************************************************/ | ||
20 | 21 | | |||
21 | #ifndef KWIN_DIMINACTIVE_CONFIG_H | 22 | #ifndef KWIN_DIMINACTIVE_CONFIG_H | ||
22 | #define KWIN_DIMINACTIVE_CONFIG_H | 23 | #define KWIN_DIMINACTIVE_CONFIG_H | ||
23 | 24 | | |||
24 | #include <kcmodule.h> | 25 | #include <KCModule> | ||
25 | 26 | | |||
26 | #include "ui_diminactive_config.h" | 27 | #include "ui_diminactive_config.h" | ||
27 | 28 | | |||
28 | namespace KWin | 29 | namespace KWin | ||
29 | { | 30 | { | ||
30 | 31 | | |||
31 | class DimInactiveEffectConfigForm : public QWidget, public Ui::DimInactiveEffectConfigForm | | |||
32 | { | | |||
33 | Q_OBJECT | | |||
34 | public: | | |||
35 | explicit DimInactiveEffectConfigForm(QWidget* parent); | | |||
36 | }; | | |||
37 | | ||||
38 | class DimInactiveEffectConfig : public KCModule | 32 | class DimInactiveEffectConfig : public KCModule | ||
39 | { | 33 | { | ||
40 | Q_OBJECT | 34 | Q_OBJECT | ||
35 | | ||||
41 | public: | 36 | public: | ||
42 | explicit DimInactiveEffectConfig(QWidget* parent = 0, const QVariantList& args = QVariantList()); | 37 | explicit DimInactiveEffectConfig(QWidget *parent = nullptr, const QVariantList &args = QVariantList()); | ||
38 | ~DimInactiveEffectConfig() override; | ||||
43 | 39 | | |||
44 | virtual void save(); | 40 | void save() override; | ||
45 | 41 | | |||
46 | private: | 42 | private: | ||
47 | DimInactiveEffectConfigForm* m_ui; | 43 | ::Ui::DimInactiveEffectConfig m_ui; | ||
48 | }; | 44 | }; | ||
49 | 45 | | |||
50 | } // namespace | 46 | } // namespace KWin | ||
51 | 47 | | |||
52 | #endif | 48 | #endif |