moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kwordquiz / src / multipleview.h
blobb66c0a7da4a40f5f0edbdb09fc7766d576558c48
1 /* This file is part of KWordQuiz
2 Copyright (C) 2003 Peter Hedlund <peter@peterandlinda.com>
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License version 2 as published by the Free Software Foundation.
8 This library is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
13 You should have received a copy of the GNU Library General Public License
14 along with this library; see the file COPYING.LIB. If not, write to
15 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
16 Boston, MA 02111-1307, USA.
19 #ifndef MULTIPLEVIEW_H
20 #define MULTIPLEVIEW_H
22 #include "multipleviewbase.h"
24 #include "wqscore.h"
26 /**
27 @author Peter Hedlund
29 class MultipleView : public MultipleViewBase
31 Q_OBJECT
32 public:
33 MultipleView(QWidget *parent = 0, const char *name = 0, WFlags f = 0);
35 ~MultipleView();
37 void setQuiz(WQQuiz *quiz);
38 void init();
40 public slots:
41 void slotCheck();
42 void slotRepeat();
43 void slotRestart();
44 void slotOpt1Clicked();
45 void slotOpt2Clicked();
46 void slotOpt3Clicked();
47 void slotApplySettings();
49 private:
50 WQQuiz *m_quiz;
51 WQScore *m_score;
53 int m_question;
54 int m_error;
56 void updateScore();
57 void showQuestion(int i);
60 #endif