#include <Preferences.h>
Public Types | |
| enum | { SHORTEST, SHORT, MEDIUM, LONG, LONGEST } |
| typedef QValueList< Sequence > | SequenceList |
Signals | |
| void | studyLanguageSelected (QString language) |
| void | studyLanguageDeselected (QString language) |
Public Member Functions | |
| Preferences () | |
| ~Preferences () | |
| bool | load () |
| bool | save () |
| uint | getQuizLength () const |
| void | setQuizLength (uint quizLength) |
| void | clearRevealingSequences () |
| void | addRevealingSequence (Sequence sequence) |
| int | getRevealingSequence (const QString &seqStr) |
| void | removeRevealingSequence (int index) |
| void | removeRevealingSequence (const QString &seqStr) |
| int | getActiveRevealingSequenceCount () |
| int | getRevealingSequenceCount () const |
| Sequence | getRevealingSequenceAt (int index) |
| QString | getInterfaceLanguage () const |
| void | setInterfaceLanguage (const QString &interfaceLanguage) |
| bool | isDigraphEnabled () const |
| void | setDigraphEnabled (bool isEnabled) |
| bool | areQuizButtonsHidden () const |
| void | setQuizButtonsHidden (bool areHidden) |
| bool | isAltInTermListShown () const |
| void | setAltInTermListShown (bool isShown) |
| QString | getFirstLanguage () const |
| void | setFirstLanguage (const QString &firstLanguage) |
| QValueList< QString > | getStudyLanguages () |
| bool | isStudyLanguage (const QString &language) |
| void | addStudyLanguage (const QString &language) |
| void | removeStudyLanguage (const QString &language) |
| void | clearStudyLanguages () |
| QString | getTestLanguage () const |
| void | setTestLanguage (const QString &testLanguage) |
| QString | getFontFamily () const |
| void | setFontFamily (const QString &fontFamily) |
| QString | getDefaultFontFamily () const |
| int | getDefaultFontSizeModifier () const |
| int | getFontSizeModifier () const |
| void | setFontSizeModifier (int fontSizeModifier) |
| QFont | getLargeFont (const QString &language=QString::null) const |
| QFont | getMediumFont (const QString &language=QString::null) const |
| QFont | getSmallFont (const QString &language=QString::null) const |
| QFont | getBestFont (const QString &lang1, const QString &lang2) const |
| QString | getLabelsFontFamily () const |
| void | setLabelsFontFamily (const QString &labelsFontFamily) |
| QString | getDefaultLabelsFontFamily () const |
| int | getDefaultLabelsFontSizeModifier () const |
| int | getLabelsFontSizeModifier () const |
| void | setLabelsFontSizeModifier (int labelsFontSizeModifier) |
| QFont | getLabelsFont () const |
| QString | getFontOverrideFamily (const QString &language) const |
| int | getFontOverrideSize (const QString &language) const |
| void | setFontOverrideFamily (const QString &language, const QString &fontFamily) |
| void | setFontOverrideSize (const QString &language, int fontSize) |
| bool | isFontOverrideFamilyDefined (const QString &language) const |
| bool | isFontOverrideSizeDefined (const QString &language) const |
| void | clearFontOverrideFamilies () |
| void | clearFontOverrideSizes () |
| bool | isLanguageFilterEnabled () const |
| void | setLanguageFilterEnabled (bool isEnabled) |
| bool | isFolderOpen (int folderId) const |
| void | setFolderOpen (int folderId, bool isOpen) |
| void | setApplicationDirName (const QString &applDir) |
| int | getDefaultAccelerator (Action action) |
| void | setAccelerator (Action action, int accel) |
| int | getAccelerator (Action action) |
Static Public Member Functions | |
| static const Q_UINT32 | magicNumber (Q_UINT32(0x77556644)) |
Static Public Attributes | |
| static const uint | fontSizeList [] = { 10, 12, 16, 18, 24, 32, 48, 72 } |
Definition at line 17 of file Preferences.h.
| typedef QValueList<Sequence> Preferences::SequenceList |
Definition at line 27 of file Preferences.h.
| anonymous enum |
| Preferences::Preferences | ( | ) |
Definition at line 5 of file Preferences.cpp.
| Preferences::~Preferences | ( | ) |
Definition at line 23 of file Preferences.cpp.
| static const Q_UINT32 Preferences::magicNumber | ( | Q_UINT32(0x77556644) | ) | [static] |
| bool Preferences::load | ( | ) |
Definition at line 26 of file Preferences.cpp.
| bool Preferences::save | ( | ) |
Definition at line 149 of file Preferences.cpp.
| uint Preferences::getQuizLength | ( | ) | const |
Definition at line 192 of file Preferences.cpp.
| void Preferences::setQuizLength | ( | uint | quizLength | ) |
Definition at line 196 of file Preferences.cpp.
| void Preferences::clearRevealingSequences | ( | ) |
Definition at line 200 of file Preferences.cpp.
| void Preferences::addRevealingSequence | ( | Sequence | sequence | ) |
Definition at line 204 of file Preferences.cpp.
| int Preferences::getRevealingSequence | ( | const QString & | seqStr | ) |
Definition at line 208 of file Preferences.cpp.
| void Preferences::removeRevealingSequence | ( | int | index | ) |
Definition at line 218 of file Preferences.cpp.
| void Preferences::removeRevealingSequence | ( | const QString & | seqStr | ) |
Definition at line 222 of file Preferences.cpp.
| int Preferences::getActiveRevealingSequenceCount | ( | ) |
Definition at line 230 of file Preferences.cpp.
| int Preferences::getRevealingSequenceCount | ( | ) | const |
Definition at line 240 of file Preferences.cpp.
| Sequence Preferences::getRevealingSequenceAt | ( | int | index | ) |
Definition at line 244 of file Preferences.cpp.
| QString Preferences::getInterfaceLanguage | ( | ) | const |
Definition at line 248 of file Preferences.cpp.
| void Preferences::setInterfaceLanguage | ( | const QString & | interfaceLanguage | ) |
Definition at line 252 of file Preferences.cpp.
| bool Preferences::isDigraphEnabled | ( | ) | const |
Definition at line 256 of file Preferences.cpp.
| void Preferences::setDigraphEnabled | ( | bool | isEnabled | ) |
Definition at line 260 of file Preferences.cpp.
| bool Preferences::areQuizButtonsHidden | ( | ) | const |
Definition at line 264 of file Preferences.cpp.
| void Preferences::setQuizButtonsHidden | ( | bool | areHidden | ) |
Definition at line 268 of file Preferences.cpp.
| bool Preferences::isAltInTermListShown | ( | ) | const |
Definition at line 272 of file Preferences.cpp.
| void Preferences::setAltInTermListShown | ( | bool | isShown | ) |
Definition at line 276 of file Preferences.cpp.
| QString Preferences::getFirstLanguage | ( | ) | const |
Definition at line 280 of file Preferences.cpp.
| void Preferences::setFirstLanguage | ( | const QString & | firstLanguage | ) |
Definition at line 284 of file Preferences.cpp.
| QValueList< QString > Preferences::getStudyLanguages | ( | ) |
Definition at line 288 of file Preferences.cpp.
| bool Preferences::isStudyLanguage | ( | const QString & | language | ) |
Definition at line 292 of file Preferences.cpp.
| void Preferences::addStudyLanguage | ( | const QString & | language | ) |
Definition at line 296 of file Preferences.cpp.
| void Preferences::removeStudyLanguage | ( | const QString & | language | ) |
Definition at line 300 of file Preferences.cpp.
| void Preferences::clearStudyLanguages | ( | ) |
Definition at line 304 of file Preferences.cpp.
| QString Preferences::getTestLanguage | ( | ) | const |
Definition at line 308 of file Preferences.cpp.
| void Preferences::setTestLanguage | ( | const QString & | testLanguage | ) |
Definition at line 312 of file Preferences.cpp.
| QString Preferences::getFontFamily | ( | ) | const |
Definition at line 316 of file Preferences.cpp.
| void Preferences::setFontFamily | ( | const QString & | fontFamily | ) |
Definition at line 320 of file Preferences.cpp.
| QString Preferences::getDefaultFontFamily | ( | ) | const |
Definition at line 324 of file Preferences.cpp.
| int Preferences::getDefaultFontSizeModifier | ( | ) | const |
Definition at line 328 of file Preferences.cpp.
| int Preferences::getFontSizeModifier | ( | ) | const |
Definition at line 332 of file Preferences.cpp.
| void Preferences::setFontSizeModifier | ( | int | fontSizeModifier | ) |
Definition at line 336 of file Preferences.cpp.
| QFont Preferences::getLargeFont | ( | const QString & | language = QString::null |
) | const |
Definition at line 340 of file Preferences.cpp.
| QFont Preferences::getMediumFont | ( | const QString & | language = QString::null |
) | const |
Definition at line 346 of file Preferences.cpp.
| QFont Preferences::getSmallFont | ( | const QString & | language = QString::null |
) | const |
Definition at line 352 of file Preferences.cpp.
| QFont Preferences::getBestFont | ( | const QString & | lang1, | |
| const QString & | lang2 | |||
| ) | const |
Definition at line 358 of file Preferences.cpp.
| QString Preferences::getLabelsFontFamily | ( | ) | const |
Definition at line 375 of file Preferences.cpp.
| void Preferences::setLabelsFontFamily | ( | const QString & | labelsFontFamily | ) |
Definition at line 379 of file Preferences.cpp.
| QString Preferences::getDefaultLabelsFontFamily | ( | ) | const |
Definition at line 383 of file Preferences.cpp.
| int Preferences::getDefaultLabelsFontSizeModifier | ( | ) | const |
Definition at line 387 of file Preferences.cpp.
| int Preferences::getLabelsFontSizeModifier | ( | ) | const |
Definition at line 391 of file Preferences.cpp.
| void Preferences::setLabelsFontSizeModifier | ( | int | labelsFontSizeModifier | ) |
Definition at line 395 of file Preferences.cpp.
| QFont Preferences::getLabelsFont | ( | ) | const |
Definition at line 399 of file Preferences.cpp.
| QString Preferences::getFontOverrideFamily | ( | const QString & | language | ) | const |
Definition at line 403 of file Preferences.cpp.
| int Preferences::getFontOverrideSize | ( | const QString & | language | ) | const |
Definition at line 407 of file Preferences.cpp.
| void Preferences::setFontOverrideFamily | ( | const QString & | language, | |
| const QString & | fontFamily | |||
| ) |
Definition at line 411 of file Preferences.cpp.
| void Preferences::setFontOverrideSize | ( | const QString & | language, | |
| int | fontSize | |||
| ) |
Definition at line 415 of file Preferences.cpp.
| bool Preferences::isFontOverrideFamilyDefined | ( | const QString & | language | ) | const |
Definition at line 419 of file Preferences.cpp.
| bool Preferences::isFontOverrideSizeDefined | ( | const QString & | language | ) | const |
Definition at line 423 of file Preferences.cpp.
| void Preferences::clearFontOverrideFamilies | ( | ) |
Definition at line 427 of file Preferences.cpp.
| void Preferences::clearFontOverrideSizes | ( | ) |
Definition at line 431 of file Preferences.cpp.
| bool Preferences::isLanguageFilterEnabled | ( | ) | const |
Definition at line 439 of file Preferences.cpp.
| void Preferences::setLanguageFilterEnabled | ( | bool | isEnabled | ) |
Definition at line 435 of file Preferences.cpp.
| bool Preferences::isFolderOpen | ( | int | folderId | ) | const |
Definition at line 443 of file Preferences.cpp.
| void Preferences::setFolderOpen | ( | int | folderId, | |
| bool | isOpen | |||
| ) |
Definition at line 447 of file Preferences.cpp.
| void Preferences::setApplicationDirName | ( | const QString & | applDir | ) |
Definition at line 456 of file Preferences.cpp.
| int Preferences::getDefaultAccelerator | ( | Action | action | ) |
Definition at line 461 of file Preferences.cpp.
| void Preferences::setAccelerator | ( | Action | action, | |
| int | accel | |||
| ) |
Definition at line 465 of file Preferences.cpp.
| int Preferences::getAccelerator | ( | Action | action | ) |
Definition at line 474 of file Preferences.cpp.
| void Preferences::studyLanguageSelected | ( | QString | language | ) | [signal] |
Definition at line 89 of file moc_Preferences.cpp.
| void Preferences::studyLanguageDeselected | ( | QString | language | ) | [signal] |
Definition at line 95 of file moc_Preferences.cpp.
const uint Preferences::fontSizeList = { 10, 12, 16, 18, 24, 32, 48, 72 } [static] |
Definition at line 29 of file Preferences.h.
1.5.6