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

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

TaskView Class Reference

#include <taskview.h>

Inheritance diagram for TaskView:
Inheritance graph
[legend]
Collaboration diagram for TaskView:
Collaboration graph
[legend]

List of all members.

Signals

void signalTaskSkipped ()
void signalTaskSolvedCorrect ()
void signalTaskSolvedWrong ()

Public Member Functions

void forceNewTask ()
void setAnswerMixed (bool value)
void setQuestionMixed (bool value)
void setReducedForm (bool value)
void setTaskParameters (bool padd_add=true, bool padd_div=false, bool padd_mult=false, bool padd_sub=false, unsigned int pnr_ratios=2, unsigned int pmax_md=2)
 TaskView (QWidget *parent=0, bool padd_add=true, bool padd_div=false, bool padd_mult=false, bool padd_sub=false, unsigned int pnr_ratios=2, unsigned int pmax_md=10)
 ~TaskView ()

Protected Member Functions

void showEvent (QShowEvent *event)

Private Slots

void denominatorReturnPressed (const QString &)
void integerReturnPressed (const QString &)
void numeratorReturnPressed (const QString &)
void slotCheckButtonClicked ()
void slotSkipButtonClicked ()

Private Member Functions

void nextTask ()
void showResult ()

Private Attributes

QGridLayout * baseGrid
QGridLayout * checkLayout
QWidget * checkWidget
unsigned int curr_nr_ratios
task current_task
QFont defaultFont
KLineEdit * deno_edit
QFrame * edit_line
ratio entered_result
KLineEdit * integer_edit
bool m_addAdd
bool m_addDiv
bool m_addMult
bool m_addSub
bool m_answerMixed
QPushButton * m_checkButton
short m_currentState
bool m_questionMixed
bool m_reducedForm
ResultWidgetm_resultWidget
QPushButton * m_skipButton
bool m_solutionMixed
TaskWidgetm_taskWidget
unsigned int max_md
unsigned int nr_ratios
KLineEdit * numer_edit
ratio solution
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 58 of file taskview.h.


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

Generated by  Doxygen 1.6.0   Back to index