• 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 31 of file answervalidatorold.h.

Constructor & Destructor Documentation

AnswerValidatorOld::AnswerValidatorOld ( KEduVocDocument *  doc)

Definition at line 50 of file answervalidatorold.cpp.

AnswerValidatorOld::~AnswerValidatorOld ( )

Definition at line 58 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 307 of file answervalidatorold.cpp.

void AnswerValidatorOld::checkUserAnswer ( const QString &  solution,
const QString &  userAnswer,
const QString &  language = QString() 
)

Definition at line 320 of file answervalidatorold.cpp.

void AnswerValidatorOld::setLanguage ( int  translation)

Set the language for the spell checker.

(Identifierindex)

Parameters
translation

Definition at line 64 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 92 of file answervalidatorold.cpp.

bool AnswerValidatorOld::spellcheckerAvailable ( )

Definition at line 526 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-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.

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
  • kstars
  • libkdeedu
  •   keduvocdocument
  • 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