korganizer

calprintmonthconfig_base.cpp

00001 #include <kdialog.h>
00002 #include <klocale.h>
00003 /****************************************************************************
00004 ** Form implementation generated from reading ui file './calprintmonthconfig_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 "calprintmonthconfig_base.h"
00013 
00014 #include <qvariant.h>
00015 #include <qgroupbox.h>
00016 #include <qlabel.h>
00017 #include <kcombobox.h>
00018 #include <knuminput.h>
00019 #include <qcheckbox.h>
00020 #include <qlayout.h>
00021 #include <qtooltip.h>
00022 #include <qwhatsthis.h>
00023 #include "kcombobox.h"
00024 #include "knuminput.h"
00025 
00026 /*
00027  *  Constructs a CalPrintMonthConfig_Base as a child of 'parent', with the
00028  *  name 'name' and widget flags set to 'f'.
00029  */
00030 CalPrintMonthConfig_Base::CalPrintMonthConfig_Base( QWidget* parent, const char* name, WFlags fl )
00031     : QWidget( parent, name, fl )
00032 {
00033     if ( !name )
00034     setName( "CalPrintMonth_Base" );
00035     CalPrintMonth_BaseLayout = new QGridLayout( this, 1, 1, 0, 6, "CalPrintMonth_BaseLayout"); 
00036     spacer2 = new QSpacerItem( 21, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
00037     CalPrintMonth_BaseLayout->addItem( spacer2, 5, 0 );
00038 
00039     mDateRangeGroup = new QGroupBox( this, "mDateRangeGroup" );
00040     mDateRangeGroup->setColumnLayout(0, Qt::Vertical );
00041     mDateRangeGroup->layout()->setSpacing( 6 );
00042     mDateRangeGroup->layout()->setMargin( 11 );
00043     mDateRangeGroupLayout = new QHBoxLayout( mDateRangeGroup->layout() );
00044     mDateRangeGroupLayout->setAlignment( Qt::AlignTop );
00045 
00046     mFromDateLabel = new QLabel( mDateRangeGroup, "mFromDateLabel" );
00047     mDateRangeGroupLayout->addWidget( mFromDateLabel );
00048 
00049     mFromMonth = new KComboBox( FALSE, mDateRangeGroup, "mFromMonth" );
00050     mDateRangeGroupLayout->addWidget( mFromMonth );
00051 
00052     mFromYear = new KIntSpinBox( mDateRangeGroup, "mFromYear" );
00053     mFromYear->setMaxValue( 3000 );
00054     mFromYear->setValue( 2007 );
00055     mDateRangeGroupLayout->addWidget( mFromYear );
00056 
00057     mToDateLabel = new QLabel( mDateRangeGroup, "mToDateLabel" );
00058     mDateRangeGroupLayout->addWidget( mToDateLabel );
00059 
00060     mToMonth = new KComboBox( FALSE, mDateRangeGroup, "mToMonth" );
00061     mDateRangeGroupLayout->addWidget( mToMonth );
00062 
00063     mToYear = new KIntSpinBox( mDateRangeGroup, "mToYear" );
00064     mToYear->setMaxValue( 3000 );
00065     mToYear->setValue( 2007 );
00066     mDateRangeGroupLayout->addWidget( mToYear );
00067     spacer1 = new QSpacerItem( 17, 21, QSizePolicy::Expanding, QSizePolicy::Minimum );
00068     mDateRangeGroupLayout->addItem( spacer1 );
00069 
00070     CalPrintMonth_BaseLayout->addWidget( mDateRangeGroup, 0, 0 );
00071 
00072     mIncludeTodos = new QCheckBox( this, "mIncludeTodos" );
00073     mIncludeTodos->setEnabled( FALSE );
00074 
00075     CalPrintMonth_BaseLayout->addWidget( mIncludeTodos, 4, 0 );
00076 
00077     mWeekNumbers = new QCheckBox( this, "mWeekNumbers" );
00078 
00079     CalPrintMonth_BaseLayout->addWidget( mWeekNumbers, 1, 0 );
00080 
00081     mRecurDaily = new QCheckBox( this, "mRecurDaily" );
00082 
00083     CalPrintMonth_BaseLayout->addWidget( mRecurDaily, 2, 0 );
00084 
00085     mRecurWeekly = new QCheckBox( this, "mRecurWeekly" );
00086 
00087     CalPrintMonth_BaseLayout->addWidget( mRecurWeekly, 3, 0 );
00088     languageChange();
00089     resize( QSize(463, 161).expandedTo(minimumSizeHint()) );
00090     clearWState( WState_Polished );
00091 
00092     // tab order
00093     setTabOrder( mWeekNumbers, mRecurDaily );
00094     setTabOrder( mRecurDaily, mRecurWeekly );
00095     setTabOrder( mRecurWeekly, mIncludeTodos );
00096 
00097     // buddies
00098     mFromDateLabel->setBuddy( mFromMonth );
00099     mToDateLabel->setBuddy( mToMonth );
00100 }
00101 
00102 /*
00103  *  Destroys the object and frees any allocated resources
00104  */
00105 CalPrintMonthConfig_Base::~CalPrintMonthConfig_Base()
00106 {
00107     // no need to delete child widgets, Qt does it all for us
00108 }
00109 
00110 /*
00111  *  Sets the strings of the subwidgets using the current
00112  *  language.
00113  */
00114 void CalPrintMonthConfig_Base::languageChange()
00115 {
00116     mDateRangeGroup->setTitle( tr2i18n( "Date && Time Range" ) );
00117     mFromDateLabel->setText( tr2i18n( "&Start month:" ) );
00118     QWhatsThis::add( mFromDateLabel, tr2i18n( "When you want to print more months at once, you can define a month range. This option defines the first month to be printed. Use the option <i>End month</i> to define the last month in this range." ) );
00119     QWhatsThis::add( mFromMonth, tr2i18n( "When you want to print more months at once, you can define a month range. This option defines the first month to be printed. Use the on <i>End month</i> to define the last month in this range." ) );
00120     QWhatsThis::add( mFromYear, tr2i18n( "When you want to print more months at once, you can define a month range. This option defines the first month to be printed. Use the on <i>End month</i> to define the last month in this range." ) );
00121     mToDateLabel->setText( tr2i18n( "&End month:" ) );
00122     QWhatsThis::add( mToDateLabel, tr2i18n( "When you want to print more months at once, you can define a month range. This option defines the last month to be printed. Use the option <i>Start month</i> to define the first month in this range." ) );
00123     QWhatsThis::add( mToMonth, tr2i18n( "When you want to print more months at once, you can define a month range. This option defines the last month to be printed. Use the option <i>Start month</i> to define the first month in this range." ) );
00124     QWhatsThis::add( mToYear, tr2i18n( "When you want to print more months at once, you can define a month range. This option defines the last month to be printed. Use the option <i>Start month</i> to define the first month in this range." ) );
00125     mIncludeTodos->setText( tr2i18n( "Include to-&dos that are due on the printed day(s)" ) );
00126     QWhatsThis::add( mIncludeTodos, tr2i18n( "Check this option if you want to have to-dos on the print, placed by their due date." ) );
00127     mWeekNumbers->setText( tr2i18n( "Print week &numbers" ) );
00128     QWhatsThis::add( mWeekNumbers, tr2i18n( "Enable this to print week numbers at the left of each row." ) );
00129     mRecurDaily->setText( tr2i18n( "Print daily re&curring to-dos and events" ) );
00130     QWhatsThis::add( mRecurDaily, tr2i18n( "With this option it is possible to leave out the daily recurring to-dos and events in the print. They take a lot of space and make the month view needlessly complicated." ) );
00131     mRecurWeekly->setText( tr2i18n( "Print weekl&y recurring to-dos and events" ) );
00132     QWhatsThis::add( mRecurWeekly, tr2i18n( "Similar to \"Print daily recurring to-dos and events\". Weekly to-dos and events will be omitted when making a print of the selected month." ) );
00133 }
00134 
00135 #include "calprintmonthconfig_base.moc"
KDE Home | KDE Accessibility Home | Description of Access Keys