korganizer Library API Documentation

calprintweekconfig_base.cpp

00001 #include <kdialog.h>
00002 #include <klocale.h>
00003 /****************************************************************************
00004 ** Form implementation generated from reading ui file './calprintweekconfig_base.ui'
00005 **
00006 ** Created: Mon Apr 4 04:38:30 2005
00007 **      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.4   edited Nov 24 2003 $)
00008 **
00009 ** WARNING! All changes made in this file will be lost!
00010 ****************************************************************************/
00011 
00012 #include "calprintweekconfig_base.h"
00013 
00014 #include <qvariant.h>
00015 #include <qpushbutton.h>
00016 #include <qgroupbox.h>
00017 #include <qlabel.h>
00018 #include <qcheckbox.h>
00019 #include <qbuttongroup.h>
00020 #include <qradiobutton.h>
00021 #include <qframe.h>
00022 #include <qdatetimeedit.h>
00023 #include <qlayout.h>
00024 #include <qtooltip.h>
00025 #include <qwhatsthis.h>
00026 #include "libkdepim/kdateedit.h"
00027 
00028 /*
00029  *  Constructs a CalPrintWeekConfig_Base as a child of 'parent', with the
00030  *  name 'name' and widget flags set to 'f'.
00031  */
00032 CalPrintWeekConfig_Base::CalPrintWeekConfig_Base( QWidget* parent, const char* name, WFlags fl )
00033     : QWidget( parent, name, fl )
00034 {
00035     if ( !name )
00036     setName( "CalPrintWeek_Base" );
00037     CalPrintWeek_BaseLayout = new QGridLayout( this, 1, 1, 0, 6, "CalPrintWeek_BaseLayout"); 
00038     spacer3 = new QSpacerItem( 21, 27, QSizePolicy::Minimum, QSizePolicy::Expanding );
00039     CalPrintWeek_BaseLayout->addItem( spacer3, 4, 0 );
00040 
00041     mDateRangeGroup = new QGroupBox( this, "mDateRangeGroup" );
00042     mDateRangeGroup->setColumnLayout(0, Qt::Vertical );
00043     mDateRangeGroup->layout()->setSpacing( 6 );
00044     mDateRangeGroup->layout()->setMargin( 11 );
00045     mDateRangeGroupLayout = new QGridLayout( mDateRangeGroup->layout() );
00046     mDateRangeGroupLayout->setAlignment( Qt::AlignTop );
00047     spacer1 = new QSpacerItem( 16, 21, QSizePolicy::Expanding, QSizePolicy::Minimum );
00048     mDateRangeGroupLayout->addItem( spacer1, 0, 4 );
00049 
00050     mToDateLabel = new QLabel( mDateRangeGroup, "mToDateLabel" );
00051 
00052     mDateRangeGroupLayout->addWidget( mToDateLabel, 0, 2 );
00053 
00054     mFromDateLabel = new QLabel( mDateRangeGroup, "mFromDateLabel" );
00055 
00056     mDateRangeGroupLayout->addWidget( mFromDateLabel, 0, 0 );
00057 
00058     mFromDate = new KDateEdit( mDateRangeGroup, "mFromDate" );
00059     mFromDate->setMinimumSize( QSize( 50, 0 ) );
00060     mFromDate->setFocusPolicy( KDateEdit::StrongFocus );
00061 
00062     mDateRangeGroupLayout->addWidget( mFromDate, 0, 1 );
00063 
00064     mToDate = new KDateEdit( mDateRangeGroup, "mToDate" );
00065     mToDate->setMinimumSize( QSize( 50, 0 ) );
00066     mToDate->setFocusPolicy( KDateEdit::StrongFocus );
00067 
00068     mDateRangeGroupLayout->addWidget( mToDate, 0, 3 );
00069 
00070     CalPrintWeek_BaseLayout->addWidget( mDateRangeGroup, 0, 0 );
00071 
00072     mColors = new QCheckBox( this, "mColors" );
00073 
00074     CalPrintWeek_BaseLayout->addWidget( mColors, 3, 0 );
00075 
00076     mPrintType = new QButtonGroup( this, "mPrintType" );
00077     mPrintType->setColumnLayout(0, Qt::Vertical );
00078     mPrintType->layout()->setSpacing( 6 );
00079     mPrintType->layout()->setMargin( 11 );
00080     mPrintTypeLayout = new QGridLayout( mPrintType->layout() );
00081     mPrintTypeLayout->setAlignment( Qt::AlignTop );
00082 
00083     mPrintTypeButton1 = new QRadioButton( mPrintType, "mPrintTypeButton1" );
00084     mPrintTypeButton1->setChecked( TRUE );
00085 
00086     mPrintTypeLayout->addMultiCellWidget( mPrintTypeButton1, 0, 0, 0, 4 );
00087 
00088     mFromTimeLabel = new QLabel( mPrintType, "mFromTimeLabel" );
00089 
00090     mPrintTypeLayout->addWidget( mFromTimeLabel, 4, 0 );
00091 
00092     mToTimeLabel = new QLabel( mPrintType, "mToTimeLabel" );
00093 
00094     mPrintTypeLayout->addWidget( mToTimeLabel, 4, 2 );
00095     spacer4 = new QSpacerItem( 16, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00096     mPrintTypeLayout->addItem( spacer4, 4, 4 );
00097 
00098     frame3 = new QFrame( mPrintType, "frame3" );
00099     frame3->setFrameShape( QFrame::HLine );
00100     frame3->setFrameShadow( QFrame::Raised );
00101 
00102     mPrintTypeLayout->addMultiCellWidget( frame3, 3, 3, 0, 4 );
00103 
00104     mPrintTypeButton2 = new QRadioButton( mPrintType, "mPrintTypeButton2" );
00105 
00106     mPrintTypeLayout->addMultiCellWidget( mPrintTypeButton2, 1, 1, 0, 4 );
00107 
00108     mPrintTypeButton3 = new QRadioButton( mPrintType, "mPrintTypeButton3" );
00109 
00110     mPrintTypeLayout->addMultiCellWidget( mPrintTypeButton3, 2, 2, 0, 2 );
00111 
00112     mFromTime = new QTimeEdit( mPrintType, "mFromTime" );
00113     mFromTime->setTime( QTime( 0, 8, 0 ) );
00114 
00115     mPrintTypeLayout->addWidget( mFromTime, 4, 1 );
00116 
00117     mToTime = new QTimeEdit( mPrintType, "mToTime" );
00118     mToTime->setTime( QTime( 16, 0, 0 ) );
00119 
00120     mPrintTypeLayout->addWidget( mToTime, 4, 3 );
00121 
00122     CalPrintWeek_BaseLayout->addWidget( mPrintType, 1, 0 );
00123 
00124     mIncludeTodos = new QCheckBox( this, "mIncludeTodos" );
00125     mIncludeTodos->setEnabled( FALSE );
00126 
00127     CalPrintWeek_BaseLayout->addWidget( mIncludeTodos, 2, 0 );
00128     languageChange();
00129     resize( QSize(497, 272).expandedTo(minimumSizeHint()) );
00130     clearWState( WState_Polished );
00131 
00132     // buddies
00133     mToDateLabel->setBuddy( mToDate );
00134     mFromDateLabel->setBuddy( mFromDate );
00135     mFromTimeLabel->setBuddy( mFromTime );
00136     mToTimeLabel->setBuddy( mToTime );
00137 }
00138 
00139 /*
00140  *  Destroys the object and frees any allocated resources
00141  */
00142 CalPrintWeekConfig_Base::~CalPrintWeekConfig_Base()
00143 {
00144     // no need to delete child widgets, Qt does it all for us
00145 }
00146 
00147 /*
00148  *  Sets the strings of the subwidgets using the current
00149  *  language.
00150  */
00151 void CalPrintWeekConfig_Base::languageChange()
00152 {
00153     setCaption( tr2i18n( "CalPrintWeek_Base" ) );
00154     mDateRangeGroup->setTitle( tr2i18n( "Date && Time Range" ) );
00155     mToDateLabel->setText( tr2i18n( "&End date:" ) );
00156     mFromDateLabel->setText( tr2i18n( "&Start date:" ) );
00157     mColors->setText( tr2i18n( "Use &colors" ) );
00158     mPrintType->setTitle( tr2i18n( "Type of View" ) );
00159     mPrintTypeButton1->setText( tr2i18n( "Print as &Filofax page" ) );
00160     mFromTimeLabel->setText( tr2i18n( "Start &time:" ) );
00161     mToTimeLabel->setText( tr2i18n( "End ti&me:" ) );
00162     mPrintTypeButton2->setText( tr2i18n( "Print as &timetable view" ) );
00163     mPrintTypeButton3->setText( tr2i18n( "Print as split week view" ) );
00164     mIncludeTodos->setText( tr2i18n( "Include to&dos that are due on the printed day(s)" ) );
00165 }
00166 
00167 #include "calprintweekconfig_base.moc"
KDE Logo
This file is part of the documentation for korganizer Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Mon Apr 4 04:49:26 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003