From abda43c9c92a32bdcbbba139b32c81d5d6b71291 Mon Sep 17 00:00:00 2001 From: Hugo Pereira Da Costa Date: Mon, 7 Dec 2009 23:32:24 +0000 Subject: [PATCH] removed the 'glow active window' checkbox and move it to the active window glow 'groupbox'. This allows one to reduce the size of the configuration dialog, leaving more space to the preview. No string change svn path=/trunk/KDE/kdebase/workspace/; revision=1060053 --- clients/oxygen/config/config.cpp | 4 +- .../oxygen/config/oxygenconfigurationui.cpp | 3 - .../oxygen/config/oxygenconfigurationui.ui | 62 ++++++++++--------- .../config/oxygenexceptionlistwidget.ui | 36 +++++++---- .../config/oxygenshadowconfigurationui.ui | 6 ++ 5 files changed, 64 insertions(+), 47 deletions(-) diff --git a/clients/oxygen/config/config.cpp b/clients/oxygen/config/config.cpp index 3d0146b8cc..54e2e2619f 100644 --- a/clients/oxygen/config/config.cpp +++ b/clients/oxygen/config/config.cpp @@ -128,7 +128,7 @@ namespace Oxygen configurationGroup.writeEntry( OxygenConfig::DRAW_SEPARATOR, userInterface_->ui.drawSeparator->isChecked() ); configurationGroup.writeEntry( OxygenConfig::DRAW_TITLE_OUTLINE, userInterface_->ui.titleOutline->isChecked() ); - configurationGroup.writeEntry( OxygenConfig::USE_OXYGEN_SHADOWS, userInterface_->ui.useOxygenShadows->isChecked() ); + configurationGroup.writeEntry( OxygenConfig::USE_OXYGEN_SHADOWS, userInterface_->shadowConfigurations[0]->isChecked() ); configurationGroup.writeEntry( OxygenConfig::TABS_ENABLED, userInterface_->ui.tabsEnabled->isChecked() ); // write exceptions @@ -191,7 +191,7 @@ namespace Oxygen userInterface_->ui.drawSeparator->setChecked( configuration.drawSeparator() ); userInterface_->ui.titleOutline->setChecked( configuration.drawTitleOutline() ); - userInterface_->ui.useOxygenShadows->setChecked( configuration.useOxygenShadows() ); + userInterface_->shadowConfigurations[0]->setChecked( configuration.useOxygenShadows() ); userInterface_->ui.tabsEnabled->setChecked( configuration.tabsEnabled() ); } diff --git a/clients/oxygen/config/oxygenconfigurationui.cpp b/clients/oxygen/config/oxygenconfigurationui.cpp index 2a25ab00a3..64945a54b7 100644 --- a/clients/oxygen/config/oxygenconfigurationui.cpp +++ b/clients/oxygen/config/oxygenconfigurationui.cpp @@ -95,11 +95,9 @@ namespace Oxygen // shadows shadowConfigurations.push_back( ui.activeShadowConfiguration ); shadowConfigurations.push_back( ui.inactiveShadowConfiguration ); - ui.activeShadowConfiguration->setEnabled( false ); // connections connect( ui.titleOutline, SIGNAL(toggled( bool )), ui.drawSeparator, SLOT( setDisabled( bool ) ) ); - connect( ui.useOxygenShadows, SIGNAL(toggled( bool )), shadowConfigurations[0], SLOT( setEnabled( bool ) ) ); connect( shadowConfigurations[0], SIGNAL( changed() ), SIGNAL( changed() ) ); connect( shadowConfigurations[1], SIGNAL( changed() ), SIGNAL( changed() ) ); @@ -112,7 +110,6 @@ namespace Oxygen connect( ui.tabsEnabled, SIGNAL(clicked()), SIGNAL(changed()) ); connect( ui.drawSeparator, SIGNAL(clicked()), SIGNAL(changed()) ); connect( ui.titleOutline, SIGNAL(clicked()), SIGNAL(changed()) ); - connect( ui.useOxygenShadows, SIGNAL(clicked()), SIGNAL(changed()) ); connect( ui.exceptions, SIGNAL(changed()), SIGNAL(changed()) ); } diff --git a/clients/oxygen/config/oxygenconfigurationui.ui b/clients/oxygen/config/oxygenconfigurationui.ui index 7590e158a4..e2244fc0ad 100644 --- a/clients/oxygen/config/oxygenconfigurationui.ui +++ b/clients/oxygen/config/oxygenconfigurationui.ui @@ -7,9 +7,15 @@ 0 0 500 - 292 + 231 + + + 0 + 0 + + @@ -76,7 +82,14 @@ - + + + + Enable window grouping + + + + Qt::Vertical @@ -89,13 +102,6 @@ - - - - Enable window grouping - - - @@ -139,19 +145,6 @@ - - - - Qt::Vertical - - - - 20 - 40 - - - - @@ -166,6 +159,19 @@ + + + + Qt::Vertical + + + + 20 + 40 + + + + @@ -174,24 +180,20 @@ - - - Glow active window - - - - Window Drop-Down Shadow - + Active Window Glow + + true + diff --git a/clients/oxygen/config/oxygenexceptionlistwidget.ui b/clients/oxygen/config/oxygenexceptionlistwidget.ui index 88b9bb573f..66ecf62ad5 100644 --- a/clients/oxygen/config/oxygenexceptionlistwidget.ui +++ b/clients/oxygen/config/oxygenexceptionlistwidget.ui @@ -7,9 +7,21 @@ 0 0 473 - 247 + 100 + + + 0 + 0 + + + + + 0 + 0 + + @@ -46,21 +58,21 @@ - - - - Qt::Vertical + + + + + 0 + 0 + - + - 20 - 40 + 100 + 100 - - - - + diff --git a/clients/oxygen/config/oxygenshadowconfigurationui.ui b/clients/oxygen/config/oxygenshadowconfigurationui.ui index baf533e12d..dfc35665ec 100644 --- a/clients/oxygen/config/oxygenshadowconfigurationui.ui +++ b/clients/oxygen/config/oxygenshadowconfigurationui.ui @@ -10,6 +10,12 @@ 118 + + + 0 + 0 + +