|
|
@ -29,6 +29,7 @@
|
|
|
|
#include <tqgrid.h>
|
|
|
|
#include <tqgrid.h>
|
|
|
|
#include <tqvgroupbox.h>
|
|
|
|
#include <tqvgroupbox.h>
|
|
|
|
#include <tqradiobutton.h>
|
|
|
|
#include <tqradiobutton.h>
|
|
|
|
|
|
|
|
#include <tqcombobox.h>
|
|
|
|
|
|
|
|
|
|
|
|
#include <kiconloader.h>
|
|
|
|
#include <kiconloader.h>
|
|
|
|
#include <kcolorbutton.h>
|
|
|
|
#include <kcolorbutton.h>
|
|
|
@ -205,6 +206,39 @@ KomposePreferences::KomposePreferences()
|
|
|
|
|
|
|
|
|
|
|
|
page2Layout->addWidget(windowTitleGroupBox);
|
|
|
|
page2Layout->addWidget(windowTitleGroupBox);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// see komposetaskwidget.cpp:207
|
|
|
|
|
|
|
|
TQGroupBox *windowBorderGroupBox = new TQGroupBox( 2, Vertical, i18n("Window Border"), page2 );
|
|
|
|
|
|
|
|
TQGrid *gridWindowBorderOpts = new TQGrid(2, windowBorderGroupBox);
|
|
|
|
|
|
|
|
windowBorderActiveColorLabel = new TQLabel(i18n("Active border color:"), gridWindowBorderOpts);
|
|
|
|
|
|
|
|
windowBorderActiveColor = new KColorButton(TQt::black, gridWindowBorderOpts);
|
|
|
|
|
|
|
|
windowBorderActiveStyleLabel = new TQLabel(i18n("Active border style:"), gridWindowBorderOpts);
|
|
|
|
|
|
|
|
TQHBox *hBoxWindowBorderActiveStyle = new TQHBox(gridWindowBorderOpts);
|
|
|
|
|
|
|
|
windowBorderActiveWidth = new TQSpinBox(1, 255, 1, hBoxWindowBorderActiveStyle);
|
|
|
|
|
|
|
|
windowBorderActiveWidth->setSuffix("px");
|
|
|
|
|
|
|
|
windowBorderActiveStyle = new TQComboBox(false, hBoxWindowBorderActiveStyle);
|
|
|
|
|
|
|
|
windowBorderActiveStyle->insertItem(i18n("None"));
|
|
|
|
|
|
|
|
windowBorderActiveStyle->insertItem(i18n("Solid"));
|
|
|
|
|
|
|
|
windowBorderActiveStyle->insertItem(i18n("Dashed"));
|
|
|
|
|
|
|
|
windowBorderActiveStyle->insertItem(i18n("Dotted"));
|
|
|
|
|
|
|
|
windowBorderActiveStyle->insertItem(i18n("Dash-Dot"));
|
|
|
|
|
|
|
|
windowBorderActiveStyle->insertItem(i18n("Dash-Dot-Dot"));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
windowBorderInactiveColorLabel = new TQLabel(i18n("Inctive border color:"), gridWindowBorderOpts);
|
|
|
|
|
|
|
|
windowBorderInactiveColor = new KColorButton(TQt::gray, gridWindowBorderOpts);
|
|
|
|
|
|
|
|
windowBorderInactiveStyleLabel = new TQLabel(i18n("Inactive border style:"), gridWindowBorderOpts);
|
|
|
|
|
|
|
|
TQHBox *hBoxWindowBorderInactiveStyle = new TQHBox(gridWindowBorderOpts);
|
|
|
|
|
|
|
|
windowBorderInactiveWidth = new TQSpinBox(1, 255, 1, hBoxWindowBorderInactiveStyle);
|
|
|
|
|
|
|
|
windowBorderInactiveWidth->setSuffix("px");
|
|
|
|
|
|
|
|
windowBorderInactiveStyle = new TQComboBox(false, hBoxWindowBorderInactiveStyle);
|
|
|
|
|
|
|
|
windowBorderInactiveStyle->insertItem(i18n("None"));
|
|
|
|
|
|
|
|
windowBorderInactiveStyle->insertItem(i18n("Solid"));
|
|
|
|
|
|
|
|
windowBorderInactiveStyle->insertItem(i18n("Dashed"));
|
|
|
|
|
|
|
|
windowBorderInactiveStyle->insertItem(i18n("Dotted"));
|
|
|
|
|
|
|
|
windowBorderInactiveStyle->insertItem(i18n("Dash-Dot"));
|
|
|
|
|
|
|
|
windowBorderInactiveStyle->insertItem(i18n("Dash-Dot-Dot"));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
page2Layout->addWidget(windowBorderGroupBox);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TQGroupBox *iconGroupBox = new TQGroupBox( 3, Vertical, i18n("Task Icons"), page2 );
|
|
|
|
TQGroupBox *iconGroupBox = new TQGroupBox( 3, Vertical, i18n("Task Icons"), page2 );
|
|
|
@ -322,6 +356,13 @@ void KomposePreferences::fillPages()
|
|
|
|
showWindowTitleShadow->setEnabled( KomposeSettings::instance()->getShowWindowTitles() );
|
|
|
|
showWindowTitleShadow->setEnabled( KomposeSettings::instance()->getShowWindowTitles() );
|
|
|
|
windowTitleFontShadowColor->setEnabled( KomposeSettings::instance()->getShowWindowTitles() || KomposeSettings::instance()->getShowWindowTitleShadow() );
|
|
|
|
windowTitleFontShadowColor->setEnabled( KomposeSettings::instance()->getShowWindowTitles() || KomposeSettings::instance()->getShowWindowTitleShadow() );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
windowBorderActiveColor->setColor( KomposeSettings::instance()->getWindowBorderActiveColor() );
|
|
|
|
|
|
|
|
windowBorderInactiveColor->setColor( KomposeSettings::instance()->getWindowBorderInactiveColor() );
|
|
|
|
|
|
|
|
windowBorderActiveWidth->setValue( KomposeSettings::instance()->getWindowBorderActiveWidth() );
|
|
|
|
|
|
|
|
windowBorderInactiveWidth->setValue( KomposeSettings::instance()->getWindowBorderInactiveWidth() );
|
|
|
|
|
|
|
|
windowBorderActiveStyle->setCurrentItem( KomposeSettings::instance()->getWindowBorderActiveStyle() );
|
|
|
|
|
|
|
|
windowBorderInactiveStyle->setCurrentItem( KomposeSettings::instance()->getWindowBorderInactiveStyle() );
|
|
|
|
|
|
|
|
|
|
|
|
desktopTitleFont = new TQFont(KomposeSettings::instance()->getDesktopTitleFont());
|
|
|
|
desktopTitleFont = new TQFont(KomposeSettings::instance()->getDesktopTitleFont());
|
|
|
|
desktopTitleFontColor->setColor( KomposeSettings::instance()->getDesktopTitleFontColor() );
|
|
|
|
desktopTitleFontColor->setColor( KomposeSettings::instance()->getDesktopTitleFontColor() );
|
|
|
|
desktopTitleFontHighlightColor->setColor( KomposeSettings::instance()->getDesktopTitleFontHighlightColor() );
|
|
|
|
desktopTitleFontHighlightColor->setColor( KomposeSettings::instance()->getDesktopTitleFontHighlightColor() );
|
|
|
@ -377,6 +418,13 @@ void KomposePreferences::slotApply()
|
|
|
|
KomposeSettings::instance()->setWindowTitleFontShadowColor( windowTitleFontShadowColor->color() );
|
|
|
|
KomposeSettings::instance()->setWindowTitleFontShadowColor( windowTitleFontShadowColor->color() );
|
|
|
|
KomposeSettings::instance()->setShowWindowTitleShadow( showWindowTitleShadow->isChecked() );
|
|
|
|
KomposeSettings::instance()->setShowWindowTitleShadow( showWindowTitleShadow->isChecked() );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
KomposeSettings::instance()->setWindowBorderActiveColor( windowBorderActiveColor->color() );
|
|
|
|
|
|
|
|
KomposeSettings::instance()->setWindowBorderInactiveColor( windowBorderInactiveColor->color() );
|
|
|
|
|
|
|
|
KomposeSettings::instance()->setWindowBorderActiveWidth( windowBorderActiveWidth->value() );
|
|
|
|
|
|
|
|
KomposeSettings::instance()->setWindowBorderInactiveWidth( windowBorderInactiveWidth->value() );
|
|
|
|
|
|
|
|
KomposeSettings::instance()->setWindowBorderActiveStyle( windowBorderActiveStyle->currentItem() );
|
|
|
|
|
|
|
|
KomposeSettings::instance()->setWindowBorderInactiveStyle( windowBorderInactiveStyle->currentItem() );
|
|
|
|
|
|
|
|
|
|
|
|
KomposeSettings::instance()->setDesktopTitleFont( *desktopTitleFont );
|
|
|
|
KomposeSettings::instance()->setDesktopTitleFont( *desktopTitleFont );
|
|
|
|
KomposeSettings::instance()->setDesktopTitleFontColor( desktopTitleFontColor->color() );
|
|
|
|
KomposeSettings::instance()->setDesktopTitleFontColor( desktopTitleFontColor->color() );
|
|
|
|
KomposeSettings::instance()->setDesktopTitleFontHighlightColor( desktopTitleFontHighlightColor->color() );
|
|
|
|
KomposeSettings::instance()->setDesktopTitleFontHighlightColor( desktopTitleFontHighlightColor->color() );
|
|
|
|