diff options
author | Mavridis Philippe <mavridisf@gmail.com> | 2023-06-28 12:44:04 +0300 |
---|---|---|
committer | Mavridis Philippe <mavridisf@gmail.com> | 2023-07-04 15:28:32 +0300 |
commit | 93469d251f9135aa48715afc28a035dfebce8d2c (patch) | |
tree | f1be10aa72ff4afac61034e4db7281f3d22380a4 /twin/kcmtwin/twinoptions/main.cpp | |
parent | e4d35cab44f278b3f3a82906a55c06a150da0ae5 (diff) | |
download | tdebase-93469d251f9135aa48715afc28a035dfebce8d2c.tar.gz tdebase-93469d251f9135aa48715afc28a035dfebce8d2c.zip |
kcmtwin: Move Active Borders options into a new tab
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
(cherry picked from commit 631172e074ee702ff468b81e3a5c956515a2061a)
Diffstat (limited to 'twin/kcmtwin/twinoptions/main.cpp')
-rw-r--r-- | twin/kcmtwin/twinoptions/main.cpp | 25 |
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 |