Changeset View
Changeset View
Standalone View
Standalone View
kcmkwin/kwinoptions/main.cpp
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | 42 | public: | |||
---|---|---|---|---|---|
45 | {} | 45 | {} | ||
46 | }; | 46 | }; | ||
47 | 47 | | |||
48 | class KMovingConfigStandalone : public KMovingConfig | 48 | class KMovingConfigStandalone : public KMovingConfig | ||
49 | { | 49 | { | ||
50 | Q_OBJECT | 50 | Q_OBJECT | ||
51 | public: | 51 | public: | ||
52 | KMovingConfigStandalone(QWidget* parent, const QVariantList &) | 52 | KMovingConfigStandalone(QWidget* parent, const QVariantList &) | ||
53 | : KMovingConfig(true, new KConfig("kwinrc"), parent) | 53 | : KMovingConfig(true, parent) | ||
54 | {} | 54 | {} | ||
55 | }; | 55 | }; | ||
56 | 56 | | |||
57 | class KAdvancedConfigStandalone : public KAdvancedConfig | 57 | class KAdvancedConfigStandalone : public KAdvancedConfig | ||
58 | { | 58 | { | ||
59 | Q_OBJECT | 59 | Q_OBJECT | ||
60 | public: | 60 | public: | ||
61 | KAdvancedConfigStandalone(QWidget* parent, const QVariantList &) | 61 | KAdvancedConfigStandalone(QWidget* parent, const QVariantList &) | ||
Show All 21 Lines | 68 | { | |||
83 | tab->addTab(mTitleBarActions, i18n("Titlebar A&ctions")); | 83 | tab->addTab(mTitleBarActions, i18n("Titlebar A&ctions")); | ||
84 | connect(mTitleBarActions, SIGNAL(changed(bool)), this, SLOT(moduleChanged(bool))); | 84 | connect(mTitleBarActions, SIGNAL(changed(bool)), this, SLOT(moduleChanged(bool))); | ||
85 | 85 | | |||
86 | mWindowActions = new KWindowActionsConfig(false, mConfig, this); | 86 | mWindowActions = new KWindowActionsConfig(false, mConfig, this); | ||
87 | mWindowActions->setObjectName(QLatin1String("KWin Window Actions")); | 87 | mWindowActions->setObjectName(QLatin1String("KWin Window Actions")); | ||
88 | tab->addTab(mWindowActions, i18n("W&indow Actions")); | 88 | tab->addTab(mWindowActions, i18n("W&indow Actions")); | ||
89 | connect(mWindowActions, SIGNAL(changed(bool)), this, SLOT(moduleChanged(bool))); | 89 | connect(mWindowActions, SIGNAL(changed(bool)), this, SLOT(moduleChanged(bool))); | ||
90 | 90 | | |||
91 | mMoving = new KMovingConfig(false, mConfig, this); | 91 | mMoving = new KMovingConfig(false, this); | ||
92 | mMoving->setObjectName(QLatin1String("KWin Moving")); | 92 | mMoving->setObjectName(QLatin1String("KWin Moving")); | ||
93 | tab->addTab(mMoving, i18n("Mo&vement")); | 93 | tab->addTab(mMoving, i18n("Mo&vement")); | ||
94 | connect(mMoving, SIGNAL(changed(bool)), this, SLOT(moduleChanged(bool))); | 94 | connect(mMoving, SIGNAL(changed(bool)), this, SLOT(moduleChanged(bool))); | ||
95 | 95 | | |||
96 | mAdvanced = new KAdvancedConfig(false, mConfig, this); | 96 | mAdvanced = new KAdvancedConfig(false, mConfig, this); | ||
97 | mAdvanced->setObjectName(QLatin1String("KWin Advanced")); | 97 | mAdvanced->setObjectName(QLatin1String("KWin Advanced")); | ||
98 | tab->addTab(mAdvanced, i18n("Adva&nced")); | 98 | tab->addTab(mAdvanced, i18n("Adva&nced")); | ||
99 | connect(mAdvanced, SIGNAL(changed(bool)), this, SLOT(moduleChanged(bool))); | 99 | connect(mAdvanced, SIGNAL(changed(bool)), this, SLOT(moduleChanged(bool))); | ||
▲ Show 20 Lines • Show All 125 Lines • ▼ Show 20 Line(s) | |||||
225 | 225 | | |||
226 | } | 226 | } | ||
227 | 227 | | |||
228 | 228 | | |||
229 | void KActionsOptions::defaults() | 229 | void KActionsOptions::defaults() | ||
230 | { | 230 | { | ||
231 | mTitleBarActions->defaults(); | 231 | mTitleBarActions->defaults(); | ||
232 | mWindowActions->defaults(); | 232 | mWindowActions->defaults(); | ||
233 | | ||||
234 | emit defaulted(true); | ||||
233 | } | 235 | } | ||
234 | 236 | | |||
235 | void KActionsOptions::moduleChanged(bool state) | 237 | void KActionsOptions::moduleChanged(bool state) | ||
236 | { | 238 | { | ||
237 | emit KCModule::changed(state); | 239 | emit KCModule::changed(state); | ||
238 | } | 240 | } | ||
239 | 241 | | |||
240 | K_PLUGIN_FACTORY_DEFINITION(KWinOptionsFactory, | 242 | K_PLUGIN_FACTORY_DEFINITION(KWinOptionsFactory, | ||
Show All 9 Lines |