Changeset View
Changeset View
Standalone View
Standalone View
kded/gtkconfig.h
Show All 16 Lines | |||||
17 | * | 17 | * | ||
18 | * 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 | ||
19 | * 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/>. | ||
20 | */ | 20 | */ | ||
21 | 21 | | |||
22 | #pragma once | 22 | #pragma once | ||
23 | 23 | | |||
24 | #include <KDEDModule> | 24 | #include <KDEDModule> | ||
25 | #include <KConfigWatcher> | ||||
25 | 26 | | |||
26 | #include "configeditor.h" | 27 | #include "configeditor.h" | ||
27 | #include "configvalueprovider.h" | 28 | #include "configvalueprovider.h" | ||
28 | 29 | | |||
29 | class Q_DECL_EXPORT GtkConfig : public KDEDModule | 30 | class Q_DECL_EXPORT GtkConfig : public KDEDModule | ||
30 | { | 31 | { | ||
31 | Q_OBJECT | 32 | Q_OBJECT | ||
32 | 33 | | |||
Show All 24 Lines | 57 | public: | |||
57 | GtkConfig(QObject *parent, const QVariantList& args); | 58 | GtkConfig(QObject *parent, const QVariantList& args); | ||
58 | 59 | | |||
59 | void setFont() const; | 60 | void setFont() const; | ||
60 | void setIconTheme(int iconGroup) const; | 61 | void setIconTheme(int iconGroup) const; | ||
61 | void setCursorTheme() const; | 62 | void setCursorTheme() const; | ||
62 | void setIconsOnButtons() const; | 63 | void setIconsOnButtons() const; | ||
63 | void setIconsInMenus() const; | 64 | void setIconsInMenus() const; | ||
64 | void setToolbarStyle() const; | 65 | void setToolbarStyle() const; | ||
66 | void setWindowDecorationsButtonsOrder() const; | ||||
65 | 67 | | |||
66 | void applyAllSettings() const; | 68 | void applyAllSettings() const; | ||
67 | 69 | | |||
68 | public Q_SLOTS: | 70 | public Q_SLOTS: | ||
69 | void onGlobalSettingsChange(int settingsChangeType, int arg) const; | 71 | void onGlobalSettingsChange(int settingsChangeType, int arg) const; | ||
72 | void onKWinSettingsChange(const KConfigGroup &group, const QByteArrayList &names) const; | ||||
70 | 73 | | |||
71 | private: | 74 | private: | ||
72 | QScopedPointer<ConfigValueProvider> configValueProvider; | 75 | QScopedPointer<ConfigValueProvider> configValueProvider; | ||
76 | KConfigWatcher::Ptr kwinConfigWatcher; | ||||
73 | }; | 77 | }; |