• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

parley

Public Types | Public Member Functions | List of all members
TestEntry Class Reference

#include <testentry.h>

Public Types

enum  ErrorType {
  SpellingMistake = 0x01, CapitalizationMistake = 0x02, AccentMistake = 0x04, ArticleWrong = 0x08,
  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 ()
 
QList< KEduVocWordFlags > conjugationPronouns () const
 
QString conjugationTense () const
 
bool correctAtFirstAttempt ()
 
KEduVocExpression * entry () const
 
bool isUnseenQuestion () const
 
int languageFrom () const
 
int languageTo () const
 
ErrorTypes lastErrors ()
 
double lastPercentage ()
 
void setConjugationPronouns (const QList< KEduVocWordFlags > &flags)
 
void setConjugationTense (const QString &tense)
 
void setLanguageFrom (int from)
 
void setLanguageTo (int to)
 
void setLastErrors (ErrorTypes errorTypes)
 
void setLastPercentage (double percent)
 
bool shouldChangeGrades ()
 
int statisticBadCount ()
 
int statisticCount ()
 
int statisticGoodCount ()
 
void updateStatisticsRightAnswer (grade_t currentPreGrade, grade_t currentGrade)
 
void updateStatisticsWrongAnswer (grade_t currentPreGrade, grade_t currentGrade)
 
QStringList userAnswers ()
 

Detailed Description

Definition at line 22 of file testentry.h.

Member Enumeration Documentation

enum TestEntry::ErrorType
Enumerator
SpellingMistake 
CapitalizationMistake 

< misspelled

AccentMistake 

< capitalization error (whAt)

ArticleWrong 

< an accent is missing or wrong (é)

ArticleMissing 

< solution is correct with the article interchanged

FalseFriend 

< solution is correct with the article missing

Synonym 

< a false friend

Empty 

< a synonym (may be correct)

UnrelatedWord 

< empty answer string

Incomplete 

< a valid word but no connection to the solution

Correct 

< the part that was entered is right, but not complete

Wrong 

< no error, solution was right

Definition at line 25 of file testentry.h.

Constructor & Destructor Documentation

TestEntry::TestEntry ( KEduVocExpression *  entry)

Definition at line 19 of file testentry.cpp.

Member Function Documentation

void TestEntry::addUserAnswer ( const QString &  answer)
inline

Definition at line 82 of file testentry.h.

int TestEntry::answeredCorrectInSequence ( )

Definition at line 44 of file testentry.cpp.

QList< KEduVocWordFlags > TestEntry::conjugationPronouns ( ) const

In conjugation mode, use these pronouns for the entry.

Definition at line 164 of file testentry.cpp.

QString TestEntry::conjugationTense ( ) const

In conjugation mode, use this tense for the entry.

Definition at line 154 of file testentry.cpp.

bool TestEntry::correctAtFirstAttempt ( )

Definition at line 124 of file testentry.cpp.

KEduVocExpression * TestEntry::entry ( ) const

Definition at line 149 of file testentry.cpp.

bool TestEntry::isUnseenQuestion ( ) const

Definition at line 119 of file testentry.cpp.

int TestEntry::languageFrom ( ) const

Definition at line 109 of file testentry.cpp.

int TestEntry::languageTo ( ) const

Definition at line 114 of file testentry.cpp.

TestEntry::ErrorTypes TestEntry::lastErrors ( )

Definition at line 134 of file testentry.cpp.

double TestEntry::lastPercentage ( )

Definition at line 144 of file testentry.cpp.

void TestEntry::setConjugationPronouns ( const QList< KEduVocWordFlags > &  flags)

Definition at line 169 of file testentry.cpp.

void TestEntry::setConjugationTense ( const QString &  tense)

Definition at line 159 of file testentry.cpp.

void TestEntry::setLanguageFrom ( int  from)

Definition at line 34 of file testentry.cpp.

void TestEntry::setLanguageTo ( int  to)

Definition at line 39 of file testentry.cpp.

void TestEntry::setLastErrors ( ErrorTypes  errorTypes)

Definition at line 129 of file testentry.cpp.

void TestEntry::setLastPercentage ( double  percent)

Definition at line 139 of file testentry.cpp.

bool TestEntry::shouldChangeGrades ( )

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 91 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 ( grade_t  currentPreGrade,
grade_t  currentGrade 
)

update the internal statistics for this practice with a right result

Definition at line 64 of file testentry.cpp.

void TestEntry::updateStatisticsWrongAnswer ( grade_t  currentPreGrade,
grade_t  currentGrade 
)

update the internal statistics for this practice with a wrong result

Definition at line 96 of file testentry.cpp.

QStringList TestEntry::userAnswers ( )
inline

Definition at line 85 of file testentry.h.


The documentation for this class was generated from the following files:
  • testentry.h
  • testentry.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:15:57 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

parley

Skip menu "parley"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal