-rw-r--r-- | korganizer/timespanview.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/korganizer/timespanview.h b/korganizer/timespanview.h new file mode 100644 index 0000000..34cb1f7 --- a/dev/null +++ b/korganizer/timespanview.h | |||
@@ -0,0 +1,60 @@ | |||
1 | #ifndef TIMESPANVIEW_H | ||
2 | #define TIMESPANVIEW_H | ||
3 | |||
4 | #include <qwidget.h> | ||
5 | |||
6 | #include <libkcal/event.h> | ||
7 | |||
8 | //class QSplitter; | ||
9 | #ifndef DESKTOP_VERSION | ||
10 | class QKSplitter; | ||
11 | #else | ||
12 | class QSplitter; | ||
13 | #define QKSplitter QSplitter | ||
14 | #endif | ||
15 | class QListView; | ||
16 | class LineView; | ||
17 | class TimeLine; | ||
18 | |||
19 | |||
20 | class TimeSpanView : public QWidget | ||
21 | { | ||
22 | Q_OBJECT | ||
23 | public: | ||
24 | TimeSpanView( QWidget *parent=0, const char *name=0 ); | ||
25 | virtual ~TimeSpanView(); | ||
26 | |||
27 | void addItem( KCal::Event * ); | ||
28 | |||
29 | QValueList<int> splitterSizes(); | ||
30 | void setSplitterSizes( QValueList<int> ); | ||
31 | |||
32 | void clear(); | ||
33 | |||
34 | void setDateRange( const QDateTime &start, const QDateTime &end ); | ||
35 | |||
36 | QDateTime startDateTime(); | ||
37 | QDateTime endDateTime(); | ||
38 | |||
39 | public slots: | ||
40 | void updateView(); | ||
41 | |||
42 | void zoomIn(); | ||
43 | void zoomOut(); | ||
44 | void centerView(); | ||
45 | |||
46 | signals: | ||
47 | void dateRangeChanged(); | ||
48 | |||
49 | private: | ||
50 | QKSplitter *mSplitter; | ||
51 | QListView *mList; | ||
52 | TimeLine *mTimeLine; | ||
53 | LineView *mLineView; | ||
54 | |||
55 | QDateTime mStartDate; | ||
56 | QDateTime mEndDate; | ||
57 | int mSecsPerPixel; | ||
58 | }; | ||
59 | |||
60 | #endif | ||