• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdeedu
  • Sitemap
  • Contact Us
 

parley

Prefs Class Reference

#include <prefs.h>

Inheritance diagram for Prefs:

Inheritance graph
[legend]

List of all members.


Detailed Description

Definition at line 10 of file prefs.h.


Public Member Functions

 ~Prefs ()

Static Public Member Functions

static Prefs * self ()
static void setNumPreSetting (int v)
static int numPreSetting ()
static void setAutoEntryApply (bool v)
static bool autoEntryApply ()
static void setSmartAppend (bool v)
static bool smartAppend ()
static void setSeparator (const QString &v)
static QString separator ()
static void setEntriesPerLesson (int v)
static int entriesPerLesson ()
static void setAutoSave (bool v)
static bool autoSave ()
static void setSeparatorCombo (int v)
static int separatorCombo ()
static void setAutoBackup (bool v)
static bool autoBackup ()
static void setBackupTime (int v)
static int backupTime ()
static void setHeaderResizeMode (int v)
static int headerResizeMode ()
static void setBlock (bool v)
static bool block ()
static void setExpire (bool v)
static bool expire ()
static void setAltLearn (bool v)
static bool altLearn ()
static void setTestOrderLesson (bool v)
static bool testOrderLesson ()
static void setTestNumberOfEntries (int v)
static int testNumberOfEntries ()
static void setSwapDirection (bool v)
static bool swapDirection ()
static void setPracticeTimeout (bool v)
static bool practiceTimeout ()
static void setPracticeTimeoutMode (int v)
static int practiceTimeoutMode ()
static void setPracticeTimeoutTimePerAnswer (int v)
static int practiceTimeoutTimePerAnswer ()
static void setSuggestions (bool v)
static bool suggestions ()
static void setIgnoreAccentMistakes (bool v)
static bool ignoreAccentMistakes ()
static void setIgnoreCapitalizationMistakes (bool v)
static bool ignoreCapitalizationMistakes ()
static void setSplitTranslations (bool v)
static bool splitTranslations ()
static void setPeriods (bool v)
static bool periods ()
static void setColons (bool v)
static bool colons ()
static void setSemicolons (bool v)
static bool semicolons ()
static void setCommas (bool v)
static bool commas ()
static void setShowMore (bool v)
static bool showMore ()
static void setSkipKnownEnabled (bool v)
static bool skipKnownEnabled ()
static void setCountSynonymsAsCorrect (bool v)
static bool countSynonymsAsCorrect ()
static void setPracticeImagesEnabled (bool v)
static bool practiceImagesEnabled ()
static void setPracticeSoundEnabled (bool v)
static bool practiceSoundEnabled ()
static void setShowSearch (bool v)
static bool showSearch ()
static void setTableLessonColumnVisible (bool v)
static bool tableLessonColumnVisible ()
static void setTableActiveColumnVisible (bool v)
static bool tableActiveColumnVisible ()
static void setLessonEditingSelection (int v)
static int lessonEditingSelection ()
static void setMainWindowSplitter (const QList< int > &v)
static QList< int > mainWindowSplitter ()
static void setTableFont (const QFont &v)
static QFont tableFont ()
static void setIPAFont (const QFont &v)
static QFont iPAFont ()
static void setCurrentCol (int v)
static int currentCol ()
static void setCurrentRow (int v)
static int currentRow ()
static void setUseGradeColors (bool v)
static bool useGradeColors ()
static void setGradeColor (int i, const QColor &v)
static QColor gradeColor (int i)
static void setPracticeMinimumTimesAsked (int v)
static int practiceMinimumTimesAsked ()
static void setPracticeMaximumTimesAsked (int v)
static int practiceMaximumTimesAsked ()
static void setPracticeMinimumWrongCount (int v)
static int practiceMinimumWrongCount ()
static void setPracticeMaximumWrongCount (int v)
static int practiceMaximumWrongCount ()
static void setPracticeMinimumGrade (int v)
static int practiceMinimumGrade ()
static void setPracticeMaximumGrade (int v)
static int practiceMaximumGrade ()
static void setWordTypesInPracticeEnabled (bool v)
static bool wordTypesInPracticeEnabled ()
static void setWordTypesInPractice (const QStringList &v)
static QStringList wordTypesInPractice ()
static void setSubWordTypesInPractice (const QStringList &v)
static QStringList subWordTypesInPractice ()
static void setQuestionLanguage (int v)
static int questionLanguage ()
static void setSolutionLanguage (int v)
static int solutionLanguage ()
static void setShowSolutionAfterAnswer (bool v)
static bool showSolutionAfterAnswer ()
static void setShowSolutionAfterAnswerTime (int v)
static int showSolutionAfterAnswerTime ()
static void setTestType (int v)
static int testType ()
static void setComparisonIncludeAdjective (bool v)
static bool comparisonIncludeAdjective ()
static void setComparisonIncludeAdverb (bool v)
static bool comparisonIncludeAdverb ()
static void setBlockItem (int i, int v)
static int blockItem (int i)
static void setExpireItem (int i, int v)
static int expireItem (int i)
static void setProvidersUrl (const QString &v)
static QString providersUrl ()
static void setInstallationCommand (const QString &v)
static QString installationCommand ()
static void setInstallPath (const QString &v)
static QString installPath ()

