Changeset View
Changeset View
Standalone View
Standalone View
effects/wobblywindows/wobblywindows_config.cpp
Show All 16 Lines | |||||
17 | 17 | | |||
18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License | ||
19 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
20 | *********************************************************************/ | 20 | *********************************************************************/ | ||
21 | 21 | | |||
22 | #include "wobblywindows_config.h" | 22 | #include "wobblywindows_config.h" | ||
23 | // KConfigSkeleton | 23 | // KConfigSkeleton | ||
24 | #include "wobblywindowsconfig.h" | 24 | #include "wobblywindowsconfig.h" | ||
25 | #include <config-kwin.h> | ||||
25 | #include <kwineffects_interface.h> | 26 | #include <kwineffects_interface.h> | ||
26 | 27 | | |||
27 | #include <KLocalizedString> | 28 | #include <KLocalizedString> | ||
28 | #include <KAboutData> | 29 | #include <KAboutData> | ||
29 | #include <kconfiggroup.h> | 30 | #include <kconfiggroup.h> | ||
30 | #include <KPluginFactory> | 31 | #include <KPluginFactory> | ||
31 | 32 | | |||
32 | K_PLUGIN_FACTORY_WITH_JSON(WobblyWindowsEffectConfigFactory, | 33 | K_PLUGIN_FACTORY_WITH_JSON(WobblyWindowsEffectConfigFactory, | ||
▲ Show 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | |||||
77 | 78 | | |||
78 | ParameterSet pset[5] = { set_0, set_1, set_2, set_3, set_4 }; | 79 | ParameterSet pset[5] = { set_0, set_1, set_2, set_3, set_4 }; | ||
79 | 80 | | |||
80 | //----------------------------------------------------------------------------- | 81 | //----------------------------------------------------------------------------- | ||
81 | 82 | | |||
82 | WobblyWindowsEffectConfig::WobblyWindowsEffectConfig(QWidget* parent, const QVariantList& args) : | 83 | WobblyWindowsEffectConfig::WobblyWindowsEffectConfig(QWidget* parent, const QVariantList& args) : | ||
83 | KCModule(KAboutData::pluginData(QStringLiteral("wobblywindows")), parent, args) | 84 | KCModule(KAboutData::pluginData(QStringLiteral("wobblywindows")), parent, args) | ||
84 | { | 85 | { | ||
86 | WobblyWindowsConfig::instance(KWIN_CONFIG); | ||||
85 | m_ui.setupUi(this); | 87 | m_ui.setupUi(this); | ||
86 | 88 | | |||
87 | addConfig(WobblyWindowsConfig::self(), this); | 89 | addConfig(WobblyWindowsConfig::self(), this); | ||
88 | connect(m_ui.kcfg_WobblynessLevel, SIGNAL(valueChanged(int)), this, SLOT(wobblinessChanged())); | 90 | connect(m_ui.kcfg_WobblynessLevel, SIGNAL(valueChanged(int)), this, SLOT(wobblinessChanged())); | ||
89 | 91 | | |||
90 | load(); | 92 | load(); | ||
91 | } | 93 | } | ||
92 | 94 | | |||
Show All 26 Lines |