[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdebase/kwin/kcmkwin/kwinoptions
From: Thomas Lübking <thomas.luebking () web ! de>
Date: 2005-01-28 23:13:32
Message-ID: 20050128231332.72F3B1BB81 () office ! kde ! org
[Download RAW message or body]
CVS commit by luebking:
added option to remove shadows of moving windows, fixes crash of mcontrol module \
saves if kompmg is not available
M +15 -3 windows.cpp 1.141
M +2 -0 windows.h 1.57
--- kdebase/kwin/kcmkwin/kwinoptions/windows.cpp #1.140:1.141
@@ -1177,5 +1177,6 @@ KTranslucencyConfig::KTranslucencyConfig
resetKompmgr_ = FALSE;
QVBoxLayout *lay = new QVBoxLayout (this);
- if (!kompmgrAvailable()){
+ kompmgrAvailable_ = kompmgrAvailable();
+ if (!kompmgrAvailable_){
KActiveLabel *label = new KActiveLabel(i18n("<qt><b>It seems that alpha channel \
support is not available.</b><br><br>" "Please make sure you have "
@@ -1287,4 +1288,6 @@ KTranslucencyConfig::KTranslucencyConfig
gLay2->addWidget(shadowColor,5,1);
gLay2->setColStretch(1,1);
+ removeShadowsOnMove = new QCheckBox(i18n("Remove shadows on move"),sGroup);
+ vLay2->addWidget(removeShadowsOnMove);
removeShadowsOnResize = new QCheckBox(i18n("Remove shadows on resize"),sGroup);
vLay2->addWidget(removeShadowsOnResize);
@@ -1331,4 +1334,5 @@ KTranslucencyConfig::KTranslucencyConfig
connect(useShadows, SIGNAL(toggled(bool)), SLOT(changed()));
connect(removeShadowsOnResize, SIGNAL(toggled(bool)), SLOT(changed()));
+ connect(removeShadowsOnMove, SIGNAL(toggled(bool)), SLOT(changed()));
connect(activeWindowOpacity, SIGNAL(valueChanged(int)), SLOT(changed()));
@@ -1383,4 +1387,6 @@ void KTranslucencyConfig::load( void )
{
+ if (!kompmgrAvailable_)
+ return;
config->setGroup( "Notification Messages" );
useTranslucency->setChecked(config->readBoolEntry("UseTranslucency",false));
@@ -1390,5 +1396,6 @@ void KTranslucencyConfig::load( void )
inactiveWindowTransparency->setChecked(config->readBoolEntry("TranslucentInactiveWindows",true));
movingWindowTransparency->setChecked(config->readBoolEntry("TranslucentMovingWindows",false));
- removeShadowsOnResize->setChecked(config->readBoolEntry("RemoveShadowsOnResize",TRUE));
+ removeShadowsOnMove->setChecked(config->readBoolEntry("RemoveShadowsOnMove",FALSE));
+ removeShadowsOnResize->setChecked(config->readBoolEntry("RemoveShadowsOnResize",FALSE));
dockWindowTransparency->setChecked(config->readBoolEntry("TranslucentDocks",true));
keepAboveAsActive->setChecked(config->readBoolEntry("TreatKeepAboveAsActive",true));
@@ -1442,5 +1449,6 @@ void KTranslucencyConfig::load( void )
void KTranslucencyConfig::save( void )
{
-
+ if (!kompmgrAvailable_)
+ return;
config->setGroup( "Notification Messages" );
config->writeEntry("UseTranslucency",useTranslucency->isChecked());
@@ -1464,4 +1472,5 @@ void KTranslucencyConfig::save( void )
config->writeEntry("ActiveWindowShadowSize",(int)(100.0*activeWindowShadowSize->value()/inactiveWindowShadowSize->value()));
config->writeEntry("InctiveWindowShadowSize",100);
+ config->writeEntry("RemoveShadowsOnMove",removeShadowsOnMove->isChecked());
config->writeEntry("RemoveShadowsOnResize",removeShadowsOnResize->isChecked());
config->writeEntry("ResetKompmgr",resetKompmgr_);
@@ -1501,4 +1510,6 @@ void KTranslucencyConfig::save( void )
void KTranslucencyConfig::defaults()
{
+ if (!kompmgrAvailable_)
+ return;
useTranslucency->setChecked(false);
activeWindowTransparency->setChecked(false);
@@ -1525,4 +1536,5 @@ void KTranslucencyConfig::defaults()
dockWindowOpacity->setEnabled(true);
useShadows->setChecked(TRUE);
+ removeShadowsOnMove->setChecked(FALSE);
removeShadowsOnResize->setChecked(FALSE);
shadowColor->setColor(Qt::black);
--- kdebase/kwin/kcmkwin/kwinoptions/windows.h #1.56:1.57
@@ -252,4 +252,5 @@ private:
QCheckBox *useShadows;
QCheckBox *removeShadowsOnResize;
+ QCheckBox *removeShadowsOnMove;
QGroupBox *sGroup;
// QPushButton *xcompmgrButton;
@@ -271,4 +272,5 @@ private:
bool resetKompmgr_;
bool kompmgrAvailable();
+ bool kompmgrAvailable_;
KProcess *kompmgr;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic