Changeset View
Changeset View
Standalone View
Standalone View
src/prefs/koprefsdialog.h
Show All 23 Lines | |||||
24 | */ | 24 | */ | ||
25 | #ifndef KORG_KOPREFSDIALOG_H | 25 | #ifndef KORG_KOPREFSDIALOG_H | ||
26 | #define KORG_KOPREFSDIALOG_H | 26 | #define KORG_KOPREFSDIALOG_H | ||
27 | 27 | | |||
28 | #include "kcm_korganizer_export.h" | 28 | #include "kcm_korganizer_export.h" | ||
29 | #include "kcmdesignerfields.h" | 29 | #include "kcmdesignerfields.h" | ||
30 | #include <QSet> | 30 | #include <QSet> | ||
31 | #include <Libkdepim/KPrefsDialog> | 31 | #include <Libkdepim/KPrefsDialog> | ||
32 | #include <KColorButton> | ||||
32 | 33 | | |||
33 | class QPushButton; | 34 | class QPushButton; | ||
34 | 35 | | |||
35 | namespace Ui { | 36 | namespace Ui { | ||
36 | class KOGroupwarePrefsPage; | 37 | class KOGroupwarePrefsPage; | ||
37 | } | 38 | } | ||
38 | 39 | | |||
39 | namespace Akonadi { | 40 | namespace Akonadi { | ||
Show All 23 Lines | 63 | { | |||
63 | Q_OBJECT | 64 | Q_OBJECT | ||
64 | public: | 65 | public: | ||
65 | KOPrefsDialogColorsAndFonts(QWidget *parent); | 66 | KOPrefsDialogColorsAndFonts(QWidget *parent); | ||
66 | 67 | | |||
67 | protected: | 68 | protected: | ||
68 | void usrWriteConfig() override; | 69 | void usrWriteConfig() override; | ||
69 | void usrReadConfig() override; | 70 | void usrReadConfig() override; | ||
70 | 71 | | |||
72 | private Q_SLOTS: | ||||
mlaurent: it can be move as private Q_SLOTS no ? | |||||
73 | void useSystemColorToggle(bool useSystemColor); | ||||
74 | | ||||
71 | protected Q_SLOTS: | 75 | protected Q_SLOTS: | ||
72 | void updateCategories(); | 76 | void updateCategories(); | ||
73 | void setCategoryColor(); | 77 | void setCategoryColor(); | ||
74 | void updateCategoryColor(); | 78 | void updateCategoryColor(); | ||
75 | 79 | | |||
76 | void updateResources(); | 80 | void updateResources(); | ||
77 | void setResourceColor(); | 81 | void setResourceColor(); | ||
78 | void updateResourceColor(); | 82 | void updateResourceColor(); | ||
79 | 83 | | |||
80 | private: | 84 | private: | ||
81 | KComboBox *mCategoryCombo = nullptr; | 85 | KComboBox *mCategoryCombo = nullptr; | ||
82 | KColorButton *mCategoryButton = nullptr; | 86 | KColorButton *mCategoryButton = nullptr; | ||
83 | QHash<QString, QColor> mCategoryDict; | 87 | QHash<QString, QColor> mCategoryDict; | ||
84 | 88 | | |||
85 | Akonadi::CollectionComboBox *mResourceCombo = nullptr; | 89 | Akonadi::CollectionComboBox *mResourceCombo = nullptr; | ||
86 | KColorButton *mResourceButton = nullptr; | 90 | KColorButton *mResourceButton = nullptr; | ||
87 | QHash<QString, QColor> mResourceDict; | 91 | QHash<QString, QColor> mResourceDict; | ||
92 | QList<KColorButton *> mButtonsDisable; // button that are disabled when using system color | ||||
88 | }; | 93 | }; | ||
89 | 94 | | |||
90 | class KCM_KORGANIZER_EXPORT KOPrefsDialogGroupScheduling : public KPIM::KPrefsModule | 95 | class KCM_KORGANIZER_EXPORT KOPrefsDialogGroupScheduling : public KPIM::KPrefsModule | ||
91 | { | 96 | { | ||
92 | Q_OBJECT | 97 | Q_OBJECT | ||
93 | public: | 98 | public: | ||
94 | KOPrefsDialogGroupScheduling(QWidget *parent); | 99 | KOPrefsDialogGroupScheduling(QWidget *parent); | ||
95 | 100 | | |||
▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines |
it can be move as private Q_SLOTS no ?