parley
#include <genderbackendmode.h>

Public Member Functions | |
GenderBackendMode (const PracticeOptions &PracticeOptions, AbstractFrontend *frontend, QObject *parent, Practice::TestEntryManager *testEntryManager, KEduVocDocument *doc) | |
![]() | |
MultipleChoiceBackendMode (const PracticeOptions &PracticeOptions, AbstractFrontend *frontend, QObject *parent, Practice::TestEntryManager *testEntryManager) | |
virtual void | checkAnswer () |
virtual bool | setTestEntry (TestEntry *current) |
![]() | |
AbstractBackendMode (const PracticeOptions &practiceOptions, AbstractFrontend *frontend, QObject *parent) | |
virtual | ~AbstractBackendMode () |
void | addSynonym (const QString &entry) |
virtual grade_t | currentGradeForEntry () |
Protected Member Functions | |
virtual void | prepareChoices (TestEntry *current) |
virtual void | updateGrades () |
![]() | |
int | numberOfChoices () |
void | setChoices (const QStringList &choices) |
void | setCorrectAnswer (int index) |
void | setQuestion (const QString &question) |
Additional Inherited Members | |
![]() | |
virtual void | hintAction () |
![]() | |
virtual void | hintAction ()=0 |
![]() | |
void | answerRight () |
void | answerWrongRetry () |
void | answerWrongShowSolution () |
void | nextEntry () |
void | removeCurrentEntryFromPractice () |
void | showSolution () |
![]() | |
TestEntry * | m_current |
AbstractFrontend * | m_frontend |
PracticeOptions | m_practiceOptions |
QStringList | m_synonyms |
Detailed Description
Definition at line 23 of file genderbackendmode.h.
Constructor & Destructor Documentation
GenderBackendMode::GenderBackendMode | ( | const PracticeOptions & | PracticeOptions, |
AbstractFrontend * | frontend, | ||
QObject * | parent, | ||
Practice::TestEntryManager * | testEntryManager, | ||
KEduVocDocument * | doc | ||
) |
Definition at line 24 of file genderbackendmode.cpp.
Member Function Documentation
|
protectedvirtual |
set the list of possible answers.
This function needs to call setCorrectAnswer and setChoices
Reimplemented from Practice::MultipleChoiceBackendMode.
Definition at line 55 of file genderbackendmode.cpp.
|
protectedvirtual |
Change the grades for the current entry.
The default implementation changes the grade of the current translation. Modes working on other parts of the translations need to re-implement this.
Reimplemented from Practice::AbstractBackendMode.
Definition at line 109 of file genderbackendmode.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.