Protected Member Functions

 Prefs ()

Protected Attributes

int mNumPreSetting
bool mAutoEntryApply
bool mSmartAppend
QString mSeparator
int mEntriesPerLesson
bool mAutoSave
int mSeparatorCombo
bool mAutoBackup
int mBackupTime
int mHeaderResizeMode
bool mBlock
bool mExpire
bool mAltLearn
bool mTestOrderLesson
int mTestNumberOfEntries
bool mSwapDirection
bool mPracticeTimeout
int mPracticeTimeoutMode
int mPracticeTimeoutTimePerAnswer
bool mSuggestions
bool mIgnoreAccentMistakes
bool mIgnoreCapitalizationMistakes
bool mSplitTranslations
bool mPeriods
bool mColons
bool mSemicolons
bool mCommas
bool mShowMore
bool mSkipKnownEnabled
bool mCountSynonymsAsCorrect
bool mPracticeImagesEnabled
bool mPracticeSoundEnabled
bool mShowSearch
bool mTableLessonColumnVisible
bool mTableActiveColumnVisible
int mLessonEditingSelection
QList< int > mMainWindowSplitter
QFont mTableFont
QFont mIPAFont
int mCurrentCol
int mCurrentRow
bool mUseGradeColors
QColor mGradeColor [8]
int mPracticeMinimumTimesAsked
int mPracticeMaximumTimesAsked
int mPracticeMinimumWrongCount
int mPracticeMaximumWrongCount
int mPracticeMinimumGrade
int mPracticeMaximumGrade
bool mWordTypesInPracticeEnabled
QStringList mWordTypesInPractice
QStringList mSubWordTypesInPractice
int mQuestionLanguage
int mSolutionLanguage
bool mShowSolutionAfterAnswer
int mShowSolutionAfterAnswerTime
int mTestType
bool mComparisonIncludeAdjective
bool mComparisonIncludeAdverb
int mBlockItem [8]
int mExpireItem [8]
QString mProvidersUrl
QString mInstallationCommand
QString mInstallPath

Friends

class PrefsHelper

Classes

class  EnumHeaderResizeMode
class  EnumLessonEditingSelection
class  EnumPracticeTimeoutMode
class  EnumTestType

Constructor & Destructor Documentation

Prefs::~Prefs (  ) 

Definition at line 388 of file prefs.cpp.

Prefs::Prefs (  )  [protected]

Definition at line 27 of file prefs.cpp.


Member Function Documentation

Prefs * Prefs::self (  )  [static]

Definition at line 17 of file prefs.cpp.

static void Prefs::setNumPreSetting ( int  v  )  [inline, static]

Set Number of stored setting profiles.

Definition at line 41 of file prefs.h.

static int Prefs::numPreSetting (  )  [inline, static]

Get Number of stored setting profiles.

Definition at line 51 of file prefs.h.

static void Prefs::setAutoEntryApply ( bool  v  )  [inline, static]

Set AutoEntryApply.

Definition at line 60 of file prefs.h.

static bool Prefs::autoEntryApply (  )  [inline, static]

Get AutoEntryApply.

Definition at line 70 of file prefs.h.

static void Prefs::setSmartAppend ( bool  v  )  [inline, static]

Set If true, when using the entry dialog, new rows will be appended as needed.

Definition at line 79 of file prefs.h.

static bool Prefs::smartAppend (  )  [inline, static]

Get If true, when using the entry dialog, new rows will be appended as needed.

Definition at line 89 of file prefs.h.

static void Prefs::setSeparator ( const QString &  v  )  [inline, static]

Set This sets the separator used when copying/pasting text, default is Tab.

