#include <Controller.h>
Public Slots | |
| void | concludeQuiz () |
Signals | |
| void | progressChanged (int progress) |
Public Member Functions | |
| Controller () | |
| bool | init () |
| const QString & | getApplicationDirName () const |
| Preferences & | getPreferences () |
| Folder * | getVocabTree () |
| void | startQuiz () |
| void | restartQuiz () |
| bool | isResumableQuizAvailable () |
| bool | resumeQuiz () |
| void | prepareQuiz () |
| Term * | getCurrentTerm () |
| bool | hasNextTerm () const |
| Term * | getTerm (const TermKey &termKey) |
| Term * | getNextTerm () |
| QString | getQuizFirstLanguage () const |
| QString | getQuizTestLanguage () const |
| bool | isQuizInProgress () const |
| int | getProgress () const |
| Sequence & | getRevealingSequence () |
| int | getRevealingSequenceStep () const |
| void | incrementRevealingSequenceStep () |
| void | rightAnswer () |
| void | wrongAnswer () |
| void | reveal () |
| bool | saveData () |
| void | loadData () |
| bool | saveMarkedItems (Folder *folder) |
| void | loadMarkedItems (Folder *folder) |
| Vocabulary * | addVocabulary (Folder *parentFolder, Vocabulary *vocab=NULL) |
| Folder * | addFolder (Folder *parentFolder, Folder *folder=NULL) |
| void | copy (Vocabulary *vocab) |
| void | copy (Folder *folder) |
| Vocabulary * | loadVocabulary (const QString &parentDir) |
| Folder * | loadFolder (const QString &parentDir) |
| bool | saveFolder (Folder *folder, const QString &parentDir) const |
| bool | saveVocabulary (Vocabulary *vocab, const QString &location) const |
| bool | exportData (Vocabulary *vocab, const QString &file, QStringList *languages=NULL) const |
| bool | exportData (Folder *folder, const QString &file, QStringList *languages=NULL) const |
| void | writeFolderDataInXml (QTextStream &ts, const Folder &folder) const |
| void | writeVocabularyInXml (QTextStream &ts, const Vocabulary &vocab, QStringList *languages, bool writeXmlDirective=true, int depth=0) const |
| void | loadLegacyVocabulary (Folder *folder) |
| QStringList | getTranslationLanguagesFromFile (const QString &filename) const |
| Base * | importData (Folder *rootFolder, const QString &filename, const QStringList &languages) |
| int | getInitialTermCount () const |
| void | initRevealingSequence () |
| void | writeVocabulariesInXml (Folder *folder, int depth, QTextStream &ts, QStringList *languages) |
| void | setClipboardData (const QString &type, const QByteArray &data) |
| QByteArray | getClipboardData () const |
| QString | getClipboardDataType () const |
| bool | isImagePathValid (const QString &path, const Vocabulary &vocab) const |
| QString | getResolvedImagePath (const QString &path, const Vocabulary &vocab) const |
| void | clearSearch () |
| QValueList< TermKey > | search (const QString &query, const QString &firstLang=QString::null, const QString &testLang=QString::null) |
| QValueList< TermKey > | getSearchResults () const |
| int | getSearchResultsCount () const |
Static Public Attributes | |
| static const QString | vocabTreeFilename = QString( "tree" ) |
Definition at line 31 of file Controller.h.
| Controller::Controller | ( | ) |
Definition at line 5 of file Controller.cpp.
| bool Controller::init | ( | ) |
Definition at line 13 of file Controller.cpp.
| const QString & Controller::getApplicationDirName | ( | ) | const |
Definition at line 23 of file Controller.cpp.
| Preferences & Controller::getPreferences | ( | ) |
Definition at line 27 of file Controller.cpp.
| Folder * Controller::getVocabTree | ( | ) |
Definition at line 31 of file Controller.cpp.
| void Controller::startQuiz | ( | ) |
Definition at line 35 of file Controller.cpp.
| void Controller::restartQuiz | ( | ) |
Definition at line 39 of file Controller.cpp.
| bool Controller::isResumableQuizAvailable | ( | ) |
Definition at line 43 of file Controller.cpp.
| bool Controller::resumeQuiz | ( | ) |
Definition at line 47 of file Controller.cpp.
| void Controller::prepareQuiz | ( | ) |
Definition at line 52 of file Controller.cpp.
| Term * Controller::getCurrentTerm | ( | ) |
Definition at line 60 of file Controller.cpp.
| bool Controller::hasNextTerm | ( | ) | const |
Definition at line 98 of file Controller.cpp.
Definition at line 73 of file Controller.cpp.
| Term * Controller::getNextTerm | ( | ) |
Definition at line 82 of file Controller.cpp.
| QString Controller::getQuizFirstLanguage | ( | ) | const |
Definition at line 102 of file Controller.cpp.
| QString Controller::getQuizTestLanguage | ( | ) | const |
Definition at line 106 of file Controller.cpp.
| bool Controller::isQuizInProgress | ( | ) | const |
Definition at line 110 of file Controller.cpp.
| int Controller::getProgress | ( | ) | const |
Definition at line 114 of file Controller.cpp.
| Sequence & Controller::getRevealingSequence | ( | ) |
Definition at line 122 of file Controller.cpp.
| int Controller::getRevealingSequenceStep | ( | ) | const |
Definition at line 126 of file Controller.cpp.
| void Controller::incrementRevealingSequenceStep | ( | ) |
Definition at line 130 of file Controller.cpp.
| void Controller::rightAnswer | ( | ) |
Definition at line 773 of file Controller.cpp.
| void Controller::wrongAnswer | ( | ) |
Definition at line 778 of file Controller.cpp.
| void Controller::reveal | ( | ) |
Definition at line 783 of file Controller.cpp.
| bool Controller::saveData | ( | ) |
Definition at line 976 of file Controller.cpp.
| void Controller::loadData | ( | ) |
Definition at line 761 of file Controller.cpp.
| bool Controller::saveMarkedItems | ( | Folder * | folder | ) |
Definition at line 994 of file Controller.cpp.
| void Controller::loadMarkedItems | ( | Folder * | folder | ) |
Definition at line 1058 of file Controller.cpp.
| Vocabulary * Controller::addVocabulary | ( | Folder * | parentFolder, | |
| Vocabulary * | vocab = NULL | |||
| ) |
Definition at line 163 of file Controller.cpp.
Definition at line 134 of file Controller.cpp.
| void Controller::copy | ( | Vocabulary * | vocab | ) |
Definition at line 220 of file Controller.cpp.
| void Controller::copy | ( | Folder * | folder | ) |
Definition at line 231 of file Controller.cpp.
| Vocabulary * Controller::loadVocabulary | ( | const QString & | parentDir | ) |
Definition at line 309 of file Controller.cpp.
| Folder * Controller::loadFolder | ( | const QString & | parentDir | ) |
Definition at line 786 of file Controller.cpp.
| bool Controller::saveFolder | ( | Folder * | folder, | |
| const QString & | parentDir | |||
| ) | const |
Definition at line 829 of file Controller.cpp.
| bool Controller::saveVocabulary | ( | Vocabulary * | vocab, | |
| const QString & | location | |||
| ) | const |
Definition at line 1301 of file Controller.cpp.
| bool Controller::exportData | ( | Vocabulary * | vocab, | |
| const QString & | file, | |||
| QStringList * | languages = NULL | |||
| ) | const |
Definition at line 1130 of file Controller.cpp.
| bool Controller::exportData | ( | Folder * | folder, | |
| const QString & | file, | |||
| QStringList * | languages = NULL | |||
| ) | const |
Definition at line 1186 of file Controller.cpp.
| void Controller::writeFolderDataInXml | ( | QTextStream & | ts, | |
| const Folder & | folder | |||
| ) | const |
Definition at line 1262 of file Controller.cpp.
| void Controller::writeVocabularyInXml | ( | QTextStream & | ts, | |
| const Vocabulary & | vocab, | |||
| QStringList * | languages, | |||
| bool | writeXmlDirective = true, |
|||
| int | depth = 0 | |||
| ) | const |
Definition at line 1275 of file Controller.cpp.
| void Controller::loadLegacyVocabulary | ( | Folder * | folder | ) |
| QStringList Controller::getTranslationLanguagesFromFile | ( | const QString & | filename | ) | const |
Definition at line 477 of file Controller.cpp.
| Base * Controller::importData | ( | Folder * | rootFolder, | |
| const QString & | filename, | |||
| const QStringList & | languages | |||
| ) |
Definition at line 352 of file Controller.cpp.
| int Controller::getInitialTermCount | ( | ) | const |
Definition at line 118 of file Controller.cpp.
| void Controller::initRevealingSequence | ( | ) |
Definition at line 1326 of file Controller.cpp.
| void Controller::writeVocabulariesInXml | ( | Folder * | folder, | |
| int | depth, | |||
| QTextStream & | ts, | |||
| QStringList * | languages | |||
| ) |
Definition at line 870 of file Controller.cpp.
| void Controller::setClipboardData | ( | const QString & | type, | |
| const QByteArray & | data | |||
| ) |
Definition at line 1343 of file Controller.cpp.
| QByteArray Controller::getClipboardData | ( | ) | const |
Definition at line 1348 of file Controller.cpp.
| QString Controller::getClipboardDataType | ( | ) | const |
Definition at line 1352 of file Controller.cpp.
| bool Controller::isImagePathValid | ( | const QString & | path, | |
| const Vocabulary & | vocab | |||
| ) | const |
Definition at line 1356 of file Controller.cpp.
| QString Controller::getResolvedImagePath | ( | const QString & | path, | |
| const Vocabulary & | vocab | |||
| ) | const |
Definition at line 1369 of file Controller.cpp.
| void Controller::clearSearch | ( | ) |
Definition at line 1380 of file Controller.cpp.
| QValueList< TermKey > Controller::search | ( | const QString & | query, | |
| const QString & | firstLang = QString::null, |
|||
| const QString & | testLang = QString::null | |||
| ) |
Definition at line 1385 of file Controller.cpp.
| QValueList< TermKey > Controller::getSearchResults | ( | ) | const |
Definition at line 1463 of file Controller.cpp.
| int Controller::getSearchResultsCount | ( | ) | const |
Definition at line 1467 of file Controller.cpp.
| void Controller::concludeQuiz | ( | ) | [slot] |
Definition at line 56 of file Controller.cpp.
| void Controller::progressChanged | ( | int | progress | ) | [signal] |
Definition at line 91 of file moc_Controller.cpp.
const QString Controller::vocabTreeFilename = QString( "tree" ) [static] |
Definition at line 37 of file Controller.h.
1.5.6