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

datebookdayallday.h

Go to the documentation of this file.
00001 /*
00002                              This file is part of the Opie Project
00003 
00004                              Copyright (C) Rajko Albrecht <>
00005                              Copyright (C) Opie Team <opie-devel@handhelds.org>
00006               =.
00007             .=l.
00008            .>+-=
00009  _;:,     .>    :=|.         This program is free software; you can
00010 .> <`_,   >  .   <=          redistribute it and/or  modify it under
00011 :`=1 )Y*s>-.--   :           the terms of the GNU Library General Public
00012 .="- .-=="i,     .._         License as published by the Free Software
00013  - .   .-<_>     .<>         Foundation; either version 2 of the License,
00014      ._= =}       :          or (at your option) any later version.
00015     .%`+i>       _;_.
00016     .i_,=:_.      -<s.       This program is distributed in the hope that
00017      +  .  -:.       =       it will be useful,  but WITHOUT ANY WARRANTY;
00018     : ..    .:,     . . .    without even the implied warranty of
00019     =_        +     =;=|`    MERCHANTABILITY or FITNESS FOR A
00020   _.=:.       :    :=>`:     PARTICULAR PURPOSE. See the GNU
00021 ..}^=.=       =       ;      Library General Public License for more
00022 ++=   -.     .`     .:       details.
00023 :     =  ...= . :.=-
00024  -.   .:....=;==+<;          You should have received a copy of the GNU
00025   -_. . .   )=.  =           Library General Public License along with
00026     --        :-=`           this library; see the file COPYING.LIB.
00027                              If not, write to the Free Software Foundation,
00028                              Inc., 59 Temple Place - Suite 330,
00029                              Boston, MA 02111-1307, USA.
00030 */
00031 
00032 #ifndef DATEBOOKDAYALLDAYBASE_H
00033 #define DATEBOOKDAYALLDAYBASE_H
00034 
00035 #include <qvariant.h>
00036 #include <qframe.h>
00037 #include <qscrollview.h>
00038 #include <qlabel.h>
00039 #include <qlist.h>
00040 #include <qpe/event.h>
00041 
00042 class QVBoxLayout;
00043 class QHBoxLayout;
00044 class QGridLayout;
00045 class DatebookAlldayDisp;
00046 class DatebookEventDesc;
00047 class DateBookDB;
00048 
00049 class DatebookdayAllday : public QScrollView
00050 {
00051     Q_OBJECT
00052 
00053 public:
00054     DatebookdayAllday(DateBookDB* db,
00055             QWidget* parent = 0, const char* name = 0, WFlags fl = 0);
00056     ~DatebookdayAllday();
00057     DatebookAlldayDisp* addEvent(const EffectiveEvent&e);
00058     DatebookAlldayDisp* addHoliday(const QString&e);
00059     const unsigned int items()const{return item_count;}
00060 
00061 public slots:
00062     void removeAllEvents();
00063 
00064 protected:
00065     QFrame * m_MainFrame;
00066     QVBoxLayout* datebookdayalldayLayout;
00067     DatebookEventDesc * lblDesc;
00068     unsigned int item_count;
00069     QList<DatebookAlldayDisp> subWidgets;
00070     DateBookDB *dateBook;
00071 };
00072 
00073 class DatebookAlldayDisp : public QLabel
00074 {
00075     Q_OBJECT
00076 
00077 public:
00078     DatebookAlldayDisp(DateBookDB* db,const EffectiveEvent& e,
00079                        QWidget* parent=0,const char* name = 0, WFlags fl=0);
00080     DatebookAlldayDisp(const QString&aholiday,
00081                        QWidget* parent=0,const char* name = 0, WFlags fl=0);
00082     virtual ~DatebookAlldayDisp();
00083 
00084 signals:
00085     void deleteMe( const Event &e );
00086     void duplicateMe( const Event &e );
00087     void editMe( const Event &e );
00088     void beamMe( const Event &e );
00089     void displayMe(const Event &e);
00090 
00091 public slots:
00092 
00093 protected:
00094     EffectiveEvent m_Ev;
00095     DateBookDB* dateBook;
00096     void mousePressEvent( QMouseEvent *e );
00097     void beam_single_event();
00098     bool m_holiday:1;
00099 };
00100 
00101 class DatebookEventDesc: public QLabel
00102 {
00103     Q_OBJECT
00104 
00105 public:
00106     DatebookEventDesc(QWidget* Parent=0,const char* name = 0);
00107     virtual ~DatebookEventDesc();
00108 
00109 public slots:
00110     void disp_event(const Event&e);
00111 
00112 protected:
00113     void mousePressEvent(QMouseEvent*e);
00114     QTimer* m_Timer;
00115 };
00116 
00117 #endif // DATEBOOKDAYALLDAYBASE_H

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