summaryrefslogtreecommitdiffabout
path: root/korganizer/timeline.h
Unidiff
Diffstat (limited to 'korganizer/timeline.h') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/timeline.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/korganizer/timeline.h b/korganizer/timeline.h
new file mode 100644
index 0000000..ab3e5d3
--- a/dev/null
+++ b/korganizer/timeline.h
@@ -0,0 +1,33 @@
1#ifndef TIMELINE_H
2#define TIMELINE_H
3
4#include <qscrollview.h>
5#include <qdatetime.h>
6
7class TimeLine : public QScrollView
8{
9 Q_OBJECT
10 public:
11 TimeLine( QWidget *parent = 0, const char *name = 0 );
12 virtual ~TimeLine();
13
14 void setDateRange( const QDateTime &start, const QDateTime &end );
15
16 public slots:
17 void setContentsPos( int pos );
18
19 protected:
20 void drawContents(QPainter* p, int cx, int cy, int cw, int ch);
21
22 private:
23 QDateTime mStartDate;
24 QDateTime mEndDate;
25
26 int mPixelWidth;
27 int mDaySpacing;
28 int mDayOffset;
29 int mSecsPerPixel;
30};
31
32#endif
33