summaryrefslogtreecommitdiff
path: root/core/pim/datebook/modules/weeklst/datebookweeklstheader.h
blob: 818b825cdf1097f126d8ab7bd4663c4b036b0504 (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
#ifndef _DATEBOOKWEEKLSTHEADER_H
#define _DATEBOOKWEEKLSTHEADER_H

#include "datebookweeklstheaderbase.h"

#include <qdatetime.h>

class DateBookWeekLstHeader: public DateBookWeekLstHeaderBase
{
    Q_OBJECT
public:
    DateBookWeekLstHeader(bool onM, QWidget* parent = 0, const char* name = 0,
              WFlags fl = 0 );
    ~DateBookWeekLstHeader();
    void setDate(const QDate &d);

public slots:
    void nextWeek();
    void prevWeek();
    void nextMonth();
    void prevMonth();
    void pickDate();
    void setDate(int y, int m, int d);
signals:
    void dateChanged(QDate &newdate);
    void setDbl(bool on);
protected:
    QDate date;
//  bool onMonday;
    bool bStartOnMonday;

};

#endif