parley
#include <testentry.h>
Public Types | |
enum | ErrorType { SpellingMistake = 0x1, CapitalizationMistake = 0x2, AccentMistake = 0x4, ArticleWrong = 0x8, ArticleMissing = 0x10, FalseFriend = 0x20, Synonym = 0x40, Empty = 0x80, UnrelatedWord = 0x100, Incomplete = 0x200, Correct = 0x400, Wrong = 0x800 } |
Public Member Functions | |
TestEntry (KEduVocExpression *entry) | |
void | addUserAnswer (const QString &answer) |
int | answeredCorrectInSequence () |
bool | changeGrades () |
QList< KEduVocWordFlags > | conjugationPronouns () const |
QString | conjugationTense () const |
bool | correctAtFirstAttempt () |
KEduVocExpression * | entry () |
ErrorTypes | lastErrors () |
double | lastPercentage () |
void | setConjugationPronouns (const QList< KEduVocWordFlags > &flags) |
void | setConjugationTense (const QString &tense) |
void | setLastErrors (ErrorTypes errorTypes) |
void | setLastPercentage (double percent) |
int | statisticBadCount () |
int | statisticCount () |
int | statisticGoodCount () |
void | updateStatisticsRightAnswer () |
void | updateStatisticsWrongAnswer () |
QStringList | userAnswers () |
Static Public Member Functions | |
static int | gradeFrom () |
static int | gradeTo () |
static void | setGradeFrom (int from) |
static void | setGradeTo (int to) |
Detailed Description
Definition at line 22 of file testentry.h.
Member Enumeration Documentation
enum TestEntry::ErrorType |
Definition at line 25 of file testentry.h.
Constructor & Destructor Documentation
TestEntry::TestEntry | ( | KEduVocExpression * | entry | ) |
Definition at line 21 of file testentry.cpp.
Member Function Documentation
|
inline |
Definition at line 81 of file testentry.h.
int TestEntry::answeredCorrectInSequence | ( | ) |
Definition at line 44 of file testentry.cpp.
bool TestEntry::changeGrades | ( | ) |
check if the entry was finished and the practice backend may update the grades that will be saved to the file persistently
- Returns
- whether the entry is done
Definition at line 86 of file testentry.cpp.
QList< KEduVocWordFlags > TestEntry::conjugationPronouns | ( | ) | const |
In conjugation mode, use these pronouns for the entry.
Definition at line 149 of file testentry.cpp.
QString TestEntry::conjugationTense | ( | ) | const |
In conjugation mode, use this tense for the entry.
Definition at line 139 of file testentry.cpp.
bool TestEntry::correctAtFirstAttempt | ( | ) |
Definition at line 109 of file testentry.cpp.
KEduVocExpression * TestEntry::entry | ( | ) |
Definition at line 134 of file testentry.cpp.
|
static |
Definition at line 99 of file testentry.cpp.
|
static |
Definition at line 104 of file testentry.cpp.
TestEntry::ErrorTypes TestEntry::lastErrors | ( | ) |
Definition at line 119 of file testentry.cpp.
double TestEntry::lastPercentage | ( | ) |
Definition at line 129 of file testentry.cpp.
void TestEntry::setConjugationPronouns | ( | const QList< KEduVocWordFlags > & | flags | ) |
Definition at line 154 of file testentry.cpp.
void TestEntry::setConjugationTense | ( | const QString & | tense | ) |
Definition at line 144 of file testentry.cpp.
|
static |
Definition at line 39 of file testentry.cpp.
|
static |
Definition at line 34 of file testentry.cpp.
void TestEntry::setLastErrors | ( | ErrorTypes | errorTypes | ) |
Definition at line 114 of file testentry.cpp.
void TestEntry::setLastPercentage | ( | double | percent | ) |
Definition at line 124 of file testentry.cpp.
int TestEntry::statisticBadCount | ( | ) |
Definition at line 54 of file testentry.cpp.
int TestEntry::statisticCount | ( | ) |
Definition at line 49 of file testentry.cpp.
int TestEntry::statisticGoodCount | ( | ) |
Definition at line 59 of file testentry.cpp.
void TestEntry::updateStatisticsRightAnswer | ( | ) |
update the internal statistics for this practice with a right result
Definition at line 64 of file testentry.cpp.
void TestEntry::updateStatisticsWrongAnswer | ( | ) |
update the internal statistics for this practice with a wrong result
Definition at line 91 of file testentry.cpp.
|
inline |
Definition at line 82 of file testentry.h.
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.