Changeset View
Changeset View
Standalone View
Standalone View
kcmkwin/kwinrules/ruleslist.h
Show All 14 Lines | |||||
15 | * along with this program; if not, write to the Free Software | 15 | * along with this program; if not, write to the Free Software | ||
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
17 | */ | 17 | */ | ||
18 | 18 | | |||
19 | 19 | | |||
20 | #ifndef __RULESLIST_H__ | 20 | #ifndef __RULESLIST_H__ | ||
21 | #define __RULESLIST_H__ | 21 | #define __RULESLIST_H__ | ||
22 | 22 | | |||
23 | #include "../../rules.h" | | |||
24 | | ||||
25 | #include "ui_ruleslist.h" | 23 | #include "ui_ruleslist.h" | ||
24 | #include "rulebooksettings.h" | ||||
26 | 25 | | |||
27 | namespace KWin | 26 | namespace KWin | ||
28 | { | 27 | { | ||
28 | class Rules; | ||||
29 | 29 | | |||
30 | class KCMRulesList | 30 | class KCMRulesList | ||
31 | : public QWidget, Ui_KCMRulesList | 31 | : public QWidget, Ui_KCMRulesList | ||
32 | { | 32 | { | ||
33 | Q_OBJECT | 33 | Q_OBJECT | ||
34 | public: | 34 | public: | ||
35 | explicit KCMRulesList(QWidget* parent = nullptr); | 35 | explicit KCMRulesList(QWidget* parent = nullptr); | ||
36 | ~KCMRulesList() override; | 36 | ~KCMRulesList() override; | ||
37 | void load(); | 37 | void load(); | ||
38 | void save(); | 38 | void save(); | ||
39 | void defaults(); | 39 | void defaults(); | ||
40 | Q_SIGNALS: | 40 | Q_SIGNALS: | ||
41 | void changed(bool); | 41 | void changed(bool); | ||
42 | private Q_SLOTS: | 42 | private Q_SLOTS: | ||
43 | void newClicked(); | 43 | void newClicked(); | ||
44 | void modifyClicked(); | 44 | void modifyClicked(); | ||
45 | void deleteClicked(); | 45 | void deleteClicked(); | ||
46 | void moveupClicked(); | 46 | void moveupClicked(); | ||
47 | void movedownClicked(); | 47 | void movedownClicked(); | ||
48 | void exportClicked(); | 48 | void exportClicked(); | ||
49 | void importClicked(); | 49 | void importClicked(); | ||
50 | void activeChanged(); | 50 | void activeChanged(); | ||
51 | private: | 51 | private: | ||
52 | QVector< Rules* > rules; | 52 | QVector<Rules *> m_rules; | ||
53 | RuleBookSettings m_settings; | ||||
zzag: While you're on this, could you please fix coding style?
```lang=cpp
QVector<Rules *>… | |||||
53 | }; | 54 | }; | ||
54 | 55 | | |||
55 | } // namespace | 56 | } // namespace | ||
56 | 57 | | |||
57 | #endif | 58 | #endif |
While you're on this, could you please fix coding style?