dude up the config pages of these puppies. now that they appear on the

first tab of the kcm it became wildly obvious how much TLC they needed.

svn path=/trunk/kdebase/kwin/; revision=234652
icc-effect-5.14.5
Aaron J. Seigo 2003-06-30 08:16:28 +00:00
parent 1d48fada7f
commit ad483c520d
9 changed files with 82 additions and 86 deletions

View File

@ -11,6 +11,7 @@
#include "config.h"
#include <kglobal.h>
#include <qwhatsthis.h>
#include <qvbox.h>
#include <klocale.h>
@ -36,8 +37,7 @@ B2Config::B2Config( KConfig* conf, QWidget* parent )
{
KGlobal::locale()->insertCatalogue("kwin_b2_config");
b2Config = new KConfig("kwinb2rc");
gb = new QGroupBox( 1, Qt::Horizontal,
i18n("Decoration Settings"), parent );
gb = new QVBox( parent );
cbColorBorder = new QCheckBox(
i18n("Draw window frames using &titlebar colors"), gb );
QWhatsThis::add( cbColorBorder,

View File

@ -1,5 +1,5 @@
/*
* $Id:$
* $Id$
*
* This file contains the B2 configuration widget
*
@ -38,7 +38,7 @@ class B2Config: public QObject
private:
KConfig* b2Config;
QCheckBox* cbColorBorder;
QGroupBox* gb;
QWidget* gb;
};
#endif

View File

@ -11,8 +11,10 @@
#include "config.h"
#include <kglobal.h>
#include <qwhatsthis.h>
#include <kdialog.h>
#include <klocale.h>
#include <qpixmap.h>
#include <qvbox.h>
extern "C"
{
@ -33,8 +35,8 @@ KDEDefaultConfig::KDEDefaultConfig( KConfig* conf, QWidget* parent )
{
KGlobal::locale()->insertCatalogue("kwin_default_config");
highcolor = QPixmap::defaultDepth() > 8;
gb = new QGroupBox( 1, Qt::Horizontal,
i18n("Decoration Settings"), parent );
gb = new QVBox( parent );
gb->setSpacing( KDialog::spacingHint() );
cbShowStipple = new QCheckBox( i18n("Draw titlebar &stipple effect"), gb );
QWhatsThis::add( cbShowStipple,
@ -50,15 +52,20 @@ KDEDefaultConfig::KDEDefaultConfig( KConfig* conf, QWidget* parent )
// Only show the gradient checkbox for highcolor displays
if (highcolor)
{
cbUseGradients = new QCheckBox( i18n("Draw gr&adients"), gb );
cbUseGradients = new QCheckBox( i18n("Draw &gradients"), gb );
QWhatsThis::add( cbUseGradients,
i18n("When selected, decorations are drawn with gradients "
"for highcolor displays, otherwise no gradients are drawn.") );
}
// Allow titlebar height customization
gbSlider = new QGroupBox( 1, Qt::Horizontal, i18n("Titlebar Height"), gb );
QHBox *hbSlider = new QHBox( gb );
hbSlider->setSpacing( KDialog::spacingHint() );
QLabel *titlebarLbl = new QLabel(i18n("&Titlebar height:"), hbSlider );
titlebarLbl->setAlignment( Qt::AlignTop );
QVBox *gbSlider = new QVBox( hbSlider );
titleBarSizeSlider = new QSlider(0, 2, 1, 0, QSlider::Horizontal, gbSlider);
titlebarLbl->setBuddy( titleBarSizeSlider );
QWhatsThis::add( titleBarSizeSlider,
i18n("By adjusting this slider, you can modify "
"the height of the titlebar to make room for larger fonts."));

View File

@ -17,6 +17,7 @@
#include <qslider.h>
#include <qhbox.h>
#include <qlabel.h>
#include <qvbox.h>
class KDEDefaultConfig: public QObject
{
@ -44,12 +45,11 @@ class KDEDefaultConfig: public QObject
QCheckBox* cbShowGrabBar;
QCheckBox* cbUseGradients;
QSlider* titleBarSizeSlider;
QGroupBox* gb;
QVBox* gb;
bool highcolor;
QLabel* label1;
QLabel* label2;
QLabel* label3;
QGroupBox* gbSlider;
QHBox* hbox;
};

View File

@ -1,4 +1,4 @@
<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>KeramikConfigUI</class>
<widget class="QWidget">
<property name="name">
@ -8,8 +8,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>470</width>
<height>333</height>
<width>287</width>
<height>102</height>
</rect>
</property>
<property name="caption">
@ -22,72 +22,58 @@
<property name="margin">
<number>0</number>
</property>
<widget class="QGroupBox">
<widget class="QCheckBox">
<property name="name">
<cstring>decorationBox</cstring>
<cstring>showAppIcons</cstring>
</property>
<property name="title">
<string>Decoration Settings</string>
<property name="text">
<string>Display the window &amp;icon in the caption bubble</string>
</property>
<property name="accel">
<string>Alt+I</string>
</property>
<property name="whatsThis" stdset="0">
<string>Check this option if you want the window icon to be displayed in the caption bubble next to the titlebar text.</string>
</property>
</widget>
<widget class="QCheckBox">
<property name="name">
<cstring>smallCaptions</cstring>
</property>
<property name="text">
<string>Draw &amp;small caption bubbles on active windows</string>
</property>
<property name="whatsThis" stdset="0">
<string>Check this option if you want the caption bubble to have the same size on active windows that it has on inactive ones. This option is useful for laptops or low resolution displays where you want maximize the amount of space available to the window contents.</string>
</property>
</widget>
<widget class="QCheckBox">
<property name="name">
<cstring>largeGrabBars</cstring>
</property>
<property name="text">
<string>Draw g&amp;rab bars below windows</string>
</property>
<property name="accel">
<string>Alt+R</string>
</property>
<property name="whatsThis" stdset="0">
<string>Check this option if you want a grab bar to be drawn below windows. When this option is not selected only a thin border will be drawn in its place.</string>
</property>
</widget>
<widget class="QCheckBox">
<property name="name">
<cstring>useShadowedText</cstring>
</property>
<property name="text">
<string>Use shadowed &amp;text</string>
</property>
<property name="accel">
<string>Alt+T</string>
</property>
<property name="whatsThis" stdset="0">
<string>Check this option if you want the titlebar text to have a 3D look with a shadow behind it.</string>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLayoutWidget">
<property name="name">
<cstring>Layout4</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QCheckBox">
<property name="name">
<cstring>showAppIcons</cstring>
</property>
<property name="text">
<string>Display the window &amp;icon in the caption bubble</string>
</property>
<property name="whatsThis" stdset="0">
<string>Check this option if you want the window icon to be displayed in the caption bubble next to the titlebar text.</string>
</property>
</widget>
<widget class="QCheckBox">
<property name="name">
<cstring>smallCaptions</cstring>
</property>
<property name="text">
<string>Draw &amp;small caption bubbles on active windows</string>
</property>
<property name="whatsThis" stdset="0">
<string>Check this option if you want the caption bubble to have the same size on active windows that it has on inactive ones. This option is useful for laptops or low resolution displays where you want maximize the amount of space available to the window contents.</string>
</property>
</widget>
<widget class="QCheckBox">
<property name="name">
<cstring>largeGrabBars</cstring>
</property>
<property name="text">
<string>Draw g&amp;rab bars below windows</string>
</property>
<property name="whatsThis" stdset="0">
<string>Check this option if you want a grab bar to be drawn below windows. When this option is not selected only a thin border will be drawn in its place.</string>
</property>
</widget>
<widget class="QCheckBox">
<property name="name">
<cstring>useShadowedText</cstring>
</property>
<property name="text">
<string>Use shadowed &amp;text</string>
</property>
<property name="whatsThis" stdset="0">
<string>Check this option if you want the titlebar text to have a 3D look with a shadow behind it.</string>
</property>
</widget>
</vbox>
</widget>
</hbox>
</widget>
</vbox>
</widget>

View File

@ -3,8 +3,10 @@
#include <kapplication.h>
#include <kconfig.h>
#include <kdialog.h>
#include <klocale.h>
#include <kglobal.h>
#include <qlayout.h>
#include <qwhatsthis.h>
#include "config.h"
@ -33,16 +35,16 @@ ModernSysConfig::ModernSysConfig(KConfig* conf, QWidget* parent) : QObject(paren
vbox->setSpacing(6);
vbox->setMargin(0);
handleBox = new QGroupBox( 1, Qt::Vertical, i18n("Window Resize Handle"), mainw);
handleBox->setSizePolicy(QSizePolicy(QSizePolicy::Minimum, QSizePolicy::Expanding));
handleBox = new QWidget(mainw);
QGridLayout* layout = new QGridLayout(handleBox, 0, KDialog::spacingHint());
cbShowHandle = new QCheckBox(i18n("&Show handle"), handleBox);
cbShowHandle = new QCheckBox(i18n("&Show window resize handle"), handleBox);
QWhatsThis::add(cbShowHandle,
i18n("When selected, all windows are drawn with a resize "
"handle at the lower right corner. This makes window resizing "
"easier, especially for trackballs and other mouse replacements "
"on laptops."));
handleBox->addSpace(20);
layout->addMultiCellWidget(cbShowHandle, 0, 0, 0, 1);
connect(cbShowHandle, SIGNAL(clicked()), this, SLOT(slotSelectionChanged()));
sliderBox = new QVBox(handleBox);
@ -66,6 +68,9 @@ ModernSysConfig::ModernSysConfig(KConfig* conf, QWidget* parent) : QObject(paren
vbox->addWidget(handleBox);
vbox->addStretch(1);
layout->setColSpacing(0, 30);
layout->addWidget(sliderBox, 1, 1);
load(conf);
mainw->show();

View File

@ -33,7 +33,7 @@ class ModernSysConfig : public QObject
KConfig *clientrc;
QWidget *mainw;
QVBoxLayout *vbox;
QGroupBox *handleBox;
QWidget *handleBox;
QCheckBox *cbShowHandle;
QVBox *sliderBox;
QSlider *handleSizeSlider;

View File

@ -36,8 +36,7 @@ QuartzConfig::QuartzConfig( KConfig* conf, QWidget* parent )
{
quartzConfig = new KConfig("kwinquartzrc");
KGlobal::locale()->insertCatalogue("kwin_quartz_config");
gb = new QGroupBox( 1, Qt::Horizontal,
i18n("Decoration Settings"), parent );
gb = new QVBox( parent );
cbColorBorder = new QCheckBox(
i18n("Draw window frames using &titlebar colors"), gb );
QWhatsThis::add( cbColorBorder,
@ -57,7 +56,6 @@ QuartzConfig::QuartzConfig( KConfig* conf, QWidget* parent )
QuartzConfig::~QuartzConfig()
{
delete cbColorBorder;
delete gb;
delete quartzConfig;
}

View File

@ -12,7 +12,7 @@
#define __KDE_QUARTZCONFIG_H
#include <qcheckbox.h>
#include <qgroupbox.h>
#include <qvbox.h>
#include <kconfig.h>
class QuartzConfig: public QObject
@ -38,7 +38,7 @@ class QuartzConfig: public QObject
private:
KConfig* quartzConfig;
QCheckBox* cbColorBorder;
QGroupBox* gb;
QVBox* gb;
};