Changeset View
Changeset View
Standalone View
Standalone View
effects/slide/slide_config.cpp
1 | /******************************************************************** | 1 | /******************************************************************** | ||
---|---|---|---|---|---|
2 | KWin - the KDE window manager | 2 | KWin - the KDE window manager | ||
3 | This file is part of the KDE project. | 3 | This file is part of the KDE project. | ||
4 | 4 | | |||
5 | Copyright (C) 2017 Vlad Zagorodniy <vladzzag@gmail.com> | 5 | Copyright (C) 2017, 2018 Vlad Zagorodniy <vladzzag@gmail.com> | ||
6 | 6 | | |||
7 | This program is free software; you can redistribute it and/or modify | 7 | This program is free software; you can redistribute it and/or modify | ||
8 | it under the terms of the GNU General Public License as published by | 8 | it under the terms of the GNU General Public License as published by | ||
9 | the Free Software Foundation; either version 2 of the License, or | 9 | the Free Software Foundation; either version 2 of the License, or | ||
10 | (at your option) any later version. | 10 | (at your option) any later version. | ||
11 | 11 | | |||
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 | ||
Show All 19 Lines | 31 | K_PLUGIN_FACTORY_WITH_JSON(SlideEffectConfigFactory, | |||
33 | registerPlugin<KWin::SlideEffectConfig>();) | 33 | registerPlugin<KWin::SlideEffectConfig>();) | ||
34 | 34 | | |||
35 | namespace KWin | 35 | namespace KWin | ||
36 | { | 36 | { | ||
37 | 37 | | |||
38 | SlideEffectConfig::SlideEffectConfig(QWidget *parent, const QVariantList &args) | 38 | SlideEffectConfig::SlideEffectConfig(QWidget *parent, const QVariantList &args) | ||
39 | : KCModule(KAboutData::pluginData(QStringLiteral("slide")), parent, args) | 39 | : KCModule(KAboutData::pluginData(QStringLiteral("slide")), parent, args) | ||
40 | { | 40 | { | ||
41 | mUi.setupUi(this); | 41 | m_ui.setupUi(this); | ||
42 | SlideConfig::instance(KWIN_CONFIG); | 42 | SlideConfig::instance(KWIN_CONFIG); | ||
43 | addConfig(SlideConfig::self(), this); | 43 | addConfig(SlideConfig::self(), this); | ||
44 | | ||||
45 | load(); | 44 | load(); | ||
46 | } | 45 | } | ||
47 | 46 | | |||
48 | SlideEffectConfig::~SlideEffectConfig() | 47 | SlideEffectConfig::~SlideEffectConfig() | ||
49 | { | 48 | { | ||
50 | } | 49 | } | ||
51 | 50 | | |||
52 | void SlideEffectConfig::save() | 51 | void SlideEffectConfig::save() | ||
Show All 12 Lines |