parley
conjugationbackendmode.cpp
Go to the documentation of this file.
43 if (!m_current->entry()->translation(m_current->languageTo())->conjugationTenses().contains(m_currentTense)) {
45 kDebug() << "tenses: " << m_current->entry()->translation(m_current->languageTo())->conjugationTenses();
49 m_conjugation = m_current->entry()->translation(m_current->languageTo())->conjugation(m_currentTense);
64 m_frontend->setQuestionSound(m_current->entry()->translation(m_current->languageFrom())->soundUrl());
65 m_frontend->setSolutionSound(m_current->entry()->translation(m_current->languageTo())->soundUrl());
66 m_frontend->setQuestionPronunciation(m_current->entry()->translation(m_current->languageFrom())->pronunciation());
67 m_frontend->setSolutionPronunciation(m_current->entry()->translation(m_current->languageTo())->pronunciation());
78 pp.append(m_doc->identifier(Prefs::learningLanguage()).personalPronouns().personalPronoun(person));
107 m_frontend->setFeedback(i18ncp("You did not get the conjugation forms right.", "You answered %1 conjugation form correctly.", "You answered %1 conjugation forms correctly.", numRight));
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
ConjugationBackendMode(AbstractFrontend *frontend, QObject *parent, Practice::SessionManagerBase *sessionManager, KEduVocDocument *doc)
Definition: conjugationbackendmode.cpp:26
virtual void showQuestion()=0
enter question mode - the user is asked to provide the solution
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
virtual void hintAction()
Definition: conjugationbackendmode.cpp:164
virtual grade_t currentGradeForEntry() const
Return the worst grade for any pronoun of the current entry.
Definition: conjugationbackendmode.cpp:133
virtual void setSolution(const QVariant &solution)=0
QString conjugationTense() const
In conjugation mode, use this tense for the entry.
Definition: testentry.cpp:154
int size() const
AbstractFrontend * m_frontend
Definition: abstractbackendmode.h:121
void append(const T &value)
QStringList personalPronouns
Definition: conjugationdata.h:31
QString questionInfinitive
Definition: conjugationdata.h:28
virtual QVariant userInput()=0
Enables access to the input of the user.
virtual bool setTestEntry(TestEntry *current)
start practicing a new word.
Definition: conjugationbackendmode.cpp:35
virtual void setQuestionPronunciation(const QString &pronunciationText)=0
QList< KEduVocWordFlags > conjugationPronouns() const
In conjugation mode, use these pronouns for the entry.
Definition: testentry.cpp:164
virtual void setFeedback(const QVariant &feedback)=0
virtual void updateGrades()
Change the grades for the current entry.
Definition: conjugationbackendmode.cpp:148
virtual void checkAnswer()
Definition: conjugationbackendmode.cpp:84
QDateTime currentDateTime()
QStringList toStringList() const
void answerWrongShowSolution()
virtual void setSolutionSound(const KUrl &soundUrl)=0
Definition: abstractfrontend.h:26
QString solutionInfinitive
Definition: conjugationdata.h:29
void answerWrongRetry()
Definition: conjugationdata.h:27
virtual void setQuestionSound(const KUrl &soundUrl)=0
virtual void setSolutionPronunciation(const QString &pronunciationText)=0
virtual ResultState resultState()=0
virtual grade_t currentPreGradeForEntry() const
Return the worst pregrade for any pronoun of the current entry.
Definition: conjugationbackendmode.cpp:118
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.