parley
testentrymanager.cpp
Go to the documentation of this file.
61 KMessageBox::error(0, i18n("The vocabulary collection contains fewer than two languages.", i18n("Could not start practice")));
64 if (Prefs::questionLanguage() >= m_doc->identifierCount() || Prefs::solutionLanguage() >= m_doc->identifierCount()) {
208 kDebug() << "nextEntry: " << m_currentEntry << " = " << m_currentEntries.value(m_currentEntry)->entry()->translation(0)->text() << " (" << m_currentEntries.count() + m_notAskedTestEntries.count() << "entries remaining)";
225 QStringList predefinedChoices = m_currentEntries.at(m_currentEntry)->entry()->translation(Prefs::solutionLanguage())->multipleChoice();
283 if (e->translation(Prefs::solutionLanguage())->synonyms().contains(m_currentEntries.at(m_currentEntry)->entry()->translation(Prefs::solutionLanguage())))
286 if (e->translation(Prefs::solutionLanguage())->text().simplified() == m_currentEntries.at(m_currentEntry)->entry()->translation(Prefs::solutionLanguage())->text().simplified())
int activeEntryCount()
The number of entries that are still to be practiced.
Definition: testentrymanager.cpp:139
static int testNumberOfEntries()
Get The number of entries that are practiced at the same time.
Definition: prefs.h:369
void setDocument(KEduVocDocument *doc)
Definition: testentrymanager.cpp:50
TestEntry * getNextEntry()
Get the next entry to show to the user.
Definition: testentrymanager.cpp:188
Definition: entryfilter.h:32
QStringList multipleChoiceAnswers(int numberChoices)
Definition: testentrymanager.cpp:216
int statisticTotalWrong()
Definition: testentrymanager.cpp:165
QList< TestEntry * > allUnansweredTestEntries()
Get a list of all unanswered entries in the test.
Definition: testentrymanager.cpp:144
void practiceFinished()
Definition: testentrymanager.cpp:128
static void setQuestionLanguage(int v)
Set The language that is displayed in a test.
Definition: prefs.h:1157
TestEntryManager(QWidget *parent)
Create a collection of entries to be practiced.
Definition: testentrymanager.cpp:34
void practiceStarted()
Definition: testentrymanager.cpp:122
void removeCurrentEntryFromPractice()
Finish the currently active entry.
Definition: testentrymanager.cpp:98
static void setSolutionLanguage(int v)
Set The language in which the user has to answer.
Definition: prefs.h:1176
int statisticTotalUnanswered()
Definition: testentrymanager.cpp:176
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:06 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:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.