Definition at line 98 of file prefs.h.

static QString Prefs::separator (  )  [inline, static]

Get This sets the separator used when copying/pasting text, default is Tab.

Definition at line 108 of file prefs.h.

static void Prefs::setEntriesPerLesson ( int  v  )  [inline, static]

Set The number of entries per lesson.

Definition at line 117 of file prefs.h.

static int Prefs::entriesPerLesson (  )  [inline, static]

Get The number of entries per lesson.

Definition at line 127 of file prefs.h.

static void Prefs::setAutoSave ( bool  v  )  [inline, static]

Set If true, vocabularies are automatically saved on close and exit.

Definition at line 136 of file prefs.h.

static bool Prefs::autoSave (  )  [inline, static]

Get If true, vocabularies are automatically saved on close and exit.

Definition at line 146 of file prefs.h.

static void Prefs::setSeparatorCombo ( int  v  )  [inline, static]

Set SeparatorCombo.

Definition at line 155 of file prefs.h.

static int Prefs::separatorCombo (  )  [inline, static]

Get SeparatorCombo.

Definition at line 165 of file prefs.h.

static void Prefs::setAutoBackup ( bool  v  )  [inline, static]

Set If true, a backup is save every BackupTime minutes.

Definition at line 174 of file prefs.h.

static bool Prefs::autoBackup (  )  [inline, static]

Get If true, a backup is save every BackupTime minutes.

Definition at line 184 of file prefs.h.

static void Prefs::setBackupTime ( int  v  )  [inline, static]

Set Time interval between two automatic backups.

Definition at line 193 of file prefs.h.

static int Prefs::backupTime (  )  [inline, static]

Get Time interval between two automatic backups.

Definition at line 203 of file prefs.h.

static void Prefs::setHeaderResizeMode ( int  v  )  [inline, static]

Set How the columns should be resized.

Definition at line 212 of file prefs.h.

static int Prefs::headerResizeMode (  )  [inline, static]

Get How the columns should be resized.

Definition at line 222 of file prefs.h.

static void Prefs::setBlock ( bool  v  )  [inline, static]

Set In Blocking Query Tab Dialog, if checked then the Query is blocked.

Definition at line 231 of file prefs.h.

static bool Prefs::block (  )  [inline, static]

Get In Blocking Query Tab Dialog, if checked then the Query is blocked.

Definition at line 241 of file prefs.h.

static void Prefs::setExpire ( bool  v  )  [inline, static]

Set In Blocking Query Tab Dialog, if checked then the Query accepts an expiring time.

Definition at line 250 of file prefs.h.

static bool Prefs::expire (  )  [inline, static]

Get In Blocking Query Tab Dialog, if checked then the Query accepts an expiring time.

Definition at line 260 of file prefs.h.

static void Prefs::setAltLearn ( bool  v  )  [inline, static]

Set Use the Leitner learning method.

Definition at line 269 of file prefs.h.

static bool Prefs::altLearn (  )  [inline, static]

Get Use the Leitner learning method.

Definition at line 279 of file prefs.h.

static void Prefs::setTestOrderLesson ( bool  v  )  [inline, static]

Set Append new vocabulary in a test in order of their lessons.

Note that this will not be a hard transition, but a slow mix from one lesson to the next.

Definition at line 288 of file prefs.h.

static bool Prefs::testOrderLesson (  )  [inline, static]

Get Append new vocabulary in a test in order of their lessons.

Note that this will not be a hard transition, but a slow mix from one lesson to the next.

Definition at line 298 of file prefs.h.

static void Prefs::setTestNumberOfEntries ( int  v  )  [inline, static]

Set The number of entries that are practiced at the same time.

If one of these is answered correctly another entry will be appended.

Definition at line 307 of file prefs.h.

static int Prefs::testNumberOfEntries (  )  [inline, static]

Get The number of entries that are practiced at the same time.

If one of these is answered correctly another entry will be appended.

Definition at line 317 of file prefs.h.

static void Prefs::setSwapDirection ( bool  v  )  [inline, static]

Set Swap direction randomly.

Definition at line 326 of file prefs.h.

static bool Prefs::swapDirection (  )  [inline, static]

Get Swap direction randomly.

Definition at line 336 of file prefs.h.

static void Prefs::setPracticeTimeout ( bool  v  )  [inline, static]

Set Limit the time for the user to answer in a test.

Definition at line 345 of file prefs.h.

static bool Prefs::practiceTimeout (  )  [inline, static]

