summaryrefslogtreecommitdiffabout
path: root/korganizer/kotimespanview.h
blob: c3e4b418f0fbe945e8e5d6f852893e3d7f81e6ac (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
#ifndef KOTIMESPANVIEW_H
#define KOTIMESPANVIEW_H

#include "koeventview.h"
//Added by qt3to4:
#include <Q3PtrList>

class KConfig;
class TimeSpanView;

class KOTimeSpanView : public KOEventView
{
    Q_OBJECT
  public:
    KOTimeSpanView(Calendar *calendar, QWidget *parent = 0, 
	           const char *name = 0);
    ~KOTimeSpanView();

    virtual int maxDatesHint();
    virtual int currentDateCount();
    virtual Q3PtrList<Incidence> selectedIncidences();
    DateList selectedDates() 
      {DateList q;
       return q;}

    void readSettings();
    void readSettings( KConfig * );
    void writeSettings( KConfig * );

  public slots:
    virtual void updateView();
    virtual void showDates(const QDate &start, const QDate &end);
    virtual void showEvents(Q3PtrList<Event> eventList);

    void changeEventDisplay(Event *, int);

  private:
    void insertItems( const QDate &start, const QDate & end );

    TimeSpanView *mTimeSpanView;
};

#endif