Changeset View
Changeset View
Standalone View
Standalone View
kded/themepreviewer.h
- This file was copied from kded/configeditor.h.
Show All 11 Lines | |||||
12 | * This program is distributed in the hope that it will be useful, | 12 | * This program is distributed in the hope that it will be useful, | ||
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | * GNU General Public License for more details. | 15 | * GNU General Public License for more details. | ||
16 | * | 16 | * | ||
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 | | ||||
20 | #pragma once | 21 | #pragma once | ||
21 | 22 | | |||
22 | #include <unistd.h> | 23 | #include <QProcess> | ||
23 | #include <QString> | 24 | #include <QString> | ||
24 | 25 | | |||
25 | class QFile; | 26 | class ThemePreviewer : QObject { | ||
27 | Q_OBJECT | ||||
28 | public: | ||||
29 | ThemePreviewer(QObject *parent); | ||||
30 | | ||||
31 | void showGtk2App(const QString &themeName); | ||||
32 | void showGtk3App(const QString &themeName); | ||||
33 | | ||||
34 | private Q_SLOTS: | ||||
35 | void startXsettingsd(); | ||||
36 | void stopXsettingsd(); | ||||
37 | | ||||
38 | private: | ||||
39 | static const QString previewGtk2ConfigPath; | ||||
40 | static const QString currentGtk2ConfigPath; | ||||
41 | static const QString gtk2PreviewerExecutablePath; | ||||
42 | | ||||
43 | static const QString gtk3PreviewerExecutablePath; | ||||
26 | 44 | | |||
27 | namespace ConfigEditor | 45 | QProcess gtk2PreviewerProccess; | ||
28 | { | 46 | QProcess gtk3PreviewerProccess; | ||
29 | void setGtk2ConfigValue(const QString ¶mName, const QString ¶mValue); | | |||
30 | void setGtk3ConfigValueDconf(const QString ¶mName, const QString ¶mValue, const QString &category = QStringLiteral("org.gnome.desktop.interface")); | | |||
31 | void setGtk3ConfigValueSettingsIni(const QString ¶mName, const QString ¶mValue); | | |||
32 | void setGtk3ConfigValueXSettingsd(const QString ¶mName, const QString ¶mValue); | | |||
33 | }; | 47 | }; |