author | umopapisdn <umopapisdn> | 2003-03-24 22:02:26 (UTC) |
---|---|---|
committer | umopapisdn <umopapisdn> | 2003-03-24 22:02:26 (UTC) |
commit | c80099645138ab1ab8ad542cbfce401bcc6d095c (patch) (side-by-side diff) | |
tree | 873aa395cacb54a32af25a56033587c5d3d90602 /core | |
parent | c1089dbda9c50a25e5aa6f4be410ed6a83a573c0 (diff) | |
download | opie-c80099645138ab1ab8ad542cbfce401bcc6d095c.zip opie-c80099645138ab1ab8ad542cbfce401bcc6d095c.tar.gz opie-c80099645138ab1ab8ad542cbfce401bcc6d095c.tar.bz2 |
Remove these files that I added by misstake.
-rw-r--r-- | core/pim/datebook/datebookdayheader.cpp | 207 | ||||
-rw-r--r-- | core/pim/datebook/datebookdayheader.h | 56 | ||||
-rw-r--r-- | core/pim/datebook/datebookweeklstheader.cpp | 206 | ||||
-rw-r--r-- | core/pim/datebook/dateentry.cpp | 255 |
4 files changed, 0 insertions, 724 deletions
diff --git a/core/pim/datebook/datebookdayheader.cpp b/core/pim/datebook/datebookdayheader.cpp deleted file mode 100644 index 82a143f..0000000 --- a/core/pim/datebook/datebookdayheader.cpp +++ b/dev/null @@ -1,207 +0,0 @@ -/**************************************************************************** -** Form implementation generated from reading ui file 'datebookdayheader.ui' -** -** Created: Mon Mar 24 10:42:07 2003 -** by: The User Interface Compiler (uic) -** -** WARNING! All changes made in this file will be lost! -****************************************************************************/ -#include "datebookdayheader.h" - -#include <qbuttongroup.h> -#include <qpushbutton.h> -#include <qtoolbutton.h> -#include <qlayout.h> -#include <qvariant.h> -#include <qtooltip.h> -#include <qwhatsthis.h> -#include <qimage.h> -#include <qpixmap.h> - - -/* - * Constructs a DateBookDayHeaderBase which is a child of 'parent', with the - * name 'name' and widget flags set to 'f' - */ -DateBookDayHeaderBase::DateBookDayHeaderBase( QWidget* parent, const char* name, WFlags fl ) - : QWidget( parent, name, fl ) -{ - if ( !name ) - setName( "DateBookDayHeaderBase" ); - resize( 249, 26 ); - DateBookDayHeaderBaseLayout = new QHBoxLayout( this ); - DateBookDayHeaderBaseLayout->setSpacing( 0 ); - DateBookDayHeaderBaseLayout->setMargin( 0 ); - - backweek = new QToolButton( this, "backweek" ); - backweek->setText( tr( "" ) ); - backweek->setToggleButton( FALSE ); - backweek->setAutoRepeat( TRUE ); - backweek->setAutoRaise( TRUE ); - backweek->setToggleButton( FALSE ); - QToolTip::add( backweek, tr( "" ) ); - DateBookDayHeaderBaseLayout->addWidget( backweek ); - - back = new QToolButton( this, "back" ); - back->setText( tr( "" ) ); - back->setToggleButton( FALSE ); - back->setAutoRepeat( TRUE ); - back->setAutoRaise( TRUE ); - back->setToggleButton( FALSE ); - QToolTip::add( back, tr( "" ) ); - DateBookDayHeaderBaseLayout->addWidget( back ); - - date = new QToolButton( this, "date" ); - date->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)1, date->sizePolicy().hasHeightForWidth() ) ); - QFont date_font( date->font() ); - date_font.setBold( TRUE ); - date->setFont( date_font ); - date->setText( tr( "" ) ); - date->setAutoRepeat( FALSE ); - date->setAutoRaise( FALSE ); - DateBookDayHeaderBaseLayout->addWidget( date ); - - grpDays = new QButtonGroup( this, "grpDays" ); - grpDays->setFrameShape( QButtonGroup::NoFrame ); - grpDays->setFrameShadow( QButtonGroup::Plain ); - grpDays->setTitle( tr( "" ) ); - grpDays->setExclusive( TRUE ); - grpDays->setColumnLayout(0, Qt::Vertical ); - grpDays->layout()->setSpacing( 0 ); - grpDays->layout()->setMargin( 0 ); - grpDaysLayout = new QHBoxLayout( grpDays->layout() ); - grpDaysLayout->setAlignment( Qt::AlignTop ); - grpDaysLayout->setSpacing( 1 ); - grpDaysLayout->setMargin( 0 ); - - cmdDay1 = new QToolButton( grpDays, "cmdDay1" ); - cmdDay1->setText( tr( "M" ) ); - cmdDay1->setToggleButton( TRUE ); - cmdDay1->setAutoRaise( TRUE ); - cmdDay1->setToggleButton( TRUE ); - QToolTip::add( cmdDay1, tr( "" ) ); - grpDaysLayout->addWidget( cmdDay1 ); - - cmdDay2 = new QToolButton( grpDays, "cmdDay2" ); - cmdDay2->setText( tr( "T" ) ); - cmdDay2->setToggleButton( TRUE ); - cmdDay2->setAutoRaise( TRUE ); - cmdDay2->setToggleButton( TRUE ); - QToolTip::add( cmdDay2, tr( "" ) ); - grpDaysLayout->addWidget( cmdDay2 ); - - cmdDay3 = new QToolButton( grpDays, "cmdDay3" ); - cmdDay3->setText( tr( "W" ) ); - cmdDay3->setToggleButton( TRUE ); - cmdDay3->setAutoRaise( TRUE ); - cmdDay3->setToggleButton( TRUE ); - QToolTip::add( cmdDay3, tr( "" ) ); - grpDaysLayout->addWidget( cmdDay3 ); - - cmdDay4 = new QToolButton( grpDays, "cmdDay4" ); - cmdDay4->setText( tr( "T" ) ); - cmdDay4->setToggleButton( TRUE ); - cmdDay4->setAutoRepeat( FALSE ); - cmdDay4->setAutoRaise( TRUE ); - cmdDay4->setToggleButton( TRUE ); - QToolTip::add( cmdDay4, tr( "" ) ); - grpDaysLayout->addWidget( cmdDay4 ); - - cmdDay5 = new QToolButton( grpDays, "cmdDay5" ); - cmdDay5->setText( tr( "F" ) ); - cmdDay5->setToggleButton( TRUE ); - cmdDay5->setAutoRaise( TRUE ); - cmdDay5->setToggleButton( TRUE ); - QToolTip::add( cmdDay5, tr( "" ) ); - grpDaysLayout->addWidget( cmdDay5 ); - - cmdDay6 = new QToolButton( grpDays, "cmdDay6" ); - cmdDay6->setText( tr( "S" ) ); - cmdDay6->setToggleButton( TRUE ); - cmdDay6->setAutoRaise( TRUE ); - cmdDay6->setToggleButton( TRUE ); - QToolTip::add( cmdDay6, tr( "" ) ); - grpDaysLayout->addWidget( cmdDay6 ); - - cmdDay7 = new QToolButton( grpDays, "cmdDay7" ); - cmdDay7->setText( tr( "S" ) ); - cmdDay7->setToggleButton( TRUE ); - cmdDay7->setAutoRaise( TRUE ); - cmdDay7->setToggleButton( TRUE ); - QToolTip::add( cmdDay7, tr( "" ) ); - grpDaysLayout->addWidget( cmdDay7 ); - DateBookDayHeaderBaseLayout->addWidget( grpDays ); - - forward = new QToolButton( this, "forward" ); - forward->setText( tr( "" ) ); - forward->setAutoRepeat( TRUE ); - forward->setAutoRaise( TRUE ); - DateBookDayHeaderBaseLayout->addWidget( forward ); - - forwardweek = new QToolButton( this, "forwardweek" ); - forwardweek->setText( tr( "" ) ); - forwardweek->setAutoRepeat( TRUE ); - forwardweek->setAutoRaise( TRUE ); - DateBookDayHeaderBaseLayout->addWidget( forwardweek ); - - // signals and slots connections - connect( forwardweek, SIGNAL( clicked() ), this, SLOT( goForwardWeek() ) ); - connect( forward, SIGNAL( clicked() ), this, SLOT( goForward() ) ); - connect( back, SIGNAL( clicked() ), this, SLOT( goBack() ) ); - connect( backweek, SIGNAL( clicked() ), this, SLOT( goBackWeek() ) ); - connect( grpDays, SIGNAL( clicked(int) ), this, SLOT( setDay( int ) ) ); -} - -/* - * Destroys the object and frees any allocated resources - */ -DateBookDayHeaderBase::~DateBookDayHeaderBase() -{ - // no need to delete child widgets, Qt does it all for us -} - -/* - * Main event handler. Reimplemented to handle application - * font changes - */ -bool DateBookDayHeaderBase::event( QEvent* ev ) -{ - bool ret = QWidget::event( ev ); - if ( ev->type() == QEvent::ApplicationFontChange ) { - QFont date_font( date->font() ); - date_font.setBold( TRUE ); - date->setFont( date_font ); - } - return ret; -} - -void DateBookDayHeaderBase::goBack() -{ - qWarning( "DateBookDayHeaderBase::goBack(): Not implemented yet!" ); -} - -void DateBookDayHeaderBase::goBackWeek() -{ - qWarning( "DateBookDayHeaderBase::goBackWeek(): Not implemented yet!" ); -} - -void DateBookDayHeaderBase::goForward() -{ - qWarning( "DateBookDayHeaderBase::goForward(): Not implemented yet!" ); -} - -void DateBookDayHeaderBase::goForwardWeek() -{ - qWarning( "DateBookDayHeaderBase::goForwardWeek(): Not implemented yet!" ); -} - -void DateBookDayHeaderBase::setDate( int, int, int ) -{ - qWarning( "DateBookDayHeaderBase::setDate( int, int, int ): Not implemented yet!" ); -} - -void DateBookDayHeaderBase::setDay( int ) -{ - qWarning( "DateBookDayHeaderBase::setDay( int ): Not implemented yet!" ); -} - diff --git a/core/pim/datebook/datebookdayheader.h b/core/pim/datebook/datebookdayheader.h deleted file mode 100644 index 12f6fcf..0000000 --- a/core/pim/datebook/datebookdayheader.h +++ b/dev/null @@ -1,56 +0,0 @@ -/**************************************************************************** -** Form interface generated from reading ui file 'datebookdayheader.ui' -** -** Created: Mon Mar 10 20:49:12 2003 -** by: The User Interface Compiler (uic) -** -** WARNING! All changes made in this file will be lost! -****************************************************************************/ -#ifndef DATEBOOKDAYHEADERBASE_H -#define DATEBOOKDAYHEADERBASE_H - -#include <qvariant.h> -#include <qwidget.h> -class QVBoxLayout; -class QHBoxLayout; -class QGridLayout; -class QButtonGroup; -class QToolButton; - -class DateBookDayHeaderBase : public QWidget -{ - Q_OBJECT - -public: - DateBookDayHeaderBase( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); - ~DateBookDayHeaderBase(); - - QToolButton* backweek; - QToolButton* back; - QToolButton* date; - QButtonGroup* grpDays; - QToolButton* cmdDay1; - QToolButton* cmdDay2; - QToolButton* cmdDay3; - QToolButton* cmdDay4; - QToolButton* cmdDay5; - QToolButton* cmdDay6; - QToolButton* cmdDay7; - QToolButton* forward; - QToolButton* forwardweek; - -public slots: - virtual void goBackWeek(); - virtual void goBack(); - virtual void goForward(); - virtual void goForwardWeek(); - virtual void setDate( int, int, int ); - virtual void setDay( int ); - -protected: - QHBoxLayout* DateBookDayHeaderBaseLayout; - QHBoxLayout* grpDaysLayout; - bool event( QEvent* ); -}; - -#endif // DATEBOOKDAYHEADERBASE_H diff --git a/core/pim/datebook/datebookweeklstheader.cpp b/core/pim/datebook/datebookweeklstheader.cpp deleted file mode 100644 index 582dc96..0000000 --- a/core/pim/datebook/datebookweeklstheader.cpp +++ b/dev/null @@ -1,206 +0,0 @@ -/**************************************************************************** -** Form implementation generated from reading ui file 'datebookweeklstheader.ui' -** -** Created: Mon Mar 10 20:50:34 2003 -** by: The User Interface Compiler (uic) -** -** WARNING! All changes made in this file will be lost! -****************************************************************************/ -#include "datebookweeklstheader.h" - -#include <qlabel.h> -#include <qpushbutton.h> -#include <qtoolbutton.h> -#include <qlayout.h> -#include <qvariant.h> -#include <qtooltip.h> -#include <qwhatsthis.h> -#include <qimage.h> -#include <qpixmap.h> - -#include <qpe/resource.h> - -static const char* const image0_data[] = { -"14 14 19 1", -". c None", -"# c #000000", -"c c #202420", -"a c #202429", -"f c #525052", -"o c #52595a", -"m c #5a5d5a", -"l c #cdcacd", -"k c #cdcecd", -"q c #d5d6d5", -"i c #ded6de", -"j c #e6dee6", -"p c #eeeaee", -"h c #f6eef6", -"n c #f6f2f6", -"e c #f6f6f6", -"g c #fff6ff", -"d c #fffaff", -"b c #ffffff", -"..............", -".......##.....", -"......ab#.....", -".....cbb##....", -"....abbd####..", -"...cbbbbbbe#..", -"..fbbbbgdhi##.", -"...abbejkll##.", -"...maenk#####.", -"....oapk####..", -".....oaq##....", -"......o###....", -"..............", -".............."}; - -static const char* const image1_data[] = { -"14 14 22 1", -". c None", -"# c #000000", -"c c #202020", -"g c #202420", -"q c #414041", -"k c #4a484a", -"e c #5a5d62", -"d c #5a6162", -"a c #62696a", -"p c #cdcacd", -"s c #d5ced5", -"o c #d5d2d5", -"j c #ded6de", -"r c #dedade", -"l c #e6e2e6", -"m c #eeeaee", -"h c #f6eef6", -"i c #f6f2f6", -"t c #f6f6f6", -"f c #fff6ff", -"n c #fffaff", -"b c #ffffff", -"..............", -".....##a......", -".....#bcd.....", -".....#bbce....", -"..####bbfge...", -"..#bbbbbfhce..", -"..#bbbbbijjk..", -"..#flmniopcq..", -"..####nrsgq#..", -"....##tpcq#...", -".....#hgq#....", -".....##q#.....", -"..............", -".............."}; - - -/* - * Constructs a DateBookWeekLstHeaderBase which is a child of 'parent', with the - * name 'name' and widget flags set to 'f' - */ -DateBookWeekLstHeaderBase::DateBookWeekLstHeaderBase( QWidget* parent, const char* name, WFlags fl ) - : QWidget( parent, name, fl ) -{ - QPixmap image0( ( const char** ) image0_data ); - QPixmap image1( ( const char** ) image1_data ); - if ( !name ) - setName( "DateBookWeekLstHeaderBase" ); - resize( 447, 45 ); - setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, sizePolicy().hasHeightForWidth() ) ); - DateBookWeekLstHeaderBaseLayout = new QHBoxLayout( this ); - DateBookWeekLstHeaderBaseLayout->setSpacing( 6 ); - DateBookWeekLstHeaderBaseLayout->setMargin( 11 ); - - back = new QToolButton( this, "back" ); - back->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, back->sizePolicy().hasHeightForWidth() ) ); - back->setText( tr( "" ) ); - back->setPixmap( image0 ); - back->setPixmap( Resource::loadPixmap( "back" ) ); - back->setToggleButton( FALSE ); - back->setAutoRepeat( TRUE ); - back->setAutoRaise( TRUE ); - back->setToggleButton( FALSE ); - QToolTip::add( back, tr( "" ) ); - DateBookWeekLstHeaderBaseLayout->addWidget( back ); - QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); - DateBookWeekLstHeaderBaseLayout->addItem( spacer ); - - labelWeek = new QToolButton( this, "labelWeek" ); - labelWeek->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, labelWeek->sizePolicy().hasHeightForWidth() ) ); - QFont labelWeek_font( labelWeek->font() ); - labelWeek_font.setBold( TRUE ); - labelWeek->setFont( labelWeek_font ); - labelWeek->setText( tr( "W: 00,00" ) ); - labelWeek->setToggleButton( FALSE ); - labelWeek->setAutoRaise( FALSE ); - labelWeek->setToggleButton( FALSE ); - QToolTip::add( labelWeek, tr( "" ) ); - DateBookWeekLstHeaderBaseLayout->addWidget( labelWeek ); - QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); - DateBookWeekLstHeaderBaseLayout->addItem( spacer_2 ); - - dbl = new QToolButton( this, "dbl" ); - dbl->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)0, dbl->sizePolicy().hasHeightForWidth() ) ); - QFont dbl_font( dbl->font() ); - dbl_font.setBold( TRUE ); - dbl->setFont( dbl_font ); - dbl->setText( tr( "2" ) ); - dbl->setToggleButton( TRUE ); - dbl->setAutoRaise( FALSE ); - dbl->setToggleButton( TRUE ); - QToolTip::add( dbl, tr( "" ) ); - DateBookWeekLstHeaderBaseLayout->addWidget( dbl ); - QSpacerItem* spacer_3 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); - DateBookWeekLstHeaderBaseLayout->addItem( spacer_3 ); - - labelDate = new QLabel( this, "labelDate" ); - labelDate->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)7, labelDate->sizePolicy().hasHeightForWidth() ) ); - QFont labelDate_font( labelDate->font() ); - labelDate_font.setBold( TRUE ); - labelDate->setFont( labelDate_font ); - labelDate->setText( tr( "00 Jan-00 Jan" ) ); - DateBookWeekLstHeaderBaseLayout->addWidget( labelDate ); - QSpacerItem* spacer_4 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); - DateBookWeekLstHeaderBaseLayout->addItem( spacer_4 ); - - forward = new QToolButton( this, "forward" ); - forward->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, forward->sizePolicy().hasHeightForWidth() ) ); - forward->setText( tr( "" ) ); - forward->setPixmap( image1 ); - forward->setPixmap( Resource::loadPixmap( "forward" ) ); - forward->setAutoRepeat( TRUE ); - forward->setAutoRaise( TRUE ); - DateBookWeekLstHeaderBaseLayout->addWidget( forward ); -} - -/* - * Destroys the object and frees any allocated resources - */ -DateBookWeekLstHeaderBase::~DateBookWeekLstHeaderBase() -{ - // no need to delete child widgets, Qt does it all for us -} - -/* - * Main event handler. Reimplemented to handle application - * font changes - */ -bool DateBookWeekLstHeaderBase::event( QEvent* ev ) -{ - bool ret = QWidget::event( ev ); - if ( ev->type() == QEvent::ApplicationFontChange ) { - QFont labelWeek_font( labelWeek->font() ); - labelWeek_font.setBold( TRUE ); - labelWeek->setFont( labelWeek_font ); - QFont dbl_font( dbl->font() ); - dbl_font.setBold( TRUE ); - dbl->setFont( dbl_font ); - QFont labelDate_font( labelDate->font() ); - labelDate_font.setBold( TRUE ); - labelDate->setFont( labelDate_font ); - } - return ret; -} - diff --git a/core/pim/datebook/dateentry.cpp b/core/pim/datebook/dateentry.cpp deleted file mode 100644 index 95ddee8..0000000 --- a/core/pim/datebook/dateentry.cpp +++ b/dev/null @@ -1,255 +0,0 @@ -/**************************************************************************** -** Form implementation generated from reading ui file 'dateentry.ui' -** -** Created: Mon Mar 10 20:50:24 2003 -** by: The User Interface Compiler (uic) -** -** WARNING! All changes made in this file will be lost! -****************************************************************************/ -#include "dateentry.h" - -#include <qcheckbox.h> -#include <qcombobox.h> -#include <qlabel.h> -#include <qlineedit.h> -#include <qpe/categoryselect.h> -#include <qpe/tzselect.h> -#include <qpushbutton.h> -#include <qspinbox.h> -#include <qtoolbutton.h> -#include "timepicker.h" -#include <qlayout.h> -#include <qvariant.h> -#include <qtooltip.h> -#include <qwhatsthis.h> - -/* - * Constructs a DateEntryBase which is a child of 'parent', with the - * name 'name' and widget flags set to 'f' - */ -DateEntryBase::DateEntryBase( QWidget* parent, const char* name, WFlags fl ) - : QWidget( parent, name, fl ) -{ - if ( !name ) - setName( "DateEntryBase" ); - resize( 242, 339 ); - setCaption( tr( "New Event" ) ); - DateEntryBaseLayout = new QGridLayout( this ); - DateEntryBaseLayout->setSpacing( 0 ); - DateEntryBaseLayout->setMargin( 2 ); - - TextLabel2 = new QLabel( this, "TextLabel2" ); - TextLabel2->setFrameShape( QLabel::MShape ); - TextLabel2->setFrameShadow( QLabel::MShadow ); - TextLabel2->setText( tr( "Location" ) ); - - DateEntryBaseLayout->addWidget( TextLabel2, 1, 0 ); - - TextLabel2_2 = new QLabel( this, "TextLabel2_2" ); - TextLabel2_2->setText( tr( "Category" ) ); - - DateEntryBaseLayout->addWidget( TextLabel2_2, 2, 0 ); - - comboDescription = new QComboBox( FALSE, this, "comboDescription" ); - comboDescription->insertItem( tr( "" ) ); - comboDescription->insertItem( tr( "Meeting" ) ); - comboDescription->insertItem( tr( "Lunch" ) ); - comboDescription->insertItem( tr( "Dinner" ) ); - comboDescription->insertItem( tr( "Travel" ) ); - comboDescription->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, comboDescription->sizePolicy().hasHeightForWidth() ) ); - comboDescription->setEditable( TRUE ); - comboDescription->setCurrentItem( 0 ); - comboDescription->setDuplicatesEnabled( FALSE ); - - DateEntryBaseLayout->addMultiCellWidget( comboDescription, 0, 0, 1, 3 ); - - TextLabel1 = new QLabel( this, "TextLabel1" ); - TextLabel1->setText( tr( "Description " ) ); - - DateEntryBaseLayout->addWidget( TextLabel1, 0, 0 ); - - comboLocation = new QComboBox( FALSE, this, "comboLocation" ); - comboLocation->insertItem( tr( "" ) ); - comboLocation->insertItem( tr( "Office" ) ); - comboLocation->insertItem( tr( "Home" ) ); - comboLocation->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, comboLocation->sizePolicy().hasHeightForWidth() ) ); - comboLocation->setEditable( TRUE ); - comboLocation->setCurrentItem( 0 ); - comboLocation->setDuplicatesEnabled( FALSE ); - - DateEntryBaseLayout->addMultiCellWidget( comboLocation, 1, 1, 1, 3 ); - - comboCategory = new CategorySelect( this, "comboCategory" ); - - DateEntryBaseLayout->addMultiCellWidget( comboCategory, 2, 2, 1, 3 ); - - TextLabel3 = new QLabel( this, "TextLabel3" ); - TextLabel3->setText( tr( "Start - End " ) ); - - DateEntryBaseLayout->addMultiCellWidget( TextLabel3, 3, 4, 0, 0 ); - - buttonStart = new QPushButton( this, "buttonStart" ); - buttonStart->setText( tr( "Jan 02 00" ) ); - buttonStart->setMinimumSize( QSize( 70, 0 ) ); - buttonStart->setMaximumSize( QSize( 70, 32767 ) ); - - DateEntryBaseLayout->addWidget( buttonStart, 3, 1 ); - - comboStart = new QLineEdit( this, "comboStart" ); - comboStart->setMinimumSize( QSize( 70, 0 ) ); - comboStart->setMaximumSize( QSize( 70, 32767 ) ); - comboStart->setAlignment( int( QLineEdit::AlignHCenter ) ); - - DateEntryBaseLayout->addWidget( comboStart, 4, 1 ); - QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); - DateEntryBaseLayout->addMultiCell( spacer, 3, 4, 2, 2 ); - - timePickerStart = new TimePicker( this, "timePickerStart" ); - - DateEntryBaseLayout->addMultiCellWidget( timePickerStart, 5, 5, 1, 3 ); - - buttonEnd = new QPushButton( this, "buttonEnd" ); - buttonEnd->setText( tr( "Jan 02 00" ) ); - buttonEnd->setMinimumSize( QSize( 70, 0 ) ); - buttonEnd->setMaximumSize( QSize( 70, 32767 ) ); - - DateEntryBaseLayout->addWidget( buttonEnd, 3, 3 ); - - comboEnd = new QLineEdit( this, "comboEnd" ); - comboEnd->setMinimumSize( QSize( 70, 0 ) ); - comboEnd->setMaximumSize( QSize( 70, 32767 ) ); - comboEnd->setAlignment( int( QLineEdit::AlignHCenter ) ); - - DateEntryBaseLayout->addWidget( comboEnd, 4, 3 ); - - TimePickerLabel = new QLabel( this, "TimePickerLabel" ); - TimePickerLabel->setText( tr( "Start time" ) ); - - DateEntryBaseLayout->addWidget( TimePickerLabel, 5, 0 ); - - checkAllDay = new QCheckBox( this, "checkAllDay" ); - checkAllDay->setText( tr( "All day" ) ); - - DateEntryBaseLayout->addWidget( checkAllDay, 6, 0 ); - - TextLabel3_2_2 = new QLabel( this, "TextLabel3_2_2" ); - TextLabel3_2_2->setText( tr( "Time zone" ) ); - - DateEntryBaseLayout->addWidget( TextLabel3_2_2, 7, 0 ); - - timezone = new TimeZoneSelector( this, "timezone" ); - - DateEntryBaseLayout->addMultiCellWidget( timezone, 7, 7, 1, 3 ); - - checkAlarm = new QCheckBox( this, "checkAlarm" ); - checkAlarm->setEnabled( TRUE ); - checkAlarm->setAutoMask( FALSE ); - checkAlarm->setText( tr( "&Alarm" ) ); - checkAlarm->setChecked( FALSE ); - - DateEntryBaseLayout->addWidget( checkAlarm, 8, 0 ); - - spinAlarm = new QSpinBox( this, "spinAlarm" ); - spinAlarm->setEnabled( FALSE ); - spinAlarm->setSuffix( tr( " minutes" ) ); - spinAlarm->setMaxValue( 180 ); - spinAlarm->setMinValue( 0 ); - spinAlarm->setLineStep( 5 ); - spinAlarm->setValue( 5 ); - - DateEntryBaseLayout->addMultiCellWidget( spinAlarm, 8, 8, 1, 2 ); - - comboSound = new QComboBox( FALSE, this, "comboSound" ); - comboSound->insertItem( tr( "Silent" ) ); - comboSound->insertItem( tr( "Loud" ) ); - comboSound->setEnabled( FALSE ); - - DateEntryBaseLayout->addWidget( comboSound, 8, 3 ); - - lblRepeat = new QLabel( this, "lblRepeat" ); - lblRepeat->setText( tr( "Repeat" ) ); - - DateEntryBaseLayout->addWidget( lblRepeat, 9, 0 ); - - cmdRepeat = new QToolButton( this, "cmdRepeat" ); - cmdRepeat->setFocusPolicy( QToolButton::TabFocus ); - cmdRepeat->setText( tr( "No Repeat..." ) ); - cmdRepeat->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, cmdRepeat->sizePolicy().hasHeightForWidth() ) ); - - DateEntryBaseLayout->addMultiCellWidget( cmdRepeat, 9, 9, 1, 3 ); - - editNote = new QToolButton( this, "editNote" ); - editNote->setText( tr( "Note..." ) ); - - DateEntryBaseLayout->addMultiCellWidget( editNote, 10, 10, 0, 3 ); - - // signals and slots connections - connect( checkAlarm, SIGNAL( toggled(bool) ), spinAlarm, SLOT( setEnabled(bool) ) ); - connect( comboEnd, SIGNAL( textChanged(const QString&) ), this, SLOT( endTimeChanged( const QString & ) ) ); - connect( cmdRepeat, SIGNAL( clicked() ), this, SLOT( slotRepeat() ) ); - connect( comboStart, SIGNAL( textChanged(const QString &) ), this, SLOT( startTimeEdited( const QString & ) ) ); - connect( checkAllDay, SIGNAL( toggled(bool) ), comboEnd, SLOT( setDisabled(bool) ) ); - connect( checkAllDay, SIGNAL( toggled(bool) ), timePickerStart, SLOT( setDisabled(bool) ) ); - connect( checkAlarm, SIGNAL( toggled(bool) ), comboSound, SLOT( setEnabled(bool) ) ); - connect( checkAllDay, SIGNAL( toggled(bool) ), comboStart, SLOT( setDisabled(bool) ) ); - connect( checkAllDay, SIGNAL( toggled(bool) ), buttonEnd, SLOT( setDisabled(bool) ) ); -} - -/* - * Destroys the object and frees any allocated resources - */ -DateEntryBase::~DateEntryBase() -{ - // no need to delete child widgets, Qt does it all for us -} - -void DateEntryBase::endDateChanged( const QString & ) -{ - qWarning( "DateEntryBase::endDateChanged( const QString & ): Not implemented yet!" ); -} - -void DateEntryBase::endDateChanged( int, int, int ) -{ - qWarning( "DateEntryBase::endDateChanged( int, int, int ): Not implemented yet!" ); -} - -void DateEntryBase::endTimeChanged( const QString & ) -{ - qWarning( "DateEntryBase::endTimeChanged( const QString & ): Not implemented yet!" ); -} - -void DateEntryBase::slotRepeat() -{ - qWarning( "DateEntryBase::slotRepeat(): Not implemented yet!" ); -} - -void DateEntryBase::slotWait( int ) -{ - qWarning( "DateEntryBase::slotWait( int ): Not implemented yet!" ); -} - -void DateEntryBase::startDateChanged( const QString & ) -{ - qWarning( "DateEntryBase::startDateChanged( const QString & ): Not implemented yet!" ); -} - -void DateEntryBase::startDateChanged(int, int, int) -{ - qWarning( "DateEntryBase::startDateChanged(int, int, int): Not implemented yet!" ); -} - -void DateEntryBase::startTimeEdited( const QString & ) -{ - qWarning( "DateEntryBase::startTimeEdited( const QString & ): Not implemented yet!" ); -} - -void DateEntryBase::typeChanged( const QString & ) -{ - qWarning( "DateEntryBase::typeChanged( const QString & ): Not implemented yet!" ); -} - -void DateEntryBase::tzexecute(void) -{ - qWarning( "DateEntryBase::tzexecute(void): Not implemented yet!" ); -} - |