timeline.h
00001 #ifndef TIMELINE_H
00002 #define TIMELINE_H
00003
00004 #include <qscrollview.h>
00005 #include <qdatetime.h>
00006
00007 class TimeLine : public QScrollView
00008 {
00009 Q_OBJECT
00010 public:
00011 TimeLine( QWidget *parent = 0, const char *name = 0 );
00012 virtual ~TimeLine();
00013
00014 void setDateRange( const QDateTime &start, const QDateTime &end );
00015
00016 public slots:
00017 void setContentsPos( int pos );
00018
00019 protected:
00020 void drawContents(QPainter* p, int cx, int cy, int cw, int ch);
00021
00022 private:
00023 QDateTime mStartDate;
00024 QDateTime mEndDate;
00025
00026 int mPixelWidth;
00027 int mDaySpacing;
00028 int mDayOffset;
00029 int mSecsPerPixel;
00030 };
00031
00032 #endif
00033
This file is part of the documentation for kdelibs Version 3.1.5.