keramikconfig.cpp
00001 #include <kdialog.h>
00002 #include <klocale.h>
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #include "keramikconfig.h"
00013
00014 #include <qvariant.h>
00015 #include <kdialog.h>
00016 #include <qcheckbox.h>
00017 #include <qlayout.h>
00018 #include <qtooltip.h>
00019 #include <qwhatsthis.h>
00020
00021
00022
00023
00024
00025 KeramikConfigUI::KeramikConfigUI( QWidget* parent, const char* name, WFlags fl )
00026 : QWidget( parent, name, fl )
00027 {
00028 if ( !name )
00029 setName( "KeramikConfigUI" );
00030 KeramikConfigUILayout = new QVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint(), "KeramikConfigUILayout");
00031
00032 showAppIcons = new QCheckBox( this, "showAppIcons" );
00033 KeramikConfigUILayout->addWidget( showAppIcons );
00034
00035 smallCaptions = new QCheckBox( this, "smallCaptions" );
00036 KeramikConfigUILayout->addWidget( smallCaptions );
00037
00038 largeGrabBars = new QCheckBox( this, "largeGrabBars" );
00039 KeramikConfigUILayout->addWidget( largeGrabBars );
00040
00041 useShadowedText = new QCheckBox( this, "useShadowedText" );
00042 KeramikConfigUILayout->addWidget( useShadowedText );
00043 languageChange();
00044 resize( QSize(287, 102).expandedTo(minimumSizeHint()) );
00045 clearWState( WState_Polished );
00046 }
00047
00048
00049
00050
00051 KeramikConfigUI::~KeramikConfigUI()
00052 {
00053
00054 }
00055
00056
00057
00058
00059
00060 void KeramikConfigUI::languageChange()
00061 {
00062 setCaption( tr2i18n( "Keramik" ) );
00063 showAppIcons->setText( tr2i18n( "Display the window &icon in the caption bubble" ) );
00064 QWhatsThis::add( showAppIcons, tr2i18n( "Check this option if you want the window icon to be displayed in the caption bubble next to the titlebar text." ) );
00065 smallCaptions->setText( tr2i18n( "Draw &small caption bubbles on active windows" ) );
00066 QWhatsThis::add( smallCaptions, tr2i18n( "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." ) );
00067 largeGrabBars->setText( tr2i18n( "Draw g&rab bars below windows" ) );
00068 QWhatsThis::add( largeGrabBars, tr2i18n( "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." ) );
00069 useShadowedText->setText( tr2i18n( "Use shadowed &text" ) );
00070 QWhatsThis::add( useShadowedText, tr2i18n( "Check this option if you want the titlebar text to have a 3D look with a shadow behind it." ) );
00071 }
00072
00073 #include "keramikconfig.moc"
This file is part of the documentation for kwin Library Version 3.3.2.