Changeset View
Changeset View
Standalone View
Standalone View
kcms/colors/colorscm.h
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Line(s) | 46 | public Q_SLOTS: | |||
---|---|---|---|---|---|
55 | */ | 55 | */ | ||
56 | virtual void save(); | 56 | virtual void save(); | ||
57 | 57 | | |||
58 | /** | 58 | /** | ||
59 | * sets the configuration to sensible default values. | 59 | * sets the configuration to sensible default values. | ||
60 | */ | 60 | */ | ||
61 | virtual void defaults(); | 61 | virtual void defaults(); | ||
62 | 62 | | |||
63 | /** | ||||
64 | * Update all keys of the Global config with the theme ones. | ||||
65 | */ | ||||
66 | void updateConfig(KSharedConfigPtr config); | ||||
67 | | ||||
63 | private Q_SLOTS: | 68 | private Q_SLOTS: | ||
64 | 69 | | |||
65 | 70 | | |||
66 | /** | 71 | /** | ||
67 | * slot called when the schemeList selection changes. | 72 | * slot called when the schemeList selection changes. | ||
68 | * | 73 | * | ||
69 | * It loads the scheme with loadScheme(KSharedConfigPtr), which updates the | 74 | * It loads the scheme with loadScheme(KSharedConfigPtr), which updates the | ||
70 | * config (updateConfig()) | 75 | * config (updateConfig()) | ||
▲ Show 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | 105 | private: | |||
115 | */ | 120 | */ | ||
116 | void loadScheme(KSharedConfigPtr config); | 121 | void loadScheme(KSharedConfigPtr config); | ||
117 | 122 | | |||
118 | /** | 123 | /** | ||
119 | * Populate the schemeList with color schemes found on the system | 124 | * Populate the schemeList with color schemes found on the system | ||
120 | */ | 125 | */ | ||
121 | void populateSchemeList(); | 126 | void populateSchemeList(); | ||
122 | 127 | | |||
123 | /** | | |||
124 | * Update all keys of the Global config with the theme ones. | | |||
125 | */ | | |||
126 | void updateConfig(KSharedConfigPtr config); | | |||
127 | | ||||
128 | 128 | | |||
129 | QString m_currentColorScheme; | 129 | QString m_currentColorScheme; | ||
130 | 130 | | |||
131 | // The global config | 131 | // The global config | ||
132 | KSharedConfigPtr m_config; | 132 | KSharedConfigPtr m_config; | ||
133 | 133 | | |||
134 | // don't (re)load the scheme, only select it in schemeList | 134 | // don't (re)load the scheme, only select it in schemeList | ||
135 | bool m_dontLoadSelectedScheme; | 135 | bool m_dontLoadSelectedScheme; | ||
136 | 136 | | |||
137 | // the item previously selected in schemeList | 137 | // the item previously selected in schemeList | ||
138 | QListWidgetItem *m_previousSchemeItem; | 138 | QListWidgetItem *m_previousSchemeItem; | ||
139 | }; | 139 | }; | ||
140 | 140 | | |||
141 | #endif | 141 | #endif |