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

parley

Public Member Functions | List of all members
AnswerValidatorOld Class Reference

#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.

Author
Frederik Gladhorn frede.nosp@m.rik..nosp@m.gladh.nosp@m.orn@.nosp@m.kdema.nosp@m.il.n.nosp@m.et

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:
  • answervalidatorold.h
  • answervalidatorold.cpp
This file is part of the KDE documentation.
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.

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