korganizer

calprintincidenceconfig_base.cpp

00001 #include <kdialog.h>
00002 #include <klocale.h>
00003 /****************************************************************************
00004 ** Form implementation generated from reading ui file './calprintincidenceconfig_base.ui'
00005 **
00006 ** Created: Thu Mar 29 06:08:54 2007
00007 **      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.8   edited Jan 11 14:47 $)
00008 **
00009 ** WARNING! All changes made in this file will be lost!
00010 ****************************************************************************/
00011 
00012 #include "calprintincidenceconfig_base.h"
00013 
00014 #include <qvariant.h>
00015 #include <qpushbutton.h>
00016 #include <qbuttongroup.h>
00017 #include <qcheckbox.h>
00018 #include <qlayout.h>
00019 #include <qtooltip.h>
00020 #include <qwhatsthis.h>
00021 
00022 /*
00023  *  Constructs a CalPrintIncidenceConfig_Base as a child of 'parent', with the
00024  *  name 'name' and widget flags set to 'f'.
00025  */
00026 CalPrintIncidenceConfig_Base::CalPrintIncidenceConfig_Base( QWidget* parent, const char* name, WFlags fl )
00027     : QWidget( parent, name, fl )
00028 {
00029     if ( !name )
00030     setName( "CalPrintIncidence_Base" );
00031     CalPrintIncidence_BaseLayout = new QVBoxLayout( this, 11, 6, "CalPrintIncidence_BaseLayout"); 
00032 
00033     mComponentsGroup = new QButtonGroup( this, "mComponentsGroup" );
00034     mComponentsGroup->setProperty( "selectedId", -1 );
00035     mComponentsGroup->setColumnLayout(0, Qt::Vertical );
00036     mComponentsGroup->layout()->setSpacing( 6 );
00037     mComponentsGroup->layout()->setMargin( 11 );
00038     mComponentsGroupLayout = new QVBoxLayout( mComponentsGroup->layout() );
00039     mComponentsGroupLayout->setAlignment( Qt::AlignTop );
00040 
00041     mShowDetails = new QCheckBox( mComponentsGroup, "mShowDetails" );
00042     mComponentsGroupLayout->addWidget( mShowDetails );
00043 
00044     mShowSubitemsNotes = new QCheckBox( mComponentsGroup, "mShowSubitemsNotes" );
00045     mComponentsGroupLayout->addWidget( mShowSubitemsNotes );
00046 
00047     mShowAttendees = new QCheckBox( mComponentsGroup, "mShowAttendees" );
00048     mComponentsGroupLayout->addWidget( mShowAttendees );
00049 
00050     mShowAttachments = new QCheckBox( mComponentsGroup, "mShowAttachments" );
00051     mComponentsGroupLayout->addWidget( mShowAttachments );
00052     CalPrintIncidence_BaseLayout->addWidget( mComponentsGroup );
00053 
00054     mColors = new QCheckBox( this, "mColors" );
00055     CalPrintIncidence_BaseLayout->addWidget( mColors );
00056     spacer3 = new QSpacerItem( 21, 201, QSizePolicy::Minimum, QSizePolicy::Expanding );
00057     CalPrintIncidence_BaseLayout->addItem( spacer3 );
00058     languageChange();
00059     resize( QSize(277, 206).expandedTo(minimumSizeHint()) );
00060     clearWState( WState_Polished );
00061 }
00062 
00063 /*
00064  *  Destroys the object and frees any allocated resources
00065  */
00066 CalPrintIncidenceConfig_Base::~CalPrintIncidenceConfig_Base()
00067 {
00068     // no need to delete child widgets, Qt does it all for us
00069 }
00070 
00071 /*
00072  *  Sets the strings of the subwidgets using the current
00073  *  language.
00074  */
00075 void CalPrintIncidenceConfig_Base::languageChange()
00076 {
00077     setCaption( tr2i18n( "CalPrintIncidence_Base" ) );
00078     mComponentsGroup->setTitle( tr2i18n( "Include Information" ) );
00079     mShowDetails->setText( tr2i18n( "Detai&ls (visiblility, secrecy, etc.)" ) );
00080     mShowSubitemsNotes->setText( tr2i18n( "&Notes, Subitems" ) );
00081     mShowAttendees->setText( tr2i18n( "&Attendees" ) );
00082     mShowAttachments->setText( tr2i18n( "Attach&ments" ) );
00083     mColors->setText( tr2i18n( "&Use colors" ) );
00084     QWhatsThis::add( mColors, tr2i18n( "If you want to use colors to distinguish certain categories on the print, check this option." ) );
00085 }
00086 
00087 #include "calprintincidenceconfig_base.moc"
KDE Home | KDE Accessibility Home | Description of Access Keys