keduca
kquestion.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef KQUESTION_H
00020 #define KQUESTION_H
00021
00022 #include <qhbox.h>
00023 #include <qtextedit.h>
00024 #include <qlabel.h>
00025
00026 class QTimer;
00027 class KProgress;
00028
00033 class KQuestion : public QHBox
00034 {
00035 Q_OBJECT
00036
00037 public:
00038 KQuestion(QWidget *parent=0, const char *name=0);
00039 ~KQuestion();
00041 void setPixmap( const QPixmap pixmap);
00043 void setText( const QString &text);
00044
00050 void countdown(int starttime);
00051
00052 void countdownVisible(bool visible);
00053
00055 int getCurrentTime();
00056
00057 private slots:
00058 void countDownOne();
00059
00060 private:
00061
00062
00063
00065 void initGUI();
00066
00067
00068
00070 QTextEdit *_view;
00072 QLabel *_picture;
00073 QTimer *_countdownTimer;
00074 KProgress *_countdownWidget;
00075 int _currentCount;
00076 int _totalCount;
00077 };
00078
00079 #endif