kwin Library API Documentation

keramikconfig.cpp

00001 #include <kdialog.h>
00002 #include <klocale.h>
00003 /****************************************************************************
00004 ** Form implementation generated from reading ui file './keramikconfig.ui'
00005 **
00006 ** Created: Thu Sep 8 02:35:59 2005
00007 **      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.3   edited Nov 24 2003 $)
00008 **
00009 ** WARNING! All changes made in this file will be lost!
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  *  Constructs a KeramikConfigUI as a child of 'parent', with the
00023  *  name 'name' and widget flags set to 'f'.
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  *  Destroys the object and frees any allocated resources
00050  */
00051 KeramikConfigUI::~KeramikConfigUI()
00052 {
00053     // no need to delete child widgets, Qt does it all for us
00054 }
00055 
00056 /*
00057  *  Sets the strings of the subwidgets using the current
00058  *  language.
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"
KDE Logo
This file is part of the documentation for kwin Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Sep 8 02:43:20 2005 by doxygen 1.3.6 written by Dimitri van Heesch, © 1997-2003