korganizer
calprintincidenceconfig_base.cpp00001 #include <kdialog.h>
00002 #include <klocale.h>
00003
00004
00005
00006
00007
00008
00009
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
00024
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
00065
00066 CalPrintIncidenceConfig_Base::~CalPrintIncidenceConfig_Base()
00067 {
00068
00069 }
00070
00071
00072
00073
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"
|