summaryrefslogtreecommitdiff
path: root/core/pim/datebook/modules/weeklst/datebookweeklstdblview.h
blob: 808556ed6900a0474c8bd302029433f09c1502e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef _DATEBOOKWEEKLSTDBLVIEW_H
#define _DATEBOOKWEEKLSTDBLVIEW_H

#include <qpe/event.h>

#include <qwidget.h>
#include <qvaluelist.h>
#include <qdatetime.h>
#include <qstring.h>

class DateBookWeekLstView;
class QHBoxLayout;

class DateBookWeekLstDblView: public QWidget {
        Q_OBJECT
public:
    DateBookWeekLstDblView(QValueList<EffectiveEvent> &ev1,
               QValueList<EffectiveEvent> &ev2,
               QDate &d, bool onM,
               QWidget* parent = 0, const char* name = 0,
               WFlags fl = 0 );
    DateBookWeekLstDblView(QValueList<EffectiveEvent> &ev1,
               QDate &d, bool onM,
               QWidget* parent = 0, const char* name = 0,
               WFlags fl = 0 );
    virtual ~DateBookWeekLstDblView();
    void setEvents(QValueList<EffectiveEvent> &ev1,QValueList<EffectiveEvent> &ev2,QDate &d, bool onM);
    void setEvents(QValueList<EffectiveEvent> &ev1,QDate &d, bool onM);
    void setRightEvents(QValueList<EffectiveEvent> &ev1,QDate &d, bool onM);

    bool toggleDoubleView(bool how);

signals:
    void editEvent(const Event &e);
    void duplicateEvent(const Event &e);
    void removeEvent(const Event &e);
    void beamEvent(const Event &e);
    void redraw();
    void showDate(int y, int m, int d);
    void addEvent(const QDateTime &start, const QDateTime &stop,
          const QString &str, const QString &location);

protected:
    QHBoxLayout*m_MainLayout;
    DateBookWeekLstView *leftView,*rightView;
};

#endif