korganizer Library API Documentation

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 
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.4.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sat Oct 18 02:47:32 2003 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001