Main Page | Class Hierarchy | Compound List | File List | Compound Members

testdialog.h

00001 /***************************************************************************
00002                            testdialog.h
00003                            -------------------
00004     copyright            : (C) 2004 by Jos van den Oever
00005     email                : jos@vandenoever.info
00006  ***************************************************************************/
00007 
00008 /***************************************************************************
00009  *                                                                         *
00010  *   This program is free software; you can redistribute it and/or modify  *
00011  *   it under the terms of the GNU General Public License as published by  *
00012  *   the Free Software Foundation; either version 2 of the License, or     *
00013  *   (at your option) any later version.                                   *
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

Generated on Thu Jan 15 23:13:57 2004 for CubeTest by doxygen 1.3.2