parley
#include <multiplechoicebackendmode.h>

Public Slots | |
| virtual void | hintAction () |
Public Slots inherited from Practice::AbstractBackendMode | |
| virtual void | hintAction ()=0 |
Public Member Functions | |
| MultipleChoiceBackendMode (const PracticeOptions &PracticeOptions, AbstractFrontend *frontend, QObject *parent, Practice::TestEntryManager *testEntryManager) | |
| virtual void | checkAnswer () |
| virtual bool | setTestEntry (TestEntry *current) |
Public Member Functions inherited from Practice::AbstractBackendMode | |
| AbstractBackendMode (const PracticeOptions &practiceOptions, AbstractFrontend *frontend, QObject *parent) | |
| virtual | ~AbstractBackendMode () |
| void | addSynonym (const QString &entry) |
| virtual grade_t | currentGradeForEntry () |
| virtual void | updateGrades () |
Protected Member Functions | |
| int | numberOfChoices () |
| virtual void | prepareChoices (TestEntry *current) |
| void | setChoices (const QStringList &choices) |
| void | setCorrectAnswer (int index) |
| void | setQuestion (const QString &question) |
Additional Inherited Members | |
Signals inherited from Practice::AbstractBackendMode | |
| void | answerRight () |
| void | answerWrongRetry () |
| void | answerWrongShowSolution () |
| void | nextEntry () |
| void | removeCurrentEntryFromPractice () |
| void | showSolution () |
Protected Attributes inherited from Practice::AbstractBackendMode | |
| TestEntry * | m_current |
| AbstractFrontend * | m_frontend |
| PracticeOptions | m_practiceOptions |
| QStringList | m_synonyms |
Detailed Description
Definition at line 23 of file multiplechoicebackendmode.h.
Constructor & Destructor Documentation
| MultipleChoiceBackendMode::MultipleChoiceBackendMode | ( | const PracticeOptions & | PracticeOptions, |
| AbstractFrontend * | frontend, | ||
| QObject * | parent, | ||
| Practice::TestEntryManager * | testEntryManager | ||
| ) |
Definition at line 22 of file multiplechoicebackendmode.cpp.
Member Function Documentation
|
virtual |
Check if the current answer is right.
This function should emit one of these signals: answerRight, answerWrongRetry, answerWrongShowSolution or showSolution
Implements Practice::AbstractBackendMode.
Definition at line 89 of file multiplechoicebackendmode.cpp.
|
virtualslot |
Definition at line 101 of file multiplechoicebackendmode.cpp.
|
protected |
Definition at line 73 of file multiplechoicebackendmode.cpp.
|
protectedvirtual |
set the list of possible answers.
This function needs to call setCorrectAnswer and setChoices
Reimplemented in Practice::GenderBackendMode.
Definition at line 53 of file multiplechoicebackendmode.cpp.
|
protected |
This must include the correct answer.
The order of the choices will be preserved.
Definition at line 78 of file multiplechoicebackendmode.cpp.
|
protected |
The correct solution, index of the choices.
Definition at line 83 of file multiplechoicebackendmode.cpp.
|
protected |
Set the question/original language.
Definition at line 68 of file multiplechoicebackendmode.cpp.
|
virtual |
start practicing a new word.
sets some default that can be overwritten by the modes. m_frontend->showQuestion() should be called after the initialization.
Reimplemented from Practice::AbstractBackendMode.
Definition at line 30 of file multiplechoicebackendmode.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
KDE API Reference
Public Slots inherited from