Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

dateentryimpl.h

Go to the documentation of this file.
00001 /*
00002                              This file is part of the Opie Project
00003 
00004                              Copyright (C) Opie Team <opie-devel@handhelds.org>
00005               =.
00006             .=l.
00007            .>+-=
00008  _;:,     .>    :=|.         This program is free software; you can
00009 .> <`_,   >  .   <=          redistribute it and/or  modify it under
00010 :`=1 )Y*s>-.--   :           the terms of the GNU Library General Public
00011 .="- .-=="i,     .._         License as published by the Free Software
00012  - .   .-<_>     .<>         Foundation; either version 2 of the License,
00013      ._= =}       :          or (at your option) any later version.
00014     .%`+i>       _;_.
00015     .i_,=:_.      -<s.       This program is distributed in the hope that
00016      +  .  -:.       =       it will be useful,  but WITHOUT ANY WARRANTY;
00017     : ..    .:,     . . .    without even the implied warranty of
00018     =_        +     =;=|`    MERCHANTABILITY or FITNESS FOR A
00019   _.=:.       :    :=>`:     PARTICULAR PURPOSE. See the GNU
00020 ..}^=.=       =       ;      Library General Public License for more
00021 ++=   -.     .`     .:       details.
00022 :     =  ...= . :.=-
00023  -.   .:....=;==+<;          You should have received a copy of the GNU
00024   -_. . .   )=.  =           Library General Public License along with
00025     --        :-=`           this library; see the file COPYING.LIB.
00026                              If not, write to the Free Software Foundation,
00027                              Inc., 59 Temple Place - Suite 330,
00028                              Boston, MA 02111-1307, USA.
00029 */
00030 
00031 #ifndef DATEENTRY_H
00032 #define DATEENTRY_H
00033 
00034 #include "dateentry.h"
00035 #include "noteentryimpl.h"
00036 
00037 #include <qpe/event.h>
00038 
00039 #include <qdatetime.h>
00040 
00041 class DateBookMonth;
00042 
00043 class DateEntry : public DateEntryBase
00044 {
00045     Q_OBJECT
00046 
00047 public:
00048     DateEntry( bool startOnMonday, const QDateTime &start,
00049                const QDateTime &end, bool whichClock = FALSE,
00050                QWidget* parent = 0, const char* name = 0 );
00051     DateEntry( bool startOnMonday, const Event &event, bool whichCLock = FALSE,
00052                QWidget* parent = 0, const char* name = 0 );
00053     ~DateEntry();
00054 
00055     Event event();
00056     void setAlarmEnabled( bool alarmPreset, int presetTime, Event::SoundTypeChoice );
00057     virtual bool eventFilter( QObject *, QEvent * );
00058 public slots:
00059     void endDateChanged( int, int, int );
00060     void endTimeChanged( const QString & );
00061     void endTimeChanged( const QTime & );
00062     void startDateChanged(int, int, int);
00063     void startTimeEdited( const QString & );
00064     void startTimeChanged( const QTime & );
00065     void startTimePicked( const QTime & );
00066     void typeChanged( const QString & );
00067     void slotRepeat();
00068     void slotChangeClock( bool );
00069     void slotChangeStartOfWeek( bool );
00070     void slotEditNote();
00071 
00072 private:
00073     void init();
00074     void initCombos();
00075     void setDates( const QDateTime& s, const QDateTime& e );
00076     void setRepeatLabel();
00077     void updateTimeEdit(bool,bool);
00078 
00079     DateBookMonth *startPicker, *endPicker;
00080     QDate startDate, endDate;
00081     QTime startTime, endTime;
00082     Event::RepeatPattern rp;
00083     bool ampm:1;
00084     bool startWeekOnMonday:1;
00085     bool m_showStart:1;
00086 
00087     QString noteStr;
00088 };
00089 
00090 #endif // DATEENTRY_H

Generated on Sat Nov 5 16:15:48 2005 for OPIE by  doxygen 1.4.2