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

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

ExerciseFactorize Class Reference

#include <exercisefactorize.h>

Inheritance diagram for ExerciseFactorize:
Inheritance graph
Collaboration diagram for ExerciseFactorize:
Collaboration graph

List of all members.

Public Slots

void update ()


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

Public Member Functions

 ExerciseFactorize (QWidget *parent=0)
void forceNewTask ()
 ~ExerciseFactorize ()

Protected Member Functions

void showEvent (QShowEvent *event)

Private Slots

void slotCheckButtonClicked ()
void slotFactor11ButtonClicked ()
void slotFactor13ButtonClicked ()
void slotFactor17ButtonClicked ()
void slotFactor19ButtonClicked ()
void slotFactor2ButtonClicked ()
void slotFactor3ButtonClicked ()
void slotFactor5ButtonClicked ()
void slotFactor7ButtonClicked ()
void slotRemoveLastFactorButtonClicked ()
void slotSkipButtonClicked ()

Private Member Functions

void addFactor (uint factor)
void createTask ()
void nextTask ()
void showResult ()
void updateEnteredEdit ()

Private Attributes

QGridLayout * baseGrid
QGridLayout * checkLayout
QWidget * checkWidget
uint m_buffer
QPushButton * m_checkButton
short m_currentState
bool m_edit
QLabel * m_equalSignLabel
QPushButton * m_factor11Button
QPushButton * m_factor13Button
QPushButton * m_factor17Button
QPushButton * m_factor19Button
QPushButton * m_factor2Button
QPushButton * m_factor3Button
QPushButton * m_factor5Button
QPushButton * m_factor7Button
uintList m_factorsEntered
uintList m_factorsResult
QPushButton * m_removeLastFactorButton
QPushButton * m_skipButton
QLabel * m_taskLabel
uint m_taskNumber
QGridLayout * taskLayout
QWidget * taskWidget

Detailed Description

Construct the exercise widget to factorize a given number

Sebastian Stein

Definition at line 66 of file exercisefactorize.h.

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

Generated by  Doxygen 1.6.0   Back to index