summaryrefslogtreecommitdiffstats
path: root/twin/kcmtwin/twinoptions/main.cpp
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2023-06-28 12:44:04 +0300
committerMavridis Philippe <mavridisf@gmail.com>2023-07-04 15:26:04 +0300
commit631172e074ee702ff468b81e3a5c956515a2061a (patch)
treee52693683e27857b6e594d225a8c21b2a579d6a2 /twin/kcmtwin/twinoptions/main.cpp
parent5b1934dd5dc3245fcfd4a771fd45ed30dcaace54 (diff)
downloadtdebase-631172e074ee702ff468b81e3a5c956515a2061a.tar.gz
tdebase-631172e074ee702ff468b81e3a5c956515a2061a.zip
kcmtwin: Move Active Borders options into a new tab
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'twin/kcmtwin/twinoptions/main.cpp')
-rw-r--r--twin/kcmtwin/twinoptions/main.cpp25
1 files changed, 22 insertions, 3 deletions
diff --git a/twin/kcmtwin/twinoptions/main.cpp b/twin/kcmtwin/twinoptions/main.cpp
index 8ed52b067..e55d5a15f 100644
--- a/twin/kcmtwin/twinoptions/main.cpp
+++ b/twin/kcmtwin/twinoptions/main.cpp
@@ -59,6 +59,13 @@ extern "C"
return new KMovingConfig(true, c, parent, name);
}
+ KDE_EXPORT TDECModule *create_twinaborders(TQWidget *parent, const char *name)
+ {
+ TDEGlobal::locale()->insertCatalogue("kcmkwm");
+ TDEConfig *c = new TDEConfig("twinrc", false, true);
+ return new KActiveBorderConfig(true, c, parent, name);
+ }
+
KDE_EXPORT TDECModule *create_twinadvanced(TQWidget *parent, const char *name)
{
//CT there's need for decision: kwm or twin?
@@ -66,7 +73,7 @@ extern "C"
TDEConfig *c = new TDEConfig("twinrc", false, true);
return new KAdvancedConfig(true, c, parent, name);
}
-
+
KDE_EXPORT TDECModule *create_twintranslucency(TQWidget *parent, const char *name)
{
//CT there's need for decision: kwm or twin?
@@ -112,6 +119,11 @@ KWinOptions::KWinOptions(TQWidget *parent, const char *name)
tab->addTab(mMoving, i18n("&Moving"));
connect(mMoving, TQT_SIGNAL(changed(bool)), this, TQT_SLOT(moduleChanged(bool)));
+ mABorders = new KActiveBorderConfig(false, mConfig, this, "TWin Active Borders");
+ mABorders->layout()->setMargin(KDialog::marginHint());
+ tab->addTab(mABorders, i18n("Active &Borders"));
+ connect(mABorders, TQT_SIGNAL(changed(bool)), this, TQT_SLOT(moduleChanged(bool)));
+
mAdvanced = new KAdvancedConfig(false, mConfig, this, "TWin Advanced");
mAdvanced->layout()->setMargin( KDialog::marginHint() );
tab->addTab(mAdvanced, i18n("Ad&vanced"));
@@ -121,7 +133,7 @@ KWinOptions::KWinOptions(TQWidget *parent, const char *name)
mTranslucency->layout()->setMargin( KDialog::marginHint() );
tab->addTab(mTranslucency, i18n("&Translucency"));
connect(mTranslucency, TQT_SIGNAL(changed(bool)), this, TQT_SLOT(moduleChanged(bool)));
-
+
TDEAboutData *about =
new TDEAboutData(I18N_NOOP("kcmtwinoptions"), I18N_NOOP("Window Behavior Configuration Module"),
0, 0, TDEAboutData::License_GPL,
@@ -151,6 +163,7 @@ void KWinOptions::load()
mTitleBarActions->load();
mWindowActions->load();
mMoving->load();
+ mABorders->load();
mAdvanced->load();
mTranslucency->load();
emit TDECModule::changed( false );
@@ -163,6 +176,7 @@ void KWinOptions::save()
mTitleBarActions->save();
mWindowActions->save();
mMoving->save();
+ mABorders->save();
mAdvanced->save();
mTranslucency->save();
@@ -181,6 +195,7 @@ void KWinOptions::defaults()
mTitleBarActions->defaults();
mWindowActions->defaults();
mMoving->defaults();
+ mABorders->defaults();
mAdvanced->defaults();
mTranslucency->defaults();
}
@@ -222,10 +237,14 @@ TQString KWinOptions::handbookSection() const
}
else if (index == 4)
{
- return "advanced";
+ return "active-borders";
}
else if (index == 5)
{
+ return "advanced";
+ }
+ else if (index == 6)
+ {
return "translucency";
}
else