00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef TESTDIALOG_H
00017 #define TESTDIALOG_H
00018
00019 #include "rotenums.h"
00020 #include <qvbox.h>
00021 class CubeDialog;
00022 class QLabel;
00023 class QPushButton;
00024 class QHBox;
00025 class Question;
00026 class FileSideStyle;
00027 class SideStyle;
00028 class ClickableQLabel;
00029 struct Difficulty {
00030 QString name;
00031 short blanks;
00032 };
00033
00034 class TestDialog : public QVBox {
00035 Q_OBJECT
00036 public:
00037 TestDialog(QWidget* parent=0, const char* name=0, WFlags f=0);
00038 ~TestDialog();
00039 void setBackgroundPixmap(const QString &) const;
00040 static QString applicationDir();
00041 void setQuestion(Question &q);
00042 protected:
00043 void keyReleaseEvent(QKeyEvent *);
00044 void resizeEvent(QResizeEvent *e);
00045 private slots:
00046 void startQuestions();
00047 void finishQuestions();
00048 void changeStyle(const QString &);
00049 void setLevel(int i);
00050 private:
00051 ClickableQLabel *welcome;
00052 QLabel *conclusion, *bugmail;
00053 QPushButton *start;
00054 QHBox *restart;
00055 CubeDialog *cd;
00056 FileSideStyle *fss;
00057 SideStyle *ss;
00058 QVBox *options;
00059 };
00060 #endif