parley
sessionmanagerbase.cpp
Go to the documentation of this file.
91 kDebug() << "Entry: " << entry->languageFrom() << entry->entry()->translation(entry->languageFrom())->text()
149 << m_currentEntry << " = " << m_currentEntries.value(m_currentEntry)->entry()->translation(0)->text()
255 QStringList predefinedChoices = currentEntry->entry()->translation(currentEntry->languageTo())->multipleChoice();
324 if (e->translation(m_learningLanguageIndex)->synonyms().contains(m_currentEntries.at(m_currentEntry)->entry()->translation(m_learningLanguageIndex)))
329 == m_currentEntries.at(m_currentEntry)->entry()->translation(m_learningLanguageIndex)->text().simplified())
void clear()
virtual TestEntry * nextTrainingEntry()
Get the next entry to show to the user.
Definition: sessionmanagerbase.cpp:124
int statisticTotalUnanswered()
Definition: sessionmanagerbase.cpp:218
QString toString(Qt::DateFormat format) const
const T & at(int i) const
QList< TestEntry * > allUnansweredTestEntries()
Get a list of all unanswered entries in the test.
Definition: sessionmanagerbase.cpp:182
T takeAt(int i)
SessionManagerBase(QWidget *parent)
Create a collection of entries to be practiced.
Definition: sessionmanagerbase.cpp:40
virtual void removeCurrentEntryFromPractice()
Finish the currently active entry.
Definition: sessionmanagerbase.cpp:160
QList< TestEntry * > allTestEntries() const
Get a list of all entries in the test - used by the summary dialog.
Definition: sessionmanagerbase.cpp:167
static int testNumberOfEntries()
Get The number of entries that are practiced at the same time.
Definition: prefs.h:374
T value(int i) const
int elapsed() const
QList< TestEntry * > m_currentEntries
The list of entries that are being asked.
Definition: sessionmanagerbase.h:167
int count(const T &value) const
void append(const T &value)
int allEntryCount() const
The number of entries available for the practice session.
Definition: sessionmanagerbase.cpp:172
QList< TestEntry * > m_notAskedTestEntries
All entries that have not been entered into the active set.
Definition: sessionmanagerbase.h:162
bool isEmpty() const
QList< TestEntry * > m_allTestEntries
All entries available in the document that fulfill the requirements set in the configuration and the ...
Definition: sessionmanagerbase.h:159
static void setLearningLanguage(int v)
Set The language that you are learning.
Definition: prefs.h:1238
int activeEntryCount()
The number of entries that are still to be practiced.
Definition: sessionmanagerbase.cpp:177
virtual void initializeTraining()=0
Initialize the lists of entries that will be used in the training from the full set of available entr...
int m_knownLanguageIndex
Definition: sessionmanagerbase.h:150
virtual void practiceFinished()
Definition: sessionmanagerbase.cpp:112
bool isValidMultipleChoiceAnswer(KEduVocExpression *e)
Find out if the given expression can be used as a multiple choice answer for the current entry (i...
Definition: sessionmanagerbase.cpp:314
friend class EntryFilter
Definition: sessionmanagerbase.h:177
virtual void setDocument(KEduVocDocument *doc)
Prepare for practice using the entries in this document.
Definition: sessionmanagerbase.cpp:55
KRandomSequence m_randomSequence
Definition: sessionmanagerbase.h:175
void start()
int m_learningLanguageIndex
Definition: sessionmanagerbase.h:149
virtual void practiceStarted()
Definition: sessionmanagerbase.cpp:106
int statisticTotalCorrectFirstAttempt()
Definition: sessionmanagerbase.cpp:196
QStringList multipleChoiceAnswers(int numberChoices)
Definition: sessionmanagerbase.cpp:245
int statisticTotalWrong()
Definition: sessionmanagerbase.cpp:207
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.