parley
comparisonbackendmode.cpp
Go to the documentation of this file.
24 AbstractFrontend* frontend, QObject* parent, Practice::TestEntryManager* testEntryManager, KEduVocDocument* doc)
46 m_frontend->setQuestionSound(m_current->entry()->translation(m_practiceOptions.languageFrom())->soundUrl());
47 m_frontend->setSolutionSound(m_current->entry()->translation(m_practiceOptions.languageTo())->soundUrl());
48 m_frontend->setQuestionPronunciation(m_current->entry()->translation(m_practiceOptions.languageFrom())->pronunciation());
49 m_frontend->setSolutionPronunciation(m_current->entry()->translation(m_practiceOptions.languageTo())->pronunciation());
64 bool absoluteCorrect = answers.at(0) == m_current->entry()->translation(Prefs::solutionLanguage())->text();
65 bool comparativeCorrect = answers.at(1) == m_current->entry()->translation(Prefs::solutionLanguage())->comparative();
66 bool superlativeCorrect = answers.at(2) == m_current->entry()->translation(Prefs::solutionLanguage())->superlative();
73 m_frontend->setFeedback(i18nc("the user entered the wrong absolute form when practicing comparison forms of adjectives (the base form of the adjective is wrong)",
77 m_frontend->setFeedback(i18nc("the user entered the wrong comparison forms when practicing comparison forms of adjectives (good, better, best)",
80 m_frontend->setFeedback(i18nc("the user entered the wrong comparison forms when practicing comparison forms of adjectives (second form wrong - better)",
83 m_frontend->setFeedback(i18nc("the user entered the wrong comparison forms when practicing comparison forms of adjectives (third form wrong - best)",
101 bool absoluteCorrect = answers.at(0) == m_current->entry()->translation(Prefs::solutionLanguage())->text();
102 bool comparativeCorrect = answers.at(1) == m_current->entry()->translation(Prefs::solutionLanguage())->comparative();
103 bool superlativeCorrect = answers.at(2) == m_current->entry()->translation(Prefs::solutionLanguage())->superlative();
107 KEduVocTranslation* translation = m_current->entry()->translation(m_practiceOptions.languageTo());
Definition: practiceoptions.h:22
virtual void setResultState(ResultState resultState)=0
The result state indicated whether a word is counted as correct (and grades are raised) and can be ch...
virtual void setQuestion(const QVariant &question)=0
virtual void showQuestion()=0
enter question mode - the user is asked to provide the solution
virtual void hintAction()
Definition: comparisonbackendmode.cpp:92
void answerRight()
Definition: testentrymanager.h:31
virtual void setSolution(const QVariant &solution)=0
AbstractFrontend * m_frontend
Definition: abstractbackendmode.h:83
virtual QVariant userInput()=0
Enables access to the input of the user.
virtual void setQuestionPronunciation(const QString &pronunciationText)=0
virtual void setFeedback(const QVariant &feedback)=0
void answerWrongShowSolution()
virtual void setSolutionSound(const KUrl &soundUrl)=0
ComparisonBackendMode(const PracticeOptions &PracticeOptions, AbstractFrontend *frontend, QObject *parent, Practice::TestEntryManager *testEntryManager, KEduVocDocument *doc)
Definition: comparisonbackendmode.cpp:23
Definition: abstractfrontend.h:25
PracticeOptions m_practiceOptions
Definition: abstractbackendmode.h:82
void answerWrongRetry()
virtual void setQuestionSound(const KUrl &soundUrl)=0
virtual void updateGrades()
Change the grades for the current entry.
Definition: comparisonbackendmode.cpp:97
virtual void setSolutionPronunciation(const QString &pronunciationText)=0
virtual bool setTestEntry(TestEntry *current)
start practicing a new word.
Definition: comparisonbackendmode.cpp:31
static int solutionLanguage()
Get The language in which the user has to answer.
Definition: prefs.h:1186
Definition: testentry.h:22
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.