korganizer Library API Documentation

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: Wed Mar 23 22:27:32 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 "calprintmonthconfig_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 <qlayout.h>
00020 #include <qtooltip.h>
00021 #include <qwhatsthis.h>
00022 #include "libkdepim/kdateedit.h"
00023 
00024 /*
00025  *  Constructs a CalPrintMonthConfig_Base as a child of 'parent', with the
00026  *  name 'name' and widget flags set to 'f'.
00027  */
00028 CalPrintMonthConfig_Base::CalPrintMonthConfig_Base( QWidget* parent, const char* name, WFlags fl )
00029     : QWidget( parent, name, fl )
00030 {
00031     if ( !name )
00032     setName( "CalPrintMonth_Base" );
00033     CalPrintMonth_BaseLayout = new QGridLayout( this, 1, 1, 0, 6, "CalPrintMonth_BaseLayout"); 
00034     spacer2 = new QSpacerItem( 21, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
00035     CalPrintMonth_BaseLayout->addItem( spacer2, 4, 0 );
00036 
00037     mDateRangeGroup = new QGroupBox( this, "mDateRangeGroup" );
00038     mDateRangeGroup->setColumnLayout(0, Qt::Vertical );
00039     mDateRangeGroup->layout()->setSpacing( 6 );
00040     mDateRangeGroup->layout()->setMargin( 11 );
00041     mDateRangeGroupLayout = new QGridLayout( mDateRangeGroup->layout() );
00042     mDateRangeGroupLayout->setAlignment( Qt::AlignTop );
00043     spacer1 = new QSpacerItem( 17, 21, QSizePolicy::Expanding, QSizePolicy::Minimum );
00044     mDateRangeGroupLayout->addItem( spacer1, 0, 4 );
00045 
00046     mToDateLabel = new QLabel( mDateRangeGroup, "mToDateLabel" );
00047 
00048     mDateRangeGroupLayout->addWidget( mToDateLabel, 0, 2 );
00049 
00050     mFromDateLabel = new QLabel( mDateRangeGroup, "mFromDateLabel" );
00051 
00052     mDateRangeGroupLayout->addWidget( mFromDateLabel, 0, 0 );
00053 
00054     mToDate = new KDateEdit( mDateRangeGroup, "mToDate" );
00055     mToDate->setMinimumSize( QSize( 50, 0 ) );
00056     mToDate->setFocusPolicy( KDateEdit::StrongFocus );
00057 
00058     mDateRangeGroupLayout->addWidget( mToDate, 0, 3 );
00059 
00060     mFromDate = new KDateEdit( mDateRangeGroup, "mFromDate" );
00061     mFromDate->setMinimumSize( QSize( 50, 0 ) );
00062     mFromDate->setFocusPolicy( KDateEdit::StrongFocus );
00063 
00064     mDateRangeGroupLayout->addWidget( mFromDate, 0, 1 );
00065 
00066     CalPrintMonth_BaseLayout->addWidget( mDateRangeGroup, 0, 0 );
00067 
00068     mIncludeTodos = new QCheckBox( this, "mIncludeTodos" );
00069     mIncludeTodos->setEnabled( FALSE );
00070 
00071     CalPrintMonth_BaseLayout->addWidget( mIncludeTodos, 2, 0 );
00072 
00073     mWeekNumbers = new QCheckBox( this, "mWeekNumbers" );
00074 
00075     CalPrintMonth_BaseLayout->addWidget( mWeekNumbers, 1, 0 );
00076     languageChange();
00077     resize( QSize(496, 170).expandedTo(minimumSizeHint()) );
00078     clearWState( WState_Polished );
00079 
00080     // buddies
00081     mToDateLabel->setBuddy( mToDate );
00082     mFromDateLabel->setBuddy( mFromDate );
00083 }
00084 
00085 /*
00086  *  Destroys the object and frees any allocated resources
00087  */
00088 CalPrintMonthConfig_Base::~CalPrintMonthConfig_Base()
00089 {
00090     // no need to delete child widgets, Qt does it all for us
00091 }
00092 
00093 /*
00094  *  Sets the strings of the subwidgets using the current
00095  *  language.
00096  */
00097 void CalPrintMonthConfig_Base::languageChange()
00098 {
00099     mDateRangeGroup->setTitle( tr2i18n( "Date && Time Range" ) );
00100     mToDateLabel->setText( tr2i18n( "&End month:" ) );
00101     mFromDateLabel->setText( tr2i18n( "&Start month:" ) );
00102     mIncludeTodos->setText( tr2i18n( "Include to&dos that are due on the printed day(s)" ) );
00103     mWeekNumbers->setText( tr2i18n( "Print week &numbers" ) );
00104 }
00105 
00106 #include "calprintmonthconfig_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 Wed Mar 23 22:45:22 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003