summaryrefslogtreecommitdiffstats
path: root/client/config
diff options
context:
space:
mode:
Diffstat (limited to 'client/config')
-rw-r--r--client/config/configdialog.ui27
-rw-r--r--client/config/deKoratorconfig.cpp36
2 files changed, 38 insertions, 25 deletions
diff --git a/client/config/configdialog.ui b/client/config/configdialog.ui
index 3de1a43..07997a7 100644
--- a/client/config/configdialog.ui
+++ b/client/config/configdialog.ui
@@ -8,8 +8,8 @@
<rect>
<x>0</x>
<y>0</y>
- <width>471</width>
- <height>525</height>
+ <width>481</width>
+ <height>568</height>
</rect>
</property>
<property name="caption">
@@ -39,7 +39,7 @@
<cstring>generalbox</cstring>
</property>
<property name="frameShape">
- <enum>GroupBoxPanel</enum>
+ <enum>NoFrame</enum>
</property>
<property name="frameShadow">
<enum>Sunken</enum>
@@ -509,11 +509,22 @@
<property name="title">
<string>Colors</string>
</property>
- <vbox>
+ <grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="TQLayoutWidget">
+ <widget class="TQCheckBox" row="0" column="0">
+ <property name="name">
+ <cstring>transparencyChkBox</cstring>
+ </property>
+ <property name="text">
+ <string>Enable transparency</string>
+ </property>
+ <property name="checked">
+ <bool>false</bool>
+ </property>
+ </widget>
+ <widget class="TQLayoutWidget" row="1" column="0">
<property name="name">
<cstring>layout19</cstring>
</property>
@@ -581,7 +592,7 @@
</widget>
</hbox>
</widget>
- </vbox>
+ </grid>
</widget>
<widget class="TQButtonGroup">
<property name="name">
@@ -1943,8 +1954,6 @@ Email: &lt;a href="mailto:moty.rahamim@gmail.com"&gt;&lt;font color="#ff0000"&gt
</widget>
</vbox>
</widget>
-<customwidgets>
-</customwidgets>
<connections>
<connection>
<sender>useMasks_Chkbox</sender>
@@ -2085,7 +2094,6 @@ Email: &lt;a href="mailto:moty.rahamim@gmail.com"&gt;&lt;font color="#ff0000"&gt
<slot>setEnabled(bool)</slot>
</connection>
</connections>
-<layoutdefaults spacing="6" margin="11"/>
<includes>
<include location="global" impldecl="in implementation">kactivelabel.h</include>
<include location="global" impldecl="in implementation">kcolorbutton.h</include>
@@ -2094,4 +2102,5 @@ Email: &lt;a href="mailto:moty.rahamim@gmail.com"&gt;&lt;font color="#ff0000"&gt
<include location="global" impldecl="in implementation">kurlrequester.h</include>
<include location="global" impldecl="in implementation">tdelistview.h</include>
</includes>
+<layoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/client/config/deKoratorconfig.cpp b/client/config/deKoratorconfig.cpp
index 9543688..1bd5257 100644
--- a/client/config/deKoratorconfig.cpp
+++ b/client/config/deKoratorconfig.cpp
@@ -102,6 +102,7 @@ DeKoratorConfig::DeKoratorConfig( TDEConfig* config, TQWidget* parent )
// colors
+ connect( dialog_->transparencyChkBox, TQ_SIGNAL( clicked() ), TQ_SIGNAL( changed() ) );
connect( dialog_->colorizeActFramesChkBox, TQ_SIGNAL( clicked() ), TQ_SIGNAL( changed() ) );
connect( dialog_->colorizeActButtonsChkBox, TQ_SIGNAL( clicked() ), TQ_SIGNAL( changed() ) );
connect( dialog_->colorizeInActFramesChkBox, TQ_SIGNAL( clicked() ), TQ_SIGNAL( changed() ) );
@@ -193,13 +194,13 @@ void DeKoratorConfig::load( TDEConfig* )
TQString value = config_->readEntry( "TitleAlignment", "AlignHCenter" );
TQRadioButton *button = ( TQRadioButton* ) dialog_->titlealign->child( value );
- if ( button ) button->setChecked( TRUE );
- dialog_->useMenuImageChkBox->setChecked( config_->readBoolEntry( "UseMenuImage", FALSE ) );
- dialog_->ignoreAppIcnCol->setChecked( config_->readBoolEntry( "IgnoreAppIconCol", FALSE ) );
- dialog_->dblClkCloseChkBox->setChecked( config_->readBoolEntry( "DblClkClose", FALSE ) );
- dialog_->showBtmBorderChkBox->setChecked( config_->readBoolEntry( "ShowBtmBorder", FALSE ) );
+ if ( button ) button->setChecked( true );
+ dialog_->useMenuImageChkBox->setChecked( config_->readBoolEntry( "UseMenuImage", false ) );
+ dialog_->ignoreAppIcnCol->setChecked( config_->readBoolEntry( "IgnoreAppIconCol", false ) );
+ dialog_->dblClkCloseChkBox->setChecked( config_->readBoolEntry( "DblClkClose", false ) );
+ dialog_->showBtmBorderChkBox->setChecked( config_->readBoolEntry( "ShowBtmBorder", false ) );
TQColor color = TQColor( 50, 50, 50 );
- dialog_->useShdtextChkBox->setChecked( config_->readBoolEntry( "UseShdtext", TRUE ) );
+ dialog_->useShdtextChkBox->setChecked( config_->readBoolEntry( "UseShdtext", true ) );
dialog_->activeShdtextXSpinBox->setValue( config_->readNumEntry( "ActiveShdtextX", 1 ) );
dialog_->activeShdtextYSpinBox->setValue( config_->readNumEntry( "ActiveShdtextY", 1 ) );
dialog_->activeShdColBtn->setColor( config_->readColorEntry( "ActiveShadowColor", &color ) );
@@ -213,16 +214,17 @@ void DeKoratorConfig::load( TDEConfig* )
// colors
config_->setGroup( "COLORS" );
- dialog_->colorizeActFramesChkBox->setChecked( config_->readBoolEntry( "ColorizeActFrames", FALSE ) );
- dialog_->colorizeActButtonsChkBox->setChecked( config_->readBoolEntry( "ColorizeActButtons", FALSE ) );
- dialog_->colorizeInActFramesChkBox->setChecked( config_->readBoolEntry( "ColorizeInActFrames", FALSE ) );
- dialog_->colorizeInActButtonsChkBox->setChecked( config_->readBoolEntry( "ColorizeInActButtons", FALSE ) );
- dialog_->useAnimChkBox->setChecked( config_->readBoolEntry( "UseAnimation", FALSE ) );
+ dialog_->transparencyChkBox->setChecked( config_->readBoolEntry( "Transparency", false ) );
+ dialog_->colorizeActFramesChkBox->setChecked( config_->readBoolEntry( "ColorizeActFrames", false ) );
+ dialog_->colorizeActButtonsChkBox->setChecked( config_->readBoolEntry( "ColorizeActButtons", false ) );
+ dialog_->colorizeInActFramesChkBox->setChecked( config_->readBoolEntry( "ColorizeInActFrames", false ) );
+ dialog_->colorizeInActButtonsChkBox->setChecked( config_->readBoolEntry( "ColorizeInActButtons", false ) );
+ dialog_->useAnimChkBox->setChecked( config_->readBoolEntry( "UseAnimation", false ) );
dialog_->animateEfeectsCombo->setCurrentText( config_->readEntry( "AnimationType", "Intensity" ) );
dialog_->stepsSpinBox->setValue( config_->readNumEntry( "AnimSteps", 5 ) );
dialog_->intervalSpinBox->setValue( config_->readNumEntry( "AnimInterval", 30 ) );
- dialog_->KeepAnimateChkBox->setChecked( config_->readBoolEntry( "KeepAnimating", FALSE ) );
+ dialog_->KeepAnimateChkBox->setChecked( config_->readBoolEntry( "KeepAnimating", false ) );
dialog_->activeHighlightClrBtn->setColor( config_->readColorEntry( "ActiveHighlightColor", &color ) );
dialog_->inActiveHighlightClrBtn->setColor( config_->readColorEntry( "InActiveHighlightColor", &color ) );
@@ -235,9 +237,9 @@ void DeKoratorConfig::load( TDEConfig* )
// buttons
config_->setGroup( "BUTTONS" );
- dialog_->useCusBtnClrChkBox->setChecked( config_->readBoolEntry( "UseCustomButtonsColors", FALSE ) );
- dialog_->cusColActBtnChkBox->setChecked( config_->readBoolEntry( "customColorsActiveButtons", FALSE ) );
- dialog_->cusColInActBtnChkBox->setChecked( config_->readBoolEntry( "customColorsInActiveButtons", FALSE ) );
+ dialog_->useCusBtnClrChkBox->setChecked( config_->readBoolEntry( "UseCustomButtonsColors", false ) );
+ dialog_->cusColActBtnChkBox->setChecked( config_->readBoolEntry( "customColorsActiveButtons", false ) );
+ dialog_->cusColInActBtnChkBox->setChecked( config_->readBoolEntry( "customColorsInActiveButtons", false ) );
dialog_->closeClrBtn->setColor( config_->readColorEntry( "CloseButtonColor", &color ) );
dialog_->minClrBtn->setColor( config_->readColorEntry( "MinButtonColor", &color ) );
dialog_->maxClrBtn->setColor( config_->readColorEntry( "MaxButtonColor", &color ) );
@@ -262,7 +264,7 @@ void DeKoratorConfig::load( TDEConfig* )
dialog_->framesPathKurl->setURL( config_->readEntry( "FramesPath", (deftheme.isNull() ? "" : deftheme + "deco") ) );
dialog_->buttonsPathKurl->setURL( config_->readEntry( "ButtonsPath", (deftheme.isNull() ? "" : deftheme + "buttons") ) );
- dialog_->useMasks_Chkbox->setChecked( config_->readBoolEntry( "UseMasks", TRUE ) );
+ dialog_->useMasks_Chkbox->setChecked( config_->readBoolEntry( "UseMasks", true ) );
dialog_->masksPathKurl->setURL( config_->readEntry( "MasksPath", (deftheme.isNull() ? "" : deftheme + "masks") ) );
// Find and preselect current theme
@@ -304,6 +306,7 @@ void DeKoratorConfig::save( TDEConfig* )
// colors
config_->setGroup( "COLORS" );
+ config_->writeEntry( "Transparency", dialog_->transparencyChkBox->isChecked() );
config_->writeEntry( "ColorizeActFrames", dialog_->colorizeActFramesChkBox->isChecked() );
config_->writeEntry( "ColorizeActButtons", dialog_->colorizeActButtonsChkBox->isChecked() );
config_->writeEntry( "ColorizeInActFrames", dialog_->colorizeInActFramesChkBox->isChecked() );
@@ -385,6 +388,7 @@ void DeKoratorConfig::defaults()
dialog_->btnShiftYSpinBox->setValue( 0 );
// colors
+ dialog_->transparencyChkBox->setChecked( FALSE );
dialog_->colorizeActFramesChkBox->setChecked( FALSE );
dialog_->colorizeActButtonsChkBox->setChecked( FALSE );
dialog_->colorizeInActFramesChkBox->setChecked( FALSE );