summaryrefslogtreecommitdiffabout
path: root/korganizer/timeline.h
authorzautrix <zautrix>2004-06-26 19:01:18 (UTC)
committer zautrix <zautrix>2004-06-26 19:01:18 (UTC)
commitb9aad1f15dc600e4dbe4c62d3fcced6363188ba3 (patch) (unidiff)
tree2c3d4004fb21c72cba65793859f9bcd8ffd3a49c /korganizer/timeline.h
downloadkdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.zip
kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.tar.gz
kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.tar.bz2
Initial revision
Diffstat (limited to 'korganizer/timeline.h') (more/less context) (show 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