parley
prefs.cpp
Go to the documentation of this file.
35 itemTheme = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "Theme" ), mTheme, QLatin1String( "themes/theme_reference.desktop" ) );
38 itemNumPreSetting = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "NumPreSetting" ), mNumPreSetting, 0 );
41 itemSmartAppend = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "SmartAppend" ), mSmartAppend, true );
44 itemSeparator = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "Separator" ), mSeparator, QChar('\t') );
47 itemEntriesPerLesson = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "EntriesPerLesson" ), mEntriesPerLesson, 20 );
50 itemAutoOpenLast = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "AutoOpenLast" ), mAutoOpenLast, false );
53 itemAutoSave = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "AutoSave" ), mAutoSave, false );
56 itemSeparatorCombo = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "SeparatorCombo" ), mSeparatorCombo, 0 );
59 itemAutoBackup = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "AutoBackup" ), mAutoBackup, false );
62 itemBackupTime = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "BackupTime" ), mBackupTime, 15 );
65 itemAutomaticTranslation = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "AutomaticTranslation" ), mAutomaticTranslation, false );
71 itemFlashcardsFrontImage = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "FlashcardsFrontImage" ), mFlashcardsFrontImage, true );
74 itemFlashcardsBackImage = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "FlashcardsBackImage" ), mFlashcardsBackImage, true );
77 itemBlock = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "Block" ), mBlock, true );
80 itemExpire = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "Expire" ), mExpire, true );
83 itemAltLearn = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "AltLearn" ), mAltLearn, false );
86 itemTestOrderLesson = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "TestOrderLesson" ), mTestOrderLesson, true );
89 itemTestNumberOfEntries = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "TestNumberOfEntries" ), mTestNumberOfEntries, 20 );
92 itemSwapDirection = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "SwapDirection" ), mSwapDirection, false );
95 itemPracticeTimeout = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "PracticeTimeout" ), mPracticeTimeout, false );
109 itemPracticeTimeoutMode = new KConfigSkeleton::ItemEnum( currentGroup(), QLatin1String( "PracticeTimeoutMode" ), mPracticeTimeoutMode, valuesPracticeTimeoutMode, EnumPracticeTimeoutMode::Show );
112 itemPracticeTimeoutTimePerAnswer = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "PracticeTimeoutTimePerAnswer" ), mPracticeTimeoutTimePerAnswer, 20 );
115 itemSuggestions = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "Suggestions" ), mSuggestions, false );
118 itemShowHints = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "ShowHints" ), mShowHints, true );
121 itemIgnoreAccentMistakes = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "IgnoreAccentMistakes" ), mIgnoreAccentMistakes, false );
124 itemIgnoreCapitalizationMistakes = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "IgnoreCapitalizationMistakes" ), mIgnoreCapitalizationMistakes, false );
127 itemSplitTranslations = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "SplitTranslations" ), mSplitTranslations, false );
130 itemPeriods = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "Periods" ), mPeriods, true );
133 itemColons = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "Colons" ), mColons, false );
136 itemSemicolons = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "Semicolons" ), mSemicolons, true );
139 itemCommas = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "Commas" ), mCommas, false );
142 itemShowMore = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "ShowMore" ), mShowMore, true );
145 itemSkipKnownEnabled = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "SkipKnownEnabled" ), mSkipKnownEnabled, true );
148 itemCountSynonymsAsCorrect = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "CountSynonymsAsCorrect" ), mCountSynonymsAsCorrect, true );
151 itemPracticeImagesEnabled = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "PracticeImagesEnabled" ), mPracticeImagesEnabled, true );
154 itemPracticeSoundEnabled = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "PracticeSoundEnabled" ), mPracticeSoundEnabled, true );
157 itemAllowImageInsteadOfWord = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "AllowImageInsteadOfWord" ), mAllowImageInsteadOfWord, false );
160 itemSessionMaxSize = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "SessionMaxSize" ), mSessionMaxSize, 20 );
163 itemSessionMaxNewWords = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "SessionMaxNewWords" ), mSessionMaxNewWords, 5 );
166 itemMultipleChoiceWordTypeConsistancy = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "MultipleChoiceWordTypeConsistancy" ), mMultipleChoiceWordTypeConsistancy, true );
167 addItem( itemMultipleChoiceWordTypeConsistancy, QLatin1String( "MultipleChoiceWordTypeConsistancy" ) );
169 itemNumberMultipleChoiceAnswers = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "NumberMultipleChoiceAnswers" ), mNumberMultipleChoiceAnswers, 5 );
175 itemShowSearch = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "ShowSearch" ), mShowSearch, true );
178 itemShowSublessonentries = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "ShowSublessonentries" ), mShowSublessonentries, true );
181 itemTableLessonColumnVisible = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "TableLessonColumnVisible" ), mTableLessonColumnVisible, false );
184 itemTableActiveColumnVisible = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "TableActiveColumnVisible" ), mTableActiveColumnVisible, false );
208 itemLessonEditingSelection = new KConfigSkeleton::ItemEnum( currentGroup(), QLatin1String( "LessonEditingSelection" ), mLessonEditingSelection, valuesLessonEditingSelection, EnumLessonEditingSelection::CurrentLesson );
215 itemMainWindowSplitter = new KConfigSkeleton::ItemIntList( currentGroup(), QLatin1String( "MainWindowSplitter" ), mMainWindowSplitter, defaultMainWindowSplitter );
218 itemPracticeFont = new KConfigSkeleton::ItemFont( currentGroup(), QLatin1String( "PracticeFont" ), mPracticeFont, KGlobalSettings::generalFont() );
221 itemIPAFont = new KConfigSkeleton::ItemFont( currentGroup(), QLatin1String( "IPAFont" ), mIPAFont, KGlobalSettings::generalFont() );
224 itemCurrentCol = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "CurrentCol" ), mCurrentCol, 2 );
227 itemCurrentRow = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "CurrentRow" ), mCurrentRow, 0 );
230 itemGradeColor = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "GradeColor" ), mGradeColor, QColor( 25, 140, 25 ) );
233 itemPreGradeColor = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "PreGradeColor" ), mPreGradeColor, QColor( 255, 255, 0 ) );
236 itemInvalidUnitColor = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "InvalidUnitColor" ), mInvalidUnitColor, QColor( 255, 0, 0 ) );
242 itemPracticeMinimumTimesAsked = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "PracticeMinimumTimesAsked" ), mPracticeMinimumTimesAsked, 0 );
245 itemPracticeMaximumTimesAsked = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "PracticeMaximumTimesAsked" ), mPracticeMaximumTimesAsked, 1000 );
248 itemPracticeMinimumWrongCount = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "PracticeMinimumWrongCount" ), mPracticeMinimumWrongCount, 0 );
251 itemPracticeMaximumWrongCount = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "PracticeMaximumWrongCount" ), mPracticeMaximumWrongCount, 1000 );
254 itemPracticeMinimumGrade = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "PracticeMinimumGrade" ), mPracticeMinimumGrade, 0 );
257 itemPracticeMaximumGrade = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "PracticeMaximumGrade" ), mPracticeMaximumGrade, 7 );
260 itemWordTypesInPracticeEnabled = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "WordTypesInPracticeEnabled" ), mWordTypesInPracticeEnabled, false );
263 itemWordTypesInPractice = new KConfigSkeleton::ItemStringList( currentGroup(), QLatin1String( "WordTypesInPractice" ), mWordTypesInPractice );
266 itemSubWordTypesInPractice = new KConfigSkeleton::ItemStringList( currentGroup(), QLatin1String( "SubWordTypesInPractice" ), mSubWordTypesInPractice );
272 itemLearningLanguage = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "LearningLanguage" ), mLearningLanguage, 0 );
275 itemKnownLanguage = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "KnownLanguage" ), mKnownLanguage, 1 );
278 itemShowSolutionAfterAnswer = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "ShowSolutionAfterAnswer" ), mShowSolutionAfterAnswer, true );
281 itemShowSolutionAfterAnswerTime = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "ShowSolutionAfterAnswerTime" ), mShowSolutionAfterAnswerTime, 0 );
325 itemPracticeMode = new KConfigSkeleton::ItemEnum( currentGroup(), QLatin1String( "PracticeMode" ), mPracticeMode, valuesPracticeMode, EnumPracticeMode::FlashCardsPractice );
349 itemPracticeDirection = new KConfigSkeleton::ItemEnum( currentGroup(), QLatin1String( "PracticeDirection" ), mPracticeDirection, valuesPracticeDirection, EnumPracticeDirection::MixedDirectionsWordsOnly );
352 itemBlockItem[0] = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "BlockItem0" ), mBlockItem[0], 0 );
354 itemBlockItem[1] = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "BlockItem1" ), mBlockItem[1], 86400 );
356 itemBlockItem[2] = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "BlockItem2" ), mBlockItem[2], 172800 );
358 itemBlockItem[3] = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "BlockItem3" ), mBlockItem[3], 345600 );
360 itemBlockItem[4] = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "BlockItem4" ), mBlockItem[4], 604800 );
362 itemBlockItem[5] = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "BlockItem5" ), mBlockItem[5], 1209600 );
364 itemBlockItem[6] = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "BlockItem6" ), mBlockItem[6], 2592000 );
366 itemBlockItem[7] = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "BlockItem7" ), mBlockItem[7], 5184000 );
369 itemExpireItem[0] = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "ExpireItem0" ), mExpireItem[0], 0 );
371 itemExpireItem[1] = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "ExpireItem1" ), mExpireItem[1], 172800 );
373 itemExpireItem[2] = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "ExpireItem2" ), mExpireItem[2], 345600 );
375 itemExpireItem[3] = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "ExpireItem3" ), mExpireItem[3], 604800 );
377 itemExpireItem[4] = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "ExpireItem4" ), mExpireItem[4], 1209600 );
379 itemExpireItem[5] = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "ExpireItem5" ), mExpireItem[5], 2592000 );
381 itemExpireItem[6] = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "ExpireItem6" ), mExpireItem[6], 5184000 );
383 itemExpireItem[7] = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "ExpireItem7" ), mExpireItem[7], 10368000 );
389 itemProvidersUrl = new KConfigSkeleton::ItemPath( currentGroup(), QLatin1String( "ProvidersUrl" ), mProvidersUrl, QLatin1String( "\"http://edu.kde.org/parley/providers.xml\"" ) );
392 itemInstallationCommand = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "InstallationCommand" ), mInstallationCommand, QLatin1String( "parley %f" ) );
395 itemInstallPath = new KConfigSkeleton::ItemPath( currentGroup(), QLatin1String( "InstallPath" ), mInstallPath, QLatin1String( "$HOME/Vocabularies/" ) );
bool mMultipleChoiceWordTypeConsistancy
Definition: prefs.h:1490
Definition: prefs.h:10
void append(const T &value)
Definition: prefs.h:16
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.