Logo Search packages:      
Sourcecode: kbruch version File versions  Download package

Public Slots | Signals | Public Member Functions | Private Types | Private Slots | Private Member Functions | Private Attributes

ExerciseCompare Class Reference

#include <exercisecompare.h>

Inheritance diagram for ExerciseCompare:
Inheritance graph
Collaboration diagram for ExerciseCompare:
Collaboration graph

List of all members.

Public Slots

void update ()


void signalExerciseSkipped ()
void signalExerciseSolvedCorrect ()
void signalExerciseSolvedWrong ()

Public Member Functions

 ExerciseCompare (QWidget *parent=0)
void forceNewTask ()
void setQuestionMixed (bool value)
 ~ExerciseCompare ()

Private Types

enum  SignButtonState { lessThen, greaterThen, equalTo }

Private Slots

void slotEqualButtonClicked ()
void slotMinorButtonClicked ()
void slotMoreButtonClicked ()
void slotSkipButtonClicked ()

Private Member Functions

void createTask ()
void nextTask ()
void showResult ()

Private Attributes

QGridLayout * baseGrid
QGridLayout * checkLayout
QWidget * checkWidget
short m_currentState
QPushButton * m_equalButton
ratio m_firstRatio
QPushButton * m_minorButton
QPushButton * m_moreButton
bool m_questionMixed
ratio m_secondRatio
SignButtonState m_signButtonState
QPushButton * m_skipButton
QGridLayout * taskLayout
QWidget * taskWidget

Detailed Description

Constructs a QWidget, which shows the task to the user. The class also provides input fields, so that the user can enter the result. It also controls the interaction, so that the entered result gets checked and a new task can be generated.

Sebastian Stein

Definition at line 53 of file exercisecompare.h.

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index