Get Limit the time for the user to answer in a test.

Definition at line 355 of file prefs.h.

static void Prefs::setPracticeTimeoutMode ( int  v  )  [inline, static]

Set Show - show the solution after the given time, Continue goes to the next question after the timeout.

Definition at line 364 of file prefs.h.

static int Prefs::practiceTimeoutMode (  )  [inline, static]

Get Show - show the solution after the given time, Continue goes to the next question after the timeout.

Definition at line 374 of file prefs.h.

static void Prefs::setPracticeTimeoutTimePerAnswer ( int  v  )  [inline, static]

Set Maximum time allowed to answer.

Definition at line 383 of file prefs.h.

static int Prefs::practiceTimeoutTimePerAnswer (  )  [inline, static]

Get Maximum time allowed to answer.

Definition at line 393 of file prefs.h.

static void Prefs::setSuggestions ( bool  v  )  [inline, static]

Set Enable suggestion lists in written practice.

Definition at line 402 of file prefs.h.

static bool Prefs::suggestions (  )  [inline, static]

Get Enable suggestion lists in written practice.

Definition at line 412 of file prefs.h.

static void Prefs::setIgnoreAccentMistakes ( bool  v  )  [inline, static]

Set Count answers as right when only the accentuation is wrong.

Definition at line 421 of file prefs.h.

static bool Prefs::ignoreAccentMistakes (  )  [inline, static]

Get Count answers as right when only the accentuation is wrong.

Definition at line 431 of file prefs.h.

static void Prefs::setIgnoreCapitalizationMistakes ( bool  v  )  [inline, static]

Set Count answers as right when only the capitalization is wrong.

Definition at line 440 of file prefs.h.

static bool Prefs::ignoreCapitalizationMistakes (  )  [inline, static]

Get Count answers as right when only the capitalization is wrong.

Definition at line 450 of file prefs.h.

static void Prefs::setSplitTranslations ( bool  v  )  [inline, static]

Set Split translations in written practice.

Definition at line 459 of file prefs.h.

static bool Prefs::splitTranslations (  )  [inline, static]

Get Split translations in written practice.

Definition at line 469 of file prefs.h.

static void Prefs::setPeriods ( bool  v  )  [inline, static]

Set Split translations at periods.

Definition at line 478 of file prefs.h.

static bool Prefs::periods (  )  [inline, static]

Get Split translations at periods.

Definition at line 488 of file prefs.h.

static void Prefs::setColons ( bool  v  )  [inline, static]

Set Split translations at colons.

Definition at line 497 of file prefs.h.

static bool Prefs::colons (  )  [inline, static]

Get Split translations at colons.

Definition at line 507 of file prefs.h.

static void Prefs::setSemicolons ( bool  v  )  [inline, static]

Set Split translations at semicolons.

Definition at line 516 of file prefs.h.

static bool Prefs::semicolons (  )  [inline, static]

Get Split translations at semicolons.

Definition at line 526 of file prefs.h.

static void Prefs::setCommas ( bool  v  )  [inline, static]

Set Split translations at commas.

Definition at line 535 of file prefs.h.

static bool Prefs::commas (  )  [inline, static]

Get Split translations at commas.

Definition at line 545 of file prefs.h.

static void Prefs::setShowMore ( bool  v  )  [inline, static]

Set Enable Show More button to reveal parts of the solution in written practice.

Definition at line 554 of file prefs.h.

static bool Prefs::showMore (  )  [inline, static]

Get Enable Show More button to reveal parts of the solution in written practice.

Definition at line 564 of file prefs.h.

static void Prefs::setSkipKnownEnabled ( bool  v  )  [inline, static]

Set Enable Skip (I Know It) button in written practice.

Definition at line 573 of file prefs.h.

static bool Prefs::skipKnownEnabled (  )  [inline, static]

Get Enable Skip (I Know It) button in written practice.

Definition at line 583 of file prefs.h.

static void Prefs::setCountSynonymsAsCorrect ( bool  v  )  [inline, static]

Set When the synonym instead of the word was entered, does it count as correct?

Definition at line 592 of file prefs.h.

static bool Prefs::countSynonymsAsCorrect (  )  [inline, static]

Get When the synonym instead of the word was entered, does it count as correct?

Definition at line 602 of file prefs.h.

static void Prefs::setPracticeImagesEnabled ( bool  v  )  [inline, static]

Set Enable image display in the practice dialogs.

Definition at line 611 of file prefs.h.

static bool Prefs::practiceImagesEnabled (  )  [inline, static]

Get Enable image display in the practice dialogs.

Definition at line 621 of file prefs.h.

static void Prefs::setPracticeSoundEnabled ( bool  v  )  [inline, static]

Set Enable sound playback in the practice dialogs.

Definition at line 630 of file prefs.h.

static bool Prefs::practiceSoundEnabled (  )  [inline, static]

Get Enable sound playback in the practice dialogs.

Definition at line 640 of file prefs.h.

static void Prefs::setShowSearch ( bool  v  )  [inline, static]

Set Toggle display of the search bar.

Definition at line 649 of file prefs.h.

static bool Prefs::showSearch (  )  [inline, static]

Get Toggle display of the search bar.

Definition at line 659 of file prefs.h.

static void Prefs::setTableLessonColumnVisible ( bool  v  )  [inline, static]

Set Show/hide the lesson column.

Definition at line 668 of file prefs.h.

static bool Prefs::tableLessonColumnVisible (  )  [inline, static]

Get Show/hide the lesson column.

Definition at line 678 of file prefs.h.

static void Prefs::setTableActiveColumnVisible ( bool  v  )  [inline, static]

Set Show/hide the active column.

Definition at line 687 of file prefs.h.

static bool Prefs::tableActiveColumnVisible (  )  [inline, static]

Get Show/hide the active column.

Definition at line 697 of file prefs.h.

static void Prefs::setLessonEditingSelection ( int  v  )  [inline, static]

Set Select which lessons are displayed for editing.

Definition at line 706 of file prefs.h.

static int Prefs::lessonEditingSelection (  )  [inline, static]

Get Select which lessons are displayed for editing.

Definition at line 716 of file prefs.h.

static void Prefs::setMainWindowSplitter ( const QList< int > &  v  )  [inline, static]

Set How the main window is divided.

Definition at line 725 of file prefs.h.

static QList<int> Prefs::mainWindowSplitter (  )  [inline, static]

Get How the main window is divided.

Definition at line 735 of file prefs.h.

static void Prefs::setTableFont ( const QFont &  v  )  [inline, static]

Set The font used in the vocabulary table.

Definition at line 744 of file prefs.h.

static QFont Prefs::tableFont (  )  [inline, static]

Get The font used in the vocabulary table.

Definition at line 754 of file prefs.h.

static void Prefs::setIPAFont ( const QFont &  v  )  [inline, static]

Set The font used for phonetics.

Definition at line 763 of file prefs.h.

static QFont Prefs::iPAFont (  )  [inline, static]

Get The font used for phonetics.

Definition at line 773 of file prefs.h.

static void Prefs::setCurrentCol ( int  v  )  [inline, static]

Set Currently selected column.

Definition at line 782 of file prefs.h.

static int Prefs::currentCol (  )  [inline, static]

Get Currently selected column.

Definition at line 792 of file prefs.h.

static void Prefs::setCurrentRow ( int  v  )  [inline, static]

Set Currently selected row.

Definition at line 801 of file prefs.h.

static int Prefs::currentRow (  )  [inline, static]

Get Currently selected row.

Definition at line 811 of file prefs.h.

static void Prefs::setUseGradeColors ( bool  v  )  [inline, static]

Set Use your own colors.

Definition at line 820 of file prefs.h.

static bool Prefs::useGradeColors (  )  [inline, static]

Get Use your own colors.

Definition at line 830 of file prefs.h.

static void Prefs::setGradeColor ( int  i,
const QColor &  v 
) [inline, static]

Set Colors used to display different grades.

Definition at line 839 of file prefs.h.

static QColor Prefs::gradeColor ( int  i  )  [inline, static]

Get Colors used to display different grades.

Definition at line 849 of file prefs.h.

static void Prefs::setPracticeMinimumTimesAsked ( int  v  )  [inline, static]

Set The entry has been asked at least this often to be included in the practice.

Definition at line 858 of file prefs.h.

static int Prefs::practiceMinimumTimesAsked (  )  [inline, static]

Get The entry has been asked at least this often to be included in the practice.

Definition at line 868 of file prefs.h.

static void Prefs::setPracticeMaximumTimesAsked ( int  v  )  [inline, static]

Set The entry has been asked at most this often to be included in the practice.

Definition at line 877 of file prefs.h.

static int Prefs::practiceMaximumTimesAsked (  )  [inline, static]

Get The entry has been asked at most this often to be included in the practice.

Definition at line 887 of file