korganizer
calprintincidenceconfig_base.cpp00001 #include <kdialog.h>
00002 #include <klocale.h>
00003
00004
00005
00006
00007
00008
00009
00010
00011 #include "calprintincidenceconfig_base.h"
00012
00013 #include <qvariant.h>
00014 #include <qpushbutton.h>
00015 #include <qbuttongroup.h>
00016 #include <qcheckbox.h>
00017 #include <qlayout.h>
00018 #include <qtooltip.h>
00019 #include <qwhatsthis.h>
00020
00021
00022
00023
00024
00025 CalPrintIncidenceConfig_Base::CalPrintIncidenceConfig_Base( QWidget* parent, const char* name, WFlags fl )
00026 : QWidget( parent, name, fl )
00027 {
00028 if ( !name )
00029 setName( "CalPrintIncidence_Base" );
00030 CalPrintIncidence_BaseLayout = new QVBoxLayout( this, 11, 6, "CalPrintIncidence_BaseLayout");
00031
00032 mComponentsGroup = new QButtonGroup( this, "mComponentsGroup" );
00033 mComponentsGroup->setProperty( "selectedId", -1 );
00034 mComponentsGroup->setColumnLayout(0, Qt::Vertical );
00035 mComponentsGroup->layout()->setSpacing( 6 );
00036 mComponentsGroup->layout()->setMargin( 11 );
00037 mComponentsGroupLayout = new QVBoxLayout( mComponentsGroup->layout() );
00038 mComponentsGroupLayout->setAlignment( Qt::AlignTop );
00039
00040 mShowDetails = new QCheckBox( mComponentsGroup, "mShowDetails" );
00041 mComponentsGroupLayout->addWidget( mShowDetails );
00042
00043 mShowSubitemsNotes = new QCheckBox( mComponentsGroup, "mShowSubitemsNotes" );
00044 mComponentsGroupLayout->addWidget( mShowSubitemsNotes );
00045
00046 mShowAttendees = new QCheckBox( mComponentsGroup, "mShowAttendees" );
00047 mComponentsGroupLayout->addWidget( mShowAttendees );
00048
00049 mShowAttachments = new QCheckBox( mComponentsGroup, "mShowAttachments" );
00050 mComponentsGroupLayout->addWidget( mShowAttachments );
00051 CalPrintIncidence_BaseLayout->addWidget( mComponentsGroup );
00052
00053 mColors = new QCheckBox( this, "mColors" );
00054 CalPrintIncidence_BaseLayout->addWidget( mColors );
00055 spacer3 = new QSpacerItem( 21, 201, QSizePolicy::Minimum, QSizePolicy::Expanding );
00056 CalPrintIncidence_BaseLayout->addItem( spacer3 );
00057 languageChange();
00058 resize( QSize(277, 206).expandedTo(minimumSizeHint()) );
00059 clearWState( WState_Polished );
00060 }
00061
00062
00063
00064
00065 CalPrintIncidenceConfig_Base::~CalPrintIncidenceConfig_Base()
00066 {
00067
00068 }
00069
00070
00071
00072
00073
00074 void CalPrintIncidenceConfig_Base::languageChange()
00075 {
00076 setCaption( tr2i18n( "CalPrintIncidence_Base" ) );
00077 mComponentsGroup->setTitle( tr2i18n( "Include Information" ) );
00078 mShowDetails->setText( tr2i18n( "Detai&ls (visiblility, secrecy, etc.)" ) );
00079 mShowSubitemsNotes->setText( tr2i18n( "&Notes, Subitems" ) );
00080 mShowAttendees->setText( tr2i18n( "&Attendees" ) );
00081 mShowAttachments->setText( tr2i18n( "Attach&ments" ) );
00082 mColors->setText( tr2i18n( "&Use colors" ) );
00083 QWhatsThis::add( mColors, tr2i18n( "If you want to use colors to distinguish certain categories on the print, check this option." ) );
00084 }
00085
00086 #include "calprintincidenceconfig_base.moc"
|