Changeset View
Changeset View
Standalone View
Standalone View
kded/configeditor.h
Show All 16 Lines | |||||
17 | * You should have received a copy of the GNU General Public License | 17 | * You should have received a copy of the GNU General Public License | ||
18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | */ | 19 | */ | ||
20 | #pragma once | 20 | #pragma once | ||
21 | 21 | | |||
22 | #include <unistd.h> | 22 | #include <unistd.h> | ||
23 | #include <QString> | 23 | #include <QString> | ||
24 | 24 | | |||
25 | class QColor; | ||||
25 | class QFile; | 26 | class QFile; | ||
26 | class QString; | 27 | class KColorScheme; | ||
27 | 28 | | |||
28 | namespace ConfigEditor | 29 | namespace ConfigEditor | ||
29 | { | 30 | { | ||
30 | void setGtk2ConfigValue(const QString ¶mName, const QString ¶mValue); | 31 | void setGtk2ConfigValue(const QString ¶mName, const QString ¶mValue); | ||
31 | void setGtk3ConfigValueDconf(const QString ¶mName, bool paramValue, const QString &category = QStringLiteral("org.gnome.desktop.interface")); | 32 | void setGtk3ConfigValueDconf(const QString ¶mName, bool paramValue, const QString &category = QStringLiteral("org.gnome.desktop.interface")); | ||
32 | void setGtk3ConfigValueDconf(const QString ¶mName, const QString ¶mValue, const QString &category = QStringLiteral("org.gnome.desktop.interface")); | 33 | void setGtk3ConfigValueDconf(const QString ¶mName, const QString ¶mValue, const QString &category = QStringLiteral("org.gnome.desktop.interface")); | ||
33 | void setGtk3ConfigValueSettingsIni(const QString ¶mName, const QString ¶mValue); | 34 | void setGtk3ConfigValueSettingsIni(const QString ¶mName, const QString ¶mValue); | ||
34 | void setGtk3ConfigValueXSettingsd(const QString ¶mName, const QString ¶mValue); | 35 | void setGtk3ConfigValueXSettingsd(const QString ¶mName, const QString ¶mValue); | ||
35 | 36 | | |||
37 | void setGtk3Colors(const QMap<QString, QColor> &colorsDefinitions); | ||||
38 | | ||||
36 | QString gtk2ConfigValue(const QString& paramName); | 39 | QString gtk2ConfigValue(const QString& paramName); | ||
37 | QString gtk3ConfigValueSettingsIni(const QString& paramName); | 40 | QString gtk3ConfigValueSettingsIni(const QString& paramName); | ||
38 | 41 | | |||
39 | void removeLegacyGtk2Strings(); | 42 | void removeLegacyGtk2Strings(); | ||
40 | 43 | | |||
41 | 44 | | |||
45 | void addImportStatementToGtkCssUserFile(); | ||||
46 | void modifyColorsCssFile(const QMap<QString, QColor> &colorsDefinitions); | ||||
47 | | ||||
42 | void replaceValueInGtkrcContents(QString >krcContents, const QString ¶mName, const QString ¶mValue); | 48 | void replaceValueInGtkrcContents(QString >krcContents, const QString ¶mName, const QString ¶mValue); | ||
43 | void replaceValueInXSettingsdContents(QString &xSettingsdContents, const QString ¶mName, const QString ¶mValue); | 49 | void replaceValueInXSettingsdContents(QString &xSettingsdContents, const QString ¶mName, const QString ¶mValue); | ||
44 | 50 | | |||
45 | QString readFileContents(QFile >krc); | 51 | QString readFileContents(QFile >krc); | ||
46 | 52 | | |||
47 | void reloadGtk2Apps(); | 53 | void reloadGtk2Apps(); | ||
48 | void reloadXSettingsd(); | 54 | void reloadXSettingsd(); | ||
49 | 55 | | |||
50 | pid_t pidOfXSettingsd(); | 56 | pid_t pidOfXSettingsd(); | ||
51 | }; | 57 | }; |