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

parley

  • Practice
  • MultipleChoiceBackendMode
Public Slots | Public Member Functions | Protected Member Functions | List of all members
Practice::MultipleChoiceBackendMode Class Reference

#include <multiplechoicebackendmode.h>

Inheritance diagram for Practice::MultipleChoiceBackendMode:
Inheritance graph
[legend]

Public Slots

virtual void hintAction ()
 
- Public Slots inherited from Practice::AbstractBackendMode
virtual void hintAction ()=0
 

Public Member Functions

 MultipleChoiceBackendMode (const PracticeOptions &PracticeOptions, AbstractFrontend *frontend, QObject *parent, Practice::TestEntryManager *testEntryManager)
 
virtual void checkAnswer ()
 
virtual bool setTestEntry (TestEntry *current)
 
- Public Member Functions inherited from Practice::AbstractBackendMode
 AbstractBackendMode (const PracticeOptions &practiceOptions, AbstractFrontend *frontend, QObject *parent)
 
virtual ~AbstractBackendMode ()
 
void addSynonym (const QString &entry)
 
virtual grade_t currentGradeForEntry ()
 
virtual void updateGrades ()
 

Protected Member Functions

int numberOfChoices ()
 
virtual void prepareChoices (TestEntry *current)
 
void setChoices (const QStringList &choices)
 
void setCorrectAnswer (int index)
 
void setQuestion (const QString &question)
 

Additional Inherited Members

- Signals inherited from Practice::AbstractBackendMode
void answerRight ()
 
void answerWrongRetry ()
 
void answerWrongShowSolution ()
 
void nextEntry ()
 
void removeCurrentEntryFromPractice ()
 
void showSolution ()
 
- Protected Attributes inherited from Practice::AbstractBackendMode
TestEntry * m_current
 
AbstractFrontend * m_frontend
 
PracticeOptions m_practiceOptions
 
QStringList m_synonyms
 

Detailed Description

Definition at line 23 of file multiplechoicebackendmode.h.

Constructor & Destructor Documentation

MultipleChoiceBackendMode::MultipleChoiceBackendMode ( const PracticeOptions &  PracticeOptions,
AbstractFrontend *  frontend,
QObject *  parent,
Practice::TestEntryManager *  testEntryManager 
)

Definition at line 22 of file multiplechoicebackendmode.cpp.

Member Function Documentation

void MultipleChoiceBackendMode::checkAnswer ( )
virtual

Check if the current answer is right.

This function should emit one of these signals: answerRight, answerWrongRetry, answerWrongShowSolution or showSolution

Implements Practice::AbstractBackendMode.

Definition at line 89 of file multiplechoicebackendmode.cpp.

void MultipleChoiceBackendMode::hintAction ( )
virtualslot

Definition at line 101 of file multiplechoicebackendmode.cpp.

int MultipleChoiceBackendMode::numberOfChoices ( )
protected

Definition at line 73 of file multiplechoicebackendmode.cpp.

void MultipleChoiceBackendMode::prepareChoices ( TestEntry *  current)
protectedvirtual

set the list of possible answers.

This function needs to call setCorrectAnswer and setChoices

Reimplemented in Practice::GenderBackendMode.

Definition at line 53 of file multiplechoicebackendmode.cpp.

void MultipleChoiceBackendMode::setChoices ( const QStringList &  choices)
protected

This must include the correct answer.

The order of the choices will be preserved.

Definition at line 78 of file multiplechoicebackendmode.cpp.

void MultipleChoiceBackendMode::setCorrectAnswer ( int  index)
protected

The correct solution, index of the choices.

Definition at line 83 of file multiplechoicebackendmode.cpp.

void MultipleChoiceBackendMode::setQuestion ( const QString &  question)
protected

Set the question/original language.

Definition at line 68 of file multiplechoicebackendmode.cpp.

bool MultipleChoiceBackendMode::setTestEntry ( TestEntry *  current)
virtual

start practicing a new word.

sets some default that can be overwritten by the modes. m_frontend->showQuestion() should be called after the initialization.

Reimplemented from Practice::AbstractBackendMode.

Definition at line 30 of file multiplechoicebackendmode.cpp.


The documentation for this class was generated from the following files:
  • multiplechoicebackendmode.h
  • multiplechoicebackendmode.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