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
[legend]
Collaboration diagram for ExerciseCompare:
Collaboration graph
[legend]

List of all members.

Public Slots

void update ()

Signals

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
RatioWidgetm_firstRatioWidget
QPushButton * m_minorButton
QPushButton * m_moreButton
bool m_questionMixed
ResultWidgetm_resultWidget
ratio m_secondRatio
RatioWidgetm_secondRatioWidget
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.

Author:
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