Changeset View
Changeset View
Standalone View
Standalone View
kded/configvalueprovider.h
Show All 22 Lines | |||||
23 | #include <KSharedConfig> | 23 | #include <KSharedConfig> | ||
24 | 24 | | |||
25 | class QString; | 25 | class QString; | ||
26 | class QFont; | 26 | class QFont; | ||
27 | 27 | | |||
28 | class ConfigValueProvider | 28 | class ConfigValueProvider | ||
29 | { | 29 | { | ||
30 | public: | 30 | public: | ||
31 | enum class ToolbarStyleNotation { | | |||
32 | Xsettingsd = 0, | | |||
33 | SettingsIni, | | |||
34 | Dconf | | |||
35 | }; | | |||
36 | | ||||
37 | ConfigValueProvider(); | 31 | ConfigValueProvider(); | ||
38 | 32 | | |||
39 | QString fontName() const; | 33 | QString fontName() const; | ||
40 | QString iconThemeName() const; | 34 | QString iconThemeName() const; | ||
41 | QString cursorThemeName() const; | 35 | QString cursorThemeName() const; | ||
42 | QString iconsOnButtons() const; | 36 | bool iconsOnButtons() const; | ||
43 | QString iconsInMenus() const; | 37 | bool iconsInMenus() const; | ||
44 | QString toolbarStyle(ToolbarStyleNotation notation) const; | 38 | int toolbarStyle() const; | ||
45 | QString scrollbarBehavior() const; | 39 | bool scrollbarBehavior() const; | ||
46 | QString preferDarkTheme() const; | 40 | bool preferDarkTheme() const; | ||
47 | QString windowDecorationsButtonsOrder() const; | 41 | QString windowDecorationsButtonsOrder() const; | ||
48 | QString enableAnimations() const; | 42 | bool enableAnimations() const; | ||
49 | 43 | | |||
50 | private: | 44 | private: | ||
51 | QString fontStyleHelper(const QFont &font) const; | 45 | QString fontStyleHelper(const QFont &font) const; | ||
52 | QString toolbarStyleInDesiredNotation(const QString &kdeConfigValue, ToolbarStyleNotation notation) const; | | |||
53 | QString windowDecorationButtonsOrderInGtkNotation(const QString &kdeConfigValue) const; | 46 | QString windowDecorationButtonsOrderInGtkNotation(const QString &kdeConfigValue) const; | ||
54 | 47 | | |||
55 | KSharedConfigPtr kdeglobalsConfig; | 48 | KSharedConfigPtr kdeglobalsConfig; | ||
56 | KSharedConfigPtr inputConfig; | 49 | KSharedConfigPtr inputConfig; | ||
57 | KSharedConfigPtr kwinConfig; | 50 | KSharedConfigPtr kwinConfig; | ||
58 | }; | 51 | }; |