parley
comparisonbackendmode.cpp
Go to the documentation of this file.
47 m_frontend->setQuestionSound(m_current->entry()->translation(m_current->languageFrom())->soundUrl());
48 m_frontend->setSolutionSound(m_current->entry()->translation(m_current->languageTo())->soundUrl());
49 m_frontend->setQuestionPronunciation(m_current->entry()->translation(m_current->languageFrom())->pronunciation());
50 m_frontend->setSolutionPronunciation(m_current->entry()->translation(m_current->languageTo())->pronunciation());
65 bool absoluteCorrect = answers.at(0) == m_current->entry()->translation(m_current->languageTo())->text();
66 bool comparativeCorrect = answers.at(1) == m_current->entry()->translation(m_current->languageTo())->comparative();
67 bool superlativeCorrect = answers.at(2) == m_current->entry()->translation(m_current->languageTo())->superlative();
74 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)",
78 m_frontend->setFeedback(i18nc("the user entered the wrong comparison forms when practicing comparison forms of adjectives (good, better, best)",
81 m_frontend->setFeedback(i18nc("the user entered the wrong comparison forms when practicing comparison forms of adjectives (second form wrong - better)",
84 m_frontend->setFeedback(i18nc("the user entered the wrong comparison forms when practicing comparison forms of adjectives (third form wrong - best)",
102 bool absoluteCorrect = answers.at(0) == m_current->entry()->translation(m_current->languageTo())->text();
103 bool comparativeCorrect = answers.at(1) == m_current->entry()->translation(m_current->languageTo())->comparative();
104 bool superlativeCorrect = answers.at(2) == m_current->entry()->translation(m_current->languageTo())->superlative();
void clear()
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:93
void answerRight()
const T & at(int i) const
void updateGrade(KEduVocText &text, bool isCorrectAnswer, bool hasNoPreviousBadAnswers)
Update the grade for the current entry.
Definition: abstractbackendmode.cpp:84
ComparisonBackendMode(AbstractFrontend *frontend, QObject *parent, Practice::SessionManagerBase *sessionManager, KEduVocDocument *doc)
Definition: comparisonbackendmode.cpp:23
virtual void setSolution(const QVariant &solution)=0
AbstractFrontend * m_frontend
Definition: abstractbackendmode.h:121
void append(const T &value)
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
QDateTime currentDateTime()
QStringList toStringList() const
void answerWrongShowSolution()
virtual void setSolutionSound(const KUrl &soundUrl)=0
Definition: abstractfrontend.h:26
void answerWrongRetry()
virtual void setQuestionSound(const KUrl &soundUrl)=0
virtual void updateGrades()
Change the grades for the current entry.
Definition: comparisonbackendmode.cpp:98
virtual void setSolutionPronunciation(const QString &pronunciationText)=0
virtual bool setTestEntry(TestEntry *current)
start practicing a new word.
Definition: comparisonbackendmode.cpp:32
Definition: testentry.h:22
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
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.