parley
#include <answervalidatorold.h>
Public Member Functions | |
AnswerValidatorOld (KEduVocDocument *doc) | |
~AnswerValidatorOld () | |
void | checkUserAnswer (const QString &userAnswer) |
void | checkUserAnswer (const QString &solution, const QString &userAnswer, const QString &language=QString()) |
void | setLanguage (int translation) |
void | setTestEntry (TestEntry *entry) |
bool | spellcheckerAvailable () |
Detailed Description
Provides different comparison methods to determine the quality of the answer.
Definition at line 32 of file answervalidatorold.h.
Constructor & Destructor Documentation
AnswerValidatorOld::AnswerValidatorOld | ( | KEduVocDocument * | doc | ) |
Definition at line 52 of file answervalidatorold.cpp.
AnswerValidatorOld::~AnswerValidatorOld | ( | ) |
Definition at line 60 of file answervalidatorold.cpp.
Member Function Documentation
void AnswerValidatorOld::checkUserAnswer | ( | const QString & | userAnswer | ) |
Checks the user answer.
If the answer was correct, 1.0 is set as lastPercentage for the TestEntry, 0.0 means no relation between answer and solution whatsoever. The type of mistake is also set in the TestEntry.
- Parameters
-
userAnswer
Definition at line 308 of file answervalidatorold.cpp.
void AnswerValidatorOld::checkUserAnswer | ( | const QString & | solution, |
const QString & | userAnswer, | ||
const QString & | language = QString() |
||
) |
Definition at line 321 of file answervalidatorold.cpp.
void AnswerValidatorOld::setLanguage | ( | int | translation | ) |
Set the language for the spell checker.
(Identifierindex)
- Parameters
-
translation
Definition at line 66 of file answervalidatorold.cpp.
void AnswerValidatorOld::setTestEntry | ( | TestEntry * | entry | ) |
Sets the current entry.
This has to be set before trying to validate! It will store the results.
- Parameters
-
expression
Definition at line 94 of file answervalidatorold.cpp.
bool AnswerValidatorOld::spellcheckerAvailable | ( | ) |
Definition at line 527 of file answervalidatorold.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:15:56 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.