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

parley

  • sources
  • kde-4.14
  • kdeedu
  • parley
  • src
  • settings
prefs.h
Go to the documentation of this file.
1 // This file is generated by kconfig_compiler from parley.kcfg.
2 // All changes you do to this file will be lost.
3 #ifndef PREFS_H
4 #define PREFS_H
5 
6 #include <kconfigskeleton.h>
7 #include <kdebug.h>
8 
9 #include <kglobalsettings.h>
10 class Prefs : public KConfigSkeleton
11 {
12  public:
13  class EnumPracticeTimeoutMode
14  {
15  public:
16  enum type { Show, Continue, COUNT };
17  };
18  class EnumLessonEditingSelection
19  {
20  public:
21  enum type { CurrentLesson, LessonsInQuery, AllLessons, UserFiltered, COUNT };
22  };
23  class EnumPracticeMode
24  {
25  public:
26  enum type { FlashCardsPractice, MixedLettersPractice, MultipleChoicePractice, WrittenPractice, ExampleSentencesPractice, GenderPractice, ComparisonPractice, ConjugationPractice, COUNT };
27  };
28  class EnumPracticeDirection
29  {
30  public:
31  enum type { KnownToLearning, LearningToKnown, MixedDirectionsWordsOnly, MixedDirectionsWithSound, COUNT };
32  };
33 
34  static Prefs *self();
35  ~Prefs();
36 
40  static
41  void setTheme( const QString & v )
42  {
43  if (!self()->isImmutable( QString::fromLatin1( "Theme" ) ))
44  self()->mTheme = v;
45  }
46 
50  static
51  QString theme()
52  {
53  return self()->mTheme;
54  }
55 
59  static
60  void setNumPreSetting( int v )
61  {
62  if (!self()->isImmutable( QString::fromLatin1( "NumPreSetting" ) ))
63  self()->mNumPreSetting = v;
64  }
65 
69  static
70  int numPreSetting()
71  {
72  return self()->mNumPreSetting;
73  }
74 
78  static
79  void setSmartAppend( bool v )
80  {
81  if (!self()->isImmutable( QString::fromLatin1( "SmartAppend" ) ))
82  self()->mSmartAppend = v;
83  }
84 
88  static
89  bool smartAppend()
90  {
91  return self()->mSmartAppend;
92  }
93 
97  static
98  void setSeparator( const QString & v )
99  {
100  if (!self()->isImmutable( QString::fromLatin1( "Separator" ) ))
101  self()->mSeparator = v;
102  }
103 
107  static
108  QString separator()
109  {
110  return self()->mSeparator;
111  }
112 
116  static
117  void setEntriesPerLesson( int v )
118  {
119  if (!self()->isImmutable( QString::fromLatin1( "EntriesPerLesson" ) ))
120  self()->mEntriesPerLesson = v;
121  }
122 
126  static
127  int entriesPerLesson()
128  {
129  return self()->mEntriesPerLesson;
130  }
131 
135  static
136  void setAutoOpenLast( bool v )
137  {
138  if (!self()->isImmutable( QString::fromLatin1( "AutoOpenLast" ) ))
139  self()->mAutoOpenLast = v;
140  }
141 
145  static
146  bool autoOpenLast()
147  {
148  return self()->mAutoOpenLast;
149  }
150 
154  static
155  void setAutoSave( bool v )
156  {
157  if (!self()->isImmutable( QString::fromLatin1( "AutoSave" ) ))
158  self()->mAutoSave = v;
159  }
160 
164  static
165  bool autoSave()
166  {
167  return self()->mAutoSave;
168  }
169 
173  static
174  void setSeparatorCombo( int v )
175  {
176  if (!self()->isImmutable( QString::fromLatin1( "SeparatorCombo" ) ))
177  self()->mSeparatorCombo = v;
178  }
179 
183  static
184  int separatorCombo()
185  {
186  return self()->mSeparatorCombo;
187  }
188 
192  static
193  void setAutoBackup( bool v )
194  {
195  if (!self()->isImmutable( QString::fromLatin1( "AutoBackup" ) ))
196  self()->mAutoBackup = v;
197  }
198 
202  static
203  bool autoBackup()
204  {
205  return self()->mAutoBackup;
206  }
207 
211  static
212  void setBackupTime( int v )
213  {
214  if (!self()->isImmutable( QString::fromLatin1( "BackupTime" ) ))
215  self()->mBackupTime = v;
216  }
217 
221  static
222  int backupTime()
223  {
224  return self()->mBackupTime;
225  }
226 
230  static
231  void setAutomaticTranslation( bool v )
232  {
233  if (!self()->isImmutable( QString::fromLatin1( "AutomaticTranslation" ) ))
234  self()->mAutomaticTranslation = v;
235  }
236 
240  static
241  bool automaticTranslation()
242  {
243  return self()->mAutomaticTranslation;
244  }
245 
249  static
250  void setFlashcardsFrontImage( bool v )
251  {
252  if (!self()->isImmutable( QString::fromLatin1( "FlashcardsFrontImage" ) ))
253  self()->mFlashcardsFrontImage = v;
254  }
255 
259  static
260  bool flashcardsFrontImage()
261  {
262  return self()->mFlashcardsFrontImage;
263  }
264 
268  static
269  void setFlashcardsBackImage( bool v )
270  {
271  if (!self()->isImmutable( QString::fromLatin1( "FlashcardsBackImage" ) ))
272  self()->mFlashcardsBackImage = v;
273  }
274 
278  static
279  bool flashcardsBackImage()
280  {
281  return self()->mFlashcardsBackImage;
282  }
283 
287  static
288  void setBlock( bool v )
289  {
290  if (!self()->isImmutable( QString::fromLatin1( "Block" ) ))
291  self()->mBlock = v;
292  }
293 
297  static
298  bool block()
299  {
300  return self()->mBlock;
301  }
302 
306  static
307  void setExpire( bool v )
308  {
309  if (!self()->isImmutable( QString::fromLatin1( "Expire" ) ))
310  self()->mExpire = v;
311  }
312 
316  static
317  bool expire()
318  {
319  return self()->mExpire;
320  }
321 
325  static
326  void setAltLearn( bool v )
327  {
328  if (!self()->isImmutable( QString::fromLatin1( "AltLearn" ) ))
329  self()->mAltLearn = v;
330  }
331 
335  static
336  bool altLearn()
337  {
338  return self()->mAltLearn;
339  }
340 
344  static
345  void setTestOrderLesson( bool v )
346  {
347  if (!self()->isImmutable( QString::fromLatin1( "TestOrderLesson" ) ))
348  self()->mTestOrderLesson = v;
349  }
350 
354  static
355  bool testOrderLesson()
356  {
357  return self()->mTestOrderLesson;
358  }
359 
363  static
364  void setTestNumberOfEntries( int v )
365  {
366  if (!self()->isImmutable( QString::fromLatin1( "TestNumberOfEntries" ) ))
367  self()->mTestNumberOfEntries = v;
368  }
369 
373  static
374  int testNumberOfEntries()
375  {
376  return self()->mTestNumberOfEntries;
377  }
378 
382  static
383  void setSwapDirection( bool v )
384  {
385  if (!self()->isImmutable( QString::fromLatin1( "SwapDirection" ) ))
386  self()->mSwapDirection = v;
387  }
388 
392  static
393  bool swapDirection()
394  {
395  return self()->mSwapDirection;
396  }
397 
401  static
402  void setPracticeTimeout( bool v )
403  {
404  if (!self()->isImmutable( QString::fromLatin1( "PracticeTimeout" ) ))
405  self()->mPracticeTimeout = v;
406  }
407 
411  static
412  bool practiceTimeout()
413  {
414  return self()->mPracticeTimeout;
415  }
416 
420  static
421  void setPracticeTimeoutMode( EnumPracticeTimeoutMode::type v )
422  {
423  if (!self()->isImmutable( QString::fromLatin1( "PracticeTimeoutMode" ) ))
424  self()->mPracticeTimeoutMode = v;
425  }
426 
430  static
431  EnumPracticeTimeoutMode::type practiceTimeoutMode()
432  {
433  return static_cast<EnumPracticeTimeoutMode::type>(self()->mPracticeTimeoutMode);
434  }
435 
439  static
440  void setPracticeTimeoutTimePerAnswer( int v )
441  {
442  if (!self()->isImmutable( QString::fromLatin1( "PracticeTimeoutTimePerAnswer" ) ))
443  self()->mPracticeTimeoutTimePerAnswer = v;
444  }
445 
449  static
450  int practiceTimeoutTimePerAnswer()
451  {
452  return self()->mPracticeTimeoutTimePerAnswer;
453  }
454 
458  static
459  void setSuggestions( bool v )
460  {
461  if (!self()->isImmutable( QString::fromLatin1( "Suggestions" ) ))
462  self()->mSuggestions = v;
463  }
464 
468  static
469  bool suggestions()
470  {
471  return self()->mSuggestions;
472  }
473 
477  static
478  void setShowHints( bool v )
479  {
480  if (!self()->isImmutable( QString::fromLatin1( "ShowHints" ) ))
481  self()->mShowHints = v;
482  }
483 
487  static
488  bool showHints()
489  {
490  return self()->mShowHints;
491  }
492 
496  static
497  void setIgnoreAccentMistakes( bool v )
498  {
499  if (!self()->isImmutable( QString::fromLatin1( "IgnoreAccentMistakes" ) ))
500  self()->mIgnoreAccentMistakes = v;
501  }
502 
506  static
507  bool ignoreAccentMistakes()
508  {
509  return self()->mIgnoreAccentMistakes;
510  }
511 
515  static
516  void setIgnoreCapitalizationMistakes( bool v )
517  {
518  if (!self()->isImmutable( QString::fromLatin1( "IgnoreCapitalizationMistakes" ) ))
519  self()->mIgnoreCapitalizationMistakes = v;
520  }
521 
525  static
526  bool ignoreCapitalizationMistakes()
527  {
528  return self()->mIgnoreCapitalizationMistakes;
529  }
530 
534  static
535  void setSplitTranslations( bool v )
536  {
537  if (!self()->isImmutable( QString::fromLatin1( "SplitTranslations" ) ))
538  self()->mSplitTranslations = v;
539  }
540 
544  static
545  bool splitTranslations()
546  {
547  return self()->mSplitTranslations;
548  }
549 
553  static
554  void setPeriods( bool v )
555  {
556  if (!self()->isImmutable( QString::fromLatin1( "Periods" ) ))
557  self()->mPeriods = v;
558  }
559 
563  static
564  bool periods()
565  {
566  return self()->mPeriods;
567  }
568 
572  static
573  void setColons( bool v )
574  {
575  if (!self()->isImmutable( QString::fromLatin1( "Colons" ) ))
576  self()->mColons = v;
577  }
578 
582  static
583  bool colons()
584  {
585  return self()->mColons;
586  }
587 
591  static
592  void setSemicolons( bool v )
593  {
594  if (!self()->isImmutable( QString::fromLatin1( "Semicolons" ) ))
595  self()->mSemicolons = v;
596  }
597 
601  static
602  bool semicolons()
603  {
604  return self()->mSemicolons;
605  }
606 
610  static
611  void setCommas( bool v )
612  {
613  if (!self()->isImmutable( QString::fromLatin1( "Commas" ) ))
614  self()->mCommas = v;
615  }
616 
620  static
621  bool commas()
622  {
623  return self()->mCommas;
624  }
625 
629  static
630  void setShowMore( bool v )
631  {
632  if (!self()->isImmutable( QString::fromLatin1( "ShowMore" ) ))
633  self()->mShowMore = v;
634  }
635 
639  static
640  bool showMore()
641  {
642  return self()->mShowMore;
643  }
644 
648  static
649  void setSkipKnownEnabled( bool v )
650  {
651  if (!self()->isImmutable( QString::fromLatin1( "SkipKnownEnabled" ) ))
652  self()->mSkipKnownEnabled = v;
653  }
654 
658  static
659  bool skipKnownEnabled()
660  {
661  return self()->mSkipKnownEnabled;
662  }
663 
667  static
668  void setCountSynonymsAsCorrect( bool v )
669  {
670  if (!self()->isImmutable( QString::fromLatin1( "CountSynonymsAsCorrect" ) ))
671  self()->mCountSynonymsAsCorrect = v;
672  }
673 
677  static
678  bool countSynonymsAsCorrect()
679  {
680  return self()->mCountSynonymsAsCorrect;
681  }
682 
686  static
687  void setPracticeImagesEnabled( bool v )
688  {
689  if (!self()->isImmutable( QString::fromLatin1( "PracticeImagesEnabled" ) ))
690  self()->mPracticeImagesEnabled = v;
691  }
692 
696  static
697  bool practiceImagesEnabled()
698  {
699  return self()->mPracticeImagesEnabled;
700  }
701 
705  static
706  void setPracticeSoundEnabled( bool v )
707  {
708  if (!self()->isImmutable( QString::fromLatin1( "PracticeSoundEnabled" ) ))
709  self()->mPracticeSoundEnabled = v;
710  }
711 
715  static
716  bool practiceSoundEnabled()
717  {
718  return self()->mPracticeSoundEnabled;
719  }
720 
724  static
725  void setAllowImageInsteadOfWord( bool v )
726  {
727  if (!self()->isImmutable( QString::fromLatin1( "AllowImageInsteadOfWord" ) ))
728  self()->mAllowImageInsteadOfWord = v;
729  }
730 
734  static
735  bool allowImageInsteadOfWord()
736  {
737  return self()->mAllowImageInsteadOfWord;
738  }
739 
743  static
744  void setSessionMaxSize( int v )
745  {
746  if (!self()->isImmutable( QString::fromLatin1( "SessionMaxSize" ) ))
747  self()->mSessionMaxSize = v;
748  }
749 
753  static
754  int sessionMaxSize()
755  {
756  return self()->mSessionMaxSize;
757  }
758 
762  static
763  void setSessionMaxNewWords( int v )
764  {
765  if (!self()->isImmutable( QString::fromLatin1( "SessionMaxNewWords" ) ))
766  self()->mSessionMaxNewWords = v;
767  }
768 
772  static
773  int sessionMaxNewWords()
774  {
775  return self()->mSessionMaxNewWords;
776  }
777 
781  static
782  void setMultipleChoiceWordTypeConsistancy( bool v )
783  {
784  if (!self()->isImmutable( QString::fromLatin1( "MultipleChoiceWordTypeConsistancy" ) ))
785  self()->mMultipleChoiceWordTypeConsistancy = v;
786  }
787 
791  static
792  bool multipleChoiceWordTypeConsistancy()
793  {
794  return self()->mMultipleChoiceWordTypeConsistancy;
795  }
796 
800  static
801  void setNumberMultipleChoiceAnswers( int v )
802  {
803  if (!self()->isImmutable( QString::fromLatin1( "NumberMultipleChoiceAnswers" ) ))
804  self()->mNumberMultipleChoiceAnswers = v;
805  }
806 
810  static
811  int numberMultipleChoiceAnswers()
812  {
813  return self()->mNumberMultipleChoiceAnswers;
814  }
815 
819  static
820  void setShowSearch( bool v )
821  {
822  if (!self()->isImmutable( QString::fromLatin1( "ShowSearch" ) ))
823  self()->mShowSearch = v;
824  }
825 
829  static
830  bool showSearch()
831  {
832  return self()->mShowSearch;
833  }
834 
838  static
839  void setShowSublessonentries( bool v )
840  {
841  if (!self()->isImmutable( QString::fromLatin1( "ShowSublessonentries" ) ))
842  self()->mShowSublessonentries = v;
843  }
844 
848  static
849  bool showSublessonentries()
850  {
851  return self()->mShowSublessonentries;
852  }
853 
857  static
858  void setTableLessonColumnVisible( bool v )
859  {
860  if (!self()->isImmutable( QString::fromLatin1( "TableLessonColumnVisible" ) ))
861  self()->mTableLessonColumnVisible = v;
862  }
863 
867  static
868  bool tableLessonColumnVisible()
869  {
870  return self()->mTableLessonColumnVisible;
871  }
872 
876  static
877  void setTableActiveColumnVisible( bool v )
878  {
879  if (!self()->isImmutable( QString::fromLatin1( "TableActiveColumnVisible" ) ))
880  self()->mTableActiveColumnVisible = v;
881  }
882 
886  static
887  bool tableActiveColumnVisible()
888  {
889  return self()->mTableActiveColumnVisible;
890  }
891 
895  static
896  void setLessonEditingSelection( EnumLessonEditingSelection::type v )
897  {
898  if (!self()->isImmutable( QString::fromLatin1( "LessonEditingSelection" ) ))
899  self()->mLessonEditingSelection = v;
900  }
901 
905  static
906  EnumLessonEditingSelection::type lessonEditingSelection()
907  {
908  return static_cast<EnumLessonEditingSelection::type>(self()->mLessonEditingSelection);
909  }
910 
914  static
915  void setMainWindowSplitter( const QList<int> & v )
916  {
917  if (!self()->isImmutable( QString::fromLatin1( "MainWindowSplitter" ) ))
918  self()->mMainWindowSplitter = v;
919  }
920 
924  static
925  QList<int> mainWindowSplitter()
926  {
927  return self()->mMainWindowSplitter;
928  }
929 
933  static
934  void setPracticeFont( const QFont & v )
935  {
936  if (!self()->isImmutable( QString::fromLatin1( "PracticeFont" ) ))
937  self()->mPracticeFont = v;
938  }
939 
943  static
944  QFont practiceFont()
945  {
946  return self()->mPracticeFont;
947  }
948 
952  static
953  void setIPAFont( const QFont & v )
954  {
955  if (!self()->isImmutable( QString::fromLatin1( "IPAFont" ) ))
956  self()->mIPAFont = v;
957  }
958 
962  static
963  QFont iPAFont()
964  {
965  return self()->mIPAFont;
966  }
967 
971  static
972  void setCurrentCol( int v )
973  {
974  if (!self()->isImmutable( QString::fromLatin1( "CurrentCol" ) ))
975  self()->mCurrentCol = v;
976  }
977 
981  static
982  int currentCol()
983  {
984  return self()->mCurrentCol;
985  }
986 
990  static
991  void setCurrentRow( int v )
992  {
993  if (!self()->isImmutable( QString::fromLatin1( "CurrentRow" ) ))
994  self()->mCurrentRow = v;
995  }
996 
1000  static
1001  int currentRow()
1002  {
1003  return self()->mCurrentRow;
1004  }
1005 
1009  static
1010  void setGradeColor( const QColor & v )
1011  {
1012  if (!self()->isImmutable( QString::fromLatin1( "GradeColor" ) ))
1013  self()->mGradeColor = v;
1014  }
1015 
1019  static
1020  QColor gradeColor()
1021  {
1022  return self()->mGradeColor;
1023  }
1024 
1028  static
1029  void setPreGradeColor( const QColor & v )
1030  {
1031  if (!self()->isImmutable( QString::fromLatin1( "PreGradeColor" ) ))
1032  self()->mPreGradeColor = v;
1033  }
1034 
1038  static
1039  QColor preGradeColor()
1040  {
1041  return self()->mPreGradeColor;
1042  }
1043 
1047  static
1048  void setInvalidUnitColor( const QColor & v )
1049  {
1050  if (!self()->isImmutable( QString::fromLatin1( "InvalidUnitColor" ) ))
1051  self()->mInvalidUnitColor = v;
1052  }
1053 
1057  static
1058  QColor invalidUnitColor()
1059  {
1060  return self()->mInvalidUnitColor;
1061  }
1062 
1066  static
1067  void setPracticeMinimumTimesAsked( int v )
1068  {
1069  if (!self()->isImmutable( QString::fromLatin1( "PracticeMinimumTimesAsked" ) ))
1070  self()->mPracticeMinimumTimesAsked = v;
1071  }
1072 
1076  static
1077  int practiceMinimumTimesAsked()
1078  {
1079  return self()->mPracticeMinimumTimesAsked;
1080  }
1081 
1085  static
1086  void setPracticeMaximumTimesAsked( int v )
1087  {
1088  if (!self()->isImmutable( QString::fromLatin1( "PracticeMaximumTimesAsked" ) ))
1089  self()->mPracticeMaximumTimesAsked = v;
1090  }
1091 
1095  static
1096  int practiceMaximumTimesAsked()
1097  {
1098  return self()->mPracticeMaximumTimesAsked;
1099  }
1100 
1104  static
1105  void setPracticeMinimumWrongCount( int v )
1106  {
1107  if (!self()->isImmutable( QString::fromLatin1( "PracticeMinimumWrongCount" ) ))
1108  self()->mPracticeMinimumWrongCount = v;
1109  }
1110 
1114  static
1115  int practiceMinimumWrongCount()
1116  {
1117  return self()->mPracticeMinimumWrongCount;
1118  }
1119 
1123  static
1124  void setPracticeMaximumWrongCount( int v )
1125  {
1126  if (!self()->isImmutable( QString::fromLatin1( "PracticeMaximumWrongCount" ) ))
1127  self()->mPracticeMaximumWrongCount = v;
1128  }
1129 
1133  static
1134  int practiceMaximumWrongCount()
1135  {
1136  return self()->mPracticeMaximumWrongCount;
1137  }
1138 
1142  static
1143  void setPracticeMinimumGrade( int v )
1144  {
1145  if (!self()->isImmutable( QString::fromLatin1( "PracticeMinimumGrade" ) ))
1146  self()->mPracticeMinimumGrade = v;
1147  }
1148 
1152  static
1153  int practiceMinimumGrade()
1154  {
1155  return self()->mPracticeMinimumGrade;
1156  }
1157 
1161  static
1162  void setPracticeMaximumGrade( int v )
1163  {
1164  if (!self()->isImmutable( QString::fromLatin1( "PracticeMaximumGrade" ) ))
1165  self()->mPracticeMaximumGrade = v;
1166  }
1167 
1171  static
1172  int practiceMaximumGrade()
1173  {
1174  return self()->mPracticeMaximumGrade;
1175  }
1176 
1180  static
1181  void setWordTypesInPracticeEnabled( bool v )
1182  {
1183  if (!self()->isImmutable( QString::fromLatin1( "WordTypesInPracticeEnabled" ) ))
1184  self()->mWordTypesInPracticeEnabled = v;
1185  }
1186 
1190  static
1191  bool wordTypesInPracticeEnabled()
1192  {
1193  return self()->mWordTypesInPracticeEnabled;
1194  }
1195 
1199  static
1200  void setWordTypesInPractice( const QStringList & v )
1201  {
1202  if (!self()->isImmutable( QString::fromLatin1( "WordTypesInPractice" ) ))
1203  self()->mWordTypesInPractice = v;
1204  }
1205 
1209  static
1210  QStringList wordTypesInPractice()
1211  {
1212  return self()->mWordTypesInPractice;
1213  }
1214 
1218  static
1219  void setSubWordTypesInPractice( const QStringList & v )
1220  {
1221  if (!self()->isImmutable( QString::fromLatin1( "SubWordTypesInPractice" ) ))
1222  self()->mSubWordTypesInPractice = v;
1223  }
1224 
1228  static
1229  QStringList subWordTypesInPractice()
1230  {
1231  return self()->mSubWordTypesInPractice;
1232  }
1233 
1237  static
1238  void setLearningLanguage( int v )
1239  {
1240  if (!self()->isImmutable( QString::fromLatin1( "LearningLanguage" ) ))
1241  self()->mLearningLanguage = v;
1242  }
1243 
1247  static
1248  int learningLanguage()
1249  {
1250  return self()->mLearningLanguage;
1251  }
1252 
1256  static
1257  void setKnownLanguage( int v )
1258  {
1259  if (!self()->isImmutable( QString::fromLatin1( "KnownLanguage" ) ))
1260  self()->mKnownLanguage = v;
1261  }
1262 
1266  static
1267  int knownLanguage()
1268  {
1269  return self()->mKnownLanguage;
1270  }
1271 
1275  static
1276  void setShowSolutionAfterAnswer( bool v )
1277  {
1278  if (!self()->isImmutable( QString::fromLatin1( "ShowSolutionAfterAnswer" ) ))
1279  self()->mShowSolutionAfterAnswer = v;
1280  }
1281 
1285  static
1286  bool showSolutionAfterAnswer()
1287  {
1288  return self()->mShowSolutionAfterAnswer;
1289  }
1290 
1294  static
1295  void setShowSolutionAfterAnswerTime( int v )
1296  {
1297  if (!self()->isImmutable( QString::fromLatin1( "ShowSolutionAfterAnswerTime" ) ))
1298  self()->mShowSolutionAfterAnswerTime = v;
1299  }
1300 
1304  static
1305  int showSolutionAfterAnswerTime()
1306  {
1307  return self()->mShowSolutionAfterAnswerTime;
1308  }
1309 
1313  static
1314  void setPracticeMode( EnumPracticeMode::type v )
1315  {
1316  if (!self()->isImmutable( QString::fromLatin1( "PracticeMode" ) ))
1317  self()->mPracticeMode = v;
1318  }
1319 
1323  static
1324  EnumPracticeMode::type practiceMode()
1325  {
1326  return static_cast<EnumPracticeMode::type>(self()->mPracticeMode);
1327  }
1328 
1332  static
1333  void setPracticeDirection( EnumPracticeDirection::type v )
1334  {
1335  if (!self()->isImmutable( QString::fromLatin1( "PracticeDirection" ) ))
1336  self()->mPracticeDirection = v;
1337  }
1338 
1342  static
1343  EnumPracticeDirection::type practiceDirection()
1344  {
1345  return static_cast<EnumPracticeDirection::type>(self()->mPracticeDirection);
1346  }
1347 
1351  static
1352  void setBlockItem( int i, int v )
1353  {
1354  if (!self()->isImmutable( QString::fromLatin1( "BlockItem%1" ).arg( i ) ))
1355  self()->mBlockItem[i] = v;
1356  }
1357 
1361  static
1362  int blockItem( int i )
1363  {
1364  return self()->mBlockItem[i];
1365  }
1366 
1370  static
1371  void setExpireItem( int i, int v )
1372  {
1373  if (!self()->isImmutable( QString::fromLatin1( "ExpireItem%1" ).arg( i ) ))
1374  self()->mExpireItem[i] = v;
1375  }
1376 
1380  static
1381  int expireItem( int i )
1382  {
1383  return self()->mExpireItem[i];
1384  }
1385 
1389  static
1390  void setProvidersUrl( const QString & v )
1391  {
1392  if (!self()->isImmutable( QString::fromLatin1( "ProvidersUrl" ) ))
1393  self()->mProvidersUrl = v;
1394  }
1395 
1399  static
1400  QString providersUrl()
1401  {
1402  return self()->mProvidersUrl;
1403  }
1404 
1408  static
1409  void setInstallationCommand( const QString & v )
1410  {
1411  if (!self()->isImmutable( QString::fromLatin1( "InstallationCommand" ) ))
1412  self()->mInstallationCommand = v;
1413  }
1414 
1418  static
1419  QString installationCommand()
1420  {
1421  return self()->mInstallationCommand;
1422  }
1423 
1427  static
1428  void setInstallPath( const QString & v )
1429  {
1430  if (!self()->isImmutable( QString::fromLatin1( "InstallPath" ) ))
1431  self()->mInstallPath = v;
1432  }
1433 
1437  static
1438  QString installPath()
1439  {
1440  return self()->mInstallPath;
1441  }
1442 
1443  protected:
1444  Prefs();
1445  friend class PrefsHelper;
1446 
1447 
1448  // General
1449  QString mTheme;
1450  int mNumPreSetting;
1451  bool mSmartAppend;
1452  QString mSeparator;
1453  int mEntriesPerLesson;
1454  bool mAutoOpenLast;
1455  bool mAutoSave;
1456  int mSeparatorCombo;
1457  bool mAutoBackup;
1458  int mBackupTime;
1459  bool mAutomaticTranslation;
1460 
1461  // PracticeOptions
1462  bool mFlashcardsFrontImage;
1463  bool mFlashcardsBackImage;
1464  bool mBlock;
1465  bool mExpire;
1466  bool mAltLearn;
1467  bool mTestOrderLesson;
1468  int mTestNumberOfEntries;
1469  bool mSwapDirection;
1470  bool mPracticeTimeout;
1471  int mPracticeTimeoutMode;
1472  int mPracticeTimeoutTimePerAnswer;
1473  bool mSuggestions;
1474  bool mShowHints;
1475  bool mIgnoreAccentMistakes;
1476  bool mIgnoreCapitalizationMistakes;
1477  bool mSplitTranslations;
1478  bool mPeriods;
1479  bool mColons;
1480  bool mSemicolons;
1481  bool mCommas;
1482  bool mShowMore;
1483  bool mSkipKnownEnabled;
1484  bool mCountSynonymsAsCorrect;
1485  bool mPracticeImagesEnabled;
1486  bool mPracticeSoundEnabled;
1487  bool mAllowImageInsteadOfWord;
1488  int mSessionMaxSize;
1489  int mSessionMaxNewWords;
1490  bool mMultipleChoiceWordTypeConsistancy;
1491  int mNumberMultipleChoiceAnswers;
1492 
1493  // Appearance
1494  bool mShowSearch;
1495  bool mShowSublessonentries;
1496  bool mTableLessonColumnVisible;
1497  bool mTableActiveColumnVisible;
1498  int mLessonEditingSelection;
1499  QList<int> mMainWindowSplitter;
1500  QFont mPracticeFont;
1501  QFont mIPAFont;
1502  int mCurrentCol;
1503  int mCurrentRow;
1504  QColor mGradeColor;
1505  QColor mPreGradeColor;
1506  QColor mInvalidUnitColor;
1507 
1508  // Thresholds
1509  int mPracticeMinimumTimesAsked;
1510  int mPracticeMaximumTimesAsked;
1511  int mPracticeMinimumWrongCount;
1512  int mPracticeMaximumWrongCount;
1513  int mPracticeMinimumGrade;
1514  int mPracticeMaximumGrade;
1515  bool mWordTypesInPracticeEnabled;
1516  QStringList mWordTypesInPractice;
1517  QStringList mSubWordTypesInPractice;
1518 
1519  // PracticeManager
1520  int mLearningLanguage;
1521  int mKnownLanguage;
1522  bool mShowSolutionAfterAnswer;
1523  int mShowSolutionAfterAnswerTime;
1524  int mPracticeMode;
1525  int mPracticeDirection;
1526  int mBlockItem[8];
1527  int mExpireItem[8];
1528 
1529  // KNewStuff
1530  QString mProvidersUrl;
1531  QString mInstallationCommand;
1532  QString mInstallPath;
1533 
1534  private:
1535 };
1536 
1537 #endif
1538 
Prefs::currentCol
static int currentCol()
Get Currently selected column.
Definition: prefs.h:982
Prefs::mSemicolons
bool mSemicolons
Definition: prefs.h:1480
Prefs::setExpireItem
static void setExpireItem(int i, int v)
Set Amount of time after which different confidence levels should expire.
Definition: prefs.h:1371
Prefs::mPracticeTimeout
bool mPracticeTimeout
Definition: prefs.h:1470
Prefs::wordTypesInPracticeEnabled
static bool wordTypesInPracticeEnabled()
Get Only selected word types will be included in practice.
Definition: prefs.h:1191
Prefs::invalidUnitColor
static QColor invalidUnitColor()
Get Color used to display the confidence levels.
Definition: prefs.h:1058
Prefs::setSmartAppend
static void setSmartAppend(bool v)
Set If true, when using the entry dialog, new rows will be appended as needed.
Definition: prefs.h:79
Prefs::setPracticeMaximumWrongCount
static void setPracticeMaximumWrongCount(int v)
Set The entry must have been answered incorrectly at most this often to be included in the practice...
Definition: prefs.h:1124
Prefs::showSolutionAfterAnswerTime
static int showSolutionAfterAnswerTime()
Get The time the solution is shown (seconds).
Definition: prefs.h:1305
Prefs::mSessionMaxSize
int mSessionMaxSize
Definition: prefs.h:1488
Prefs::mInstallationCommand
QString mInstallationCommand
Definition: prefs.h:1531
Prefs::altLearn
static bool altLearn()
Get Use the Leitner learning method.
Definition: prefs.h:336
Prefs::EnumPracticeMode::MultipleChoicePractice
Definition: prefs.h:26
Prefs::mShowMore
bool mShowMore
Definition: prefs.h:1482
Prefs::practiceTimeoutTimePerAnswer
static int practiceTimeoutTimePerAnswer()
Get Maximum time allowed to answer.
Definition: prefs.h:450
Prefs::colons
static bool colons()
Get Split translations at colons.
Definition: prefs.h:583
Prefs::setAutoSave
static void setAutoSave(bool v)
Set If true, vocabularies are automatically saved on close and exit.
Definition: prefs.h:155
Prefs::tableLessonColumnVisible
static bool tableLessonColumnVisible()
Get Show/hide the unit column.
Definition: prefs.h:868
Prefs::EnumPracticeMode::ComparisonPractice
Definition: prefs.h:26
Prefs::EnumPracticeMode::ConjugationPractice
Definition: prefs.h:26
Prefs::mMainWindowSplitter
QList< int > mMainWindowSplitter
Definition: prefs.h:1499
Prefs::mIgnoreAccentMistakes
bool mIgnoreAccentMistakes
Definition: prefs.h:1475
Prefs::mExpireItem
int mExpireItem[8]
Definition: prefs.h:1527
Prefs::setCurrentRow
static void setCurrentRow(int v)
Set Currently selected row.
Definition: prefs.h:991
Prefs::setSessionMaxNewWords
static void setSessionMaxNewWords(int v)
Set The maximum number of new (untrained) words that will be used in a training session.
Definition: prefs.h:763
Prefs::mBlock
bool mBlock
Definition: prefs.h:1464
Prefs::mAutomaticTranslation
bool mAutomaticTranslation
Definition: prefs.h:1459
Prefs::practiceMode
static EnumPracticeMode::type practiceMode()
Get The practice method that is currently selected.
Definition: prefs.h:1324
Prefs::EnumPracticeDirection::type
type
Definition: prefs.h:31
Prefs::autoSave
static bool autoSave()
Get If true, vocabularies are automatically saved on close and exit.
Definition: prefs.h:165
Prefs::setBlock
static void setBlock(bool v)
Set In Blocking Query Tab Dialog, if checked then the Query is blocked.
Definition: prefs.h:288
Prefs::setShowSolutionAfterAnswer
static void setShowSolutionAfterAnswer(bool v)
Set Show the solution after an answer was given.
Definition: prefs.h:1276
Prefs::practiceSoundEnabled
static bool practiceSoundEnabled()
Get Enable sound playback in the practice dialogs.
Definition: prefs.h:716
Prefs::setPeriods
static void setPeriods(bool v)
Set Split translations at periods.
Definition: prefs.h:554
Prefs::setPracticeFont
static void setPracticeFont(const QFont &v)
Set The font used in the vocabulary table.
Definition: prefs.h:934
Prefs::EnumLessonEditingSelection
Definition: prefs.h:18
Prefs::practiceMinimumGrade
static int practiceMinimumGrade()
Get The entry must have at least this confidence level to be included in the practice (0...
Definition: prefs.h:1153
Prefs::installationCommand
static QString installationCommand()
Get The command used to start a downloaded vocabulary.
Definition: prefs.h:1419
Prefs::setSeparator
static void setSeparator(const QString &v)
Set This sets the separator used when copying/pasting text, default is Tab.
Definition: prefs.h:98
Prefs::setPracticeImagesEnabled
static void setPracticeImagesEnabled(bool v)
Set Enable image display in the practice dialogs.
Definition: prefs.h:687
Prefs::flashcardsFrontImage
static bool flashcardsFrontImage()
Get Show images on the front of the flashcard.
Definition: prefs.h:260
Prefs::EnumLessonEditingSelection::CurrentLesson
Definition: prefs.h:21
Prefs::setEntriesPerLesson
static void setEntriesPerLesson(int v)
Set The number of entries per unit.
Definition: prefs.h:117
QFont
Prefs::setAutoOpenLast
static void setAutoOpenLast(bool v)
Set If true, on each application start the last opened file will be loaded.
Definition: prefs.h:136
Prefs::setKnownLanguage
static void setKnownLanguage(int v)
Set The language that you know already.
Definition: prefs.h:1257
Prefs::practiceMaximumTimesAsked
static int practiceMaximumTimesAsked()
Get The entry must have been asked at most this often to be included in the practice.
Definition: prefs.h:1096
Prefs::mSubWordTypesInPractice
QStringList mSubWordTypesInPractice
Definition: prefs.h:1517
Prefs::mMultipleChoiceWordTypeConsistancy
bool mMultipleChoiceWordTypeConsistancy
Definition: prefs.h:1490
Prefs::mIgnoreCapitalizationMistakes
bool mIgnoreCapitalizationMistakes
Definition: prefs.h:1476
Prefs::setSeparatorCombo
static void setSeparatorCombo(int v)
Set SeparatorCombo.
Definition: prefs.h:174
Prefs::setAutomaticTranslation
static void setAutomaticTranslation(bool v)
Set Enable automatic translation of the unit entries.
Definition: prefs.h:231
Prefs::setInstallationCommand
static void setInstallationCommand(const QString &v)
Set The command used to start a downloaded vocabulary.
Definition: prefs.h:1409
Prefs::EnumPracticeMode::type
type
Definition: prefs.h:26
Prefs::separatorCombo
static int separatorCombo()
Get SeparatorCombo.
Definition: prefs.h:184
Prefs
Definition: prefs.h:10
Prefs::mPracticeMaximumTimesAsked
int mPracticeMaximumTimesAsked
Definition: prefs.h:1510
Prefs::setPracticeTimeout
static void setPracticeTimeout(bool v)
Set Limit the time for the user to answer in a test.
Definition: prefs.h:402
Prefs::setTableLessonColumnVisible
static void setTableLessonColumnVisible(bool v)
Set Show/hide the unit column.
Definition: prefs.h:858
Prefs::mPeriods
bool mPeriods
Definition: prefs.h:1478
Prefs::setSkipKnownEnabled
static void setSkipKnownEnabled(bool v)
Set Enable Skip (I Know It) button in written practice.
Definition: prefs.h:649
Prefs::EnumPracticeMode::COUNT
Definition: prefs.h:26
Prefs::setPreGradeColor
static void setPreGradeColor(const QColor &v)
Set Color used to display the confidence levels.
Definition: prefs.h:1029
Prefs::expireItem
static int expireItem(int i)
Get Amount of time after which different confidence levels should expire.
Definition: prefs.h:1381
Prefs::mColons
bool mColons
Definition: prefs.h:1479
Prefs::numPreSetting
static int numPreSetting()
Get Number of stored setting profiles.
Definition: prefs.h:70
Prefs::mainWindowSplitter
static QList< int > mainWindowSplitter()
Get How the main window is divided.
Definition: prefs.h:925
KConfigSkeleton
Prefs::mPracticeTimeoutMode
int mPracticeTimeoutMode
Definition: prefs.h:1471
Prefs::setPracticeMode
static void setPracticeMode(EnumPracticeMode::type v)
Set The practice method that is currently selected.
Definition: prefs.h:1314
Prefs::numberMultipleChoiceAnswers
static int numberMultipleChoiceAnswers()
Get How many answers are provided for a multiple choice question, including the correct answer...
Definition: prefs.h:811
Prefs::mPracticeTimeoutTimePerAnswer
int mPracticeTimeoutTimePerAnswer
Definition: prefs.h:1472
Prefs::mTheme
QString mTheme
Definition: prefs.h:1449
Prefs::setProvidersUrl
static void setProvidersUrl(const QString &v)
Set The Providers path for Parley.
Definition: prefs.h:1390
Prefs::theme
static QString theme()
Get Theme to use for practice and welcome screen.
Definition: prefs.h:51
Prefs::practiceImagesEnabled
static bool practiceImagesEnabled()
Get Enable image display in the practice dialogs.
Definition: prefs.h:697
Prefs::mLessonEditingSelection
int mLessonEditingSelection
Definition: prefs.h:1498
Prefs::EnumPracticeMode
Definition: prefs.h:23
Prefs::mEntriesPerLesson
int mEntriesPerLesson
Definition: prefs.h:1453
Prefs::setIPAFont
static void setIPAFont(const QFont &v)
Set The font used for phonetics.
Definition: prefs.h:953
Prefs::commas
static bool commas()
Get Split translations at commas.
Definition: prefs.h:621
Prefs::mPracticeImagesEnabled
bool mPracticeImagesEnabled
Definition: prefs.h:1485
Prefs::mNumPreSetting
int mNumPreSetting
Definition: prefs.h:1450
Prefs::mTestNumberOfEntries
int mTestNumberOfEntries
Definition: prefs.h:1468
Prefs::testNumberOfEntries
static int testNumberOfEntries()
Get The number of entries that are practiced at the same time.
Definition: prefs.h:374
Prefs::mWordTypesInPracticeEnabled
bool mWordTypesInPracticeEnabled
Definition: prefs.h:1515
Prefs::mSuggestions
bool mSuggestions
Definition: prefs.h:1473
Prefs::EnumPracticeDirection::MixedDirectionsWithSound
Definition: prefs.h:31
Prefs::setInvalidUnitColor
static void setInvalidUnitColor(const QColor &v)
Set Color used to display the confidence levels.
Definition: prefs.h:1048
Prefs::subWordTypesInPractice
static QStringList subWordTypesInPractice()
Get Selected sub word types for practices.
Definition: prefs.h:1229
Prefs::semicolons
static bool semicolons()
Get Split translations at semicolons.
Definition: prefs.h:602
Prefs::currentRow
static int currentRow()
Get Currently selected row.
Definition: prefs.h:1001
Prefs::mBlockItem
int mBlockItem[8]
Definition: prefs.h:1526
Prefs::setNumPreSetting
static void setNumPreSetting(int v)
Set Number of stored setting profiles.
Definition: prefs.h:60
Prefs::periods
static bool periods()
Get Split translations at periods.
Definition: prefs.h:564
Prefs::setNumberMultipleChoiceAnswers
static void setNumberMultipleChoiceAnswers(int v)
Set How many answers are provided for a multiple choice question, including the correct answer...
Definition: prefs.h:801
Prefs::setSubWordTypesInPractice
static void setSubWordTypesInPractice(const QStringList &v)
Set Selected sub word types for practices.
Definition: prefs.h:1219
Prefs::blockItem
static int blockItem(int i)
Get Amount of time different confidence levels should be blocked.
Definition: prefs.h:1362
Prefs::EnumLessonEditingSelection::LessonsInQuery
Definition: prefs.h:21
Prefs::showSearch
static bool showSearch()
Get Toggle display of the search bar.
Definition: prefs.h:830
Prefs::practiceTimeoutMode
static EnumPracticeTimeoutMode::type practiceTimeoutMode()
Get Show - show the solution after the given time; Continue - go to the next question after the given...
Definition: prefs.h:431
Prefs::mGradeColor
QColor mGradeColor
Definition: prefs.h:1504
Prefs::setBlockItem
static void setBlockItem(int i, int v)
Set Amount of time different confidence levels should be blocked.
Definition: prefs.h:1352
Prefs::autoOpenLast
static bool autoOpenLast()
Get If true, on each application start the last opened file will be loaded.
Definition: prefs.h:146
Prefs::setIgnoreCapitalizationMistakes
static void setIgnoreCapitalizationMistakes(bool v)
Set Count answers as right when only the capitalization is wrong.
Definition: prefs.h:516
Prefs::EnumLessonEditingSelection::COUNT
Definition: prefs.h:21
Prefs::mWordTypesInPractice
QStringList mWordTypesInPractice
Definition: prefs.h:1516
Prefs::suggestions
static bool suggestions()
Get Enable suggestion lists in written practice.
Definition: prefs.h:469
Prefs::practiceMinimumTimesAsked
static int practiceMinimumTimesAsked()
Get The entry must have been asked at least this often to be included in the practice.
Definition: prefs.h:1077
Prefs::mAutoBackup
bool mAutoBackup
Definition: prefs.h:1457
Prefs::mPracticeMinimumWrongCount
int mPracticeMinimumWrongCount
Definition: prefs.h:1511
Prefs::mSessionMaxNewWords
int mSessionMaxNewWords
Definition: prefs.h:1489
Prefs::setMainWindowSplitter
static void setMainWindowSplitter(const QList< int > &v)
Set How the main window is divided.
Definition: prefs.h:915
Prefs::mShowSolutionAfterAnswerTime
int mShowSolutionAfterAnswerTime
Definition: prefs.h:1523
Prefs::setSwapDirection
static void setSwapDirection(bool v)
Set Swap direction randomly.
Definition: prefs.h:383
Prefs::setPracticeMinimumGrade
static void setPracticeMinimumGrade(int v)
Set The entry must have at least this confidence level to be included in the practice (0...
Definition: prefs.h:1143
Prefs::setSplitTranslations
static void setSplitTranslations(bool v)
Set Split translations in written practice.
Definition: prefs.h:535
Prefs::EnumPracticeMode::GenderPractice
Definition: prefs.h:26
Prefs::mBackupTime
int mBackupTime
Definition: prefs.h:1458
Prefs::setMultipleChoiceWordTypeConsistancy
static void setMultipleChoiceWordTypeConsistancy(bool v)
Set Use the same word type as the solution for the incorrect answers in a multiple choice practice...
Definition: prefs.h:782
Prefs::mShowSolutionAfterAnswer
bool mShowSolutionAfterAnswer
Definition: prefs.h:1522
Prefs::mTableLessonColumnVisible
bool mTableLessonColumnVisible
Definition: prefs.h:1496
Prefs::multipleChoiceWordTypeConsistancy
static bool multipleChoiceWordTypeConsistancy()
Get Use the same word type as the solution for the incorrect answers in a multiple choice practice...
Definition: prefs.h:792
Prefs::mCountSynonymsAsCorrect
bool mCountSynonymsAsCorrect
Definition: prefs.h:1484
Prefs::expire
static bool expire()
Get In Blocking Query Tab Dialog, if checked then the Query accepts an expiring time.
Definition: prefs.h:317
Prefs::iPAFont
static QFont iPAFont()
Get The font used for phonetics.
Definition: prefs.h:963
Prefs::practiceMinimumWrongCount
static int practiceMinimumWrongCount()
Get The entry must have been answered incorrectly at least this often to be included in the practice...
Definition: prefs.h:1115
Prefs::mCommas
bool mCommas
Definition: prefs.h:1481
Prefs::mPracticeMaximumWrongCount
int mPracticeMaximumWrongCount
Definition: prefs.h:1512
Prefs::practiceMaximumWrongCount
static int practiceMaximumWrongCount()
Get The entry must have been answered incorrectly at most this often to be included in the practice...
Definition: prefs.h:1134
Prefs::EnumPracticeTimeoutMode::Show
Definition: prefs.h:16
Prefs::PrefsHelper
friend class PrefsHelper
Definition: prefs.h:1445
Prefs::setLearningLanguage
static void setLearningLanguage(int v)
Set The language that you are learning.
Definition: prefs.h:1238
Prefs::setPracticeMinimumTimesAsked
static void setPracticeMinimumTimesAsked(int v)
Set The entry must have been asked at least this often to be included in the practice.
Definition: prefs.h:1067
Prefs::mKnownLanguage
int mKnownLanguage
Definition: prefs.h:1521
Prefs::EnumLessonEditingSelection::type
type
Definition: prefs.h:21
Prefs::preGradeColor
static QColor preGradeColor()
Get Color used to display the confidence levels.
Definition: prefs.h:1039
Prefs::mSmartAppend
bool mSmartAppend
Definition: prefs.h:1451
Prefs::mTestOrderLesson
bool mTestOrderLesson
Definition: prefs.h:1467
Prefs::setGradeColor
static void setGradeColor(const QColor &v)
Set Color used to display the confidence levels.
Definition: prefs.h:1010
Prefs::practiceDirection
static EnumPracticeDirection::type practiceDirection()
Get The practice mode that is currently selected.
Definition: prefs.h:1343
Prefs::mAutoSave
bool mAutoSave
Definition: prefs.h:1455
Prefs::mShowSublessonentries
bool mShowSublessonentries
Definition: prefs.h:1495
Prefs::setWordTypesInPractice
static void setWordTypesInPractice(const QStringList &v)
Set Selected word types for practices.
Definition: prefs.h:1200
Prefs::setShowSearch
static void setShowSearch(bool v)
Set Toggle display of the search bar.
Definition: prefs.h:820
Prefs::EnumPracticeTimeoutMode::Continue
Definition: prefs.h:16
Prefs::EnumPracticeDirection
Definition: prefs.h:28
Prefs::block
static bool block()
Get In Blocking Query Tab Dialog, if checked then the Query is blocked.
Definition: prefs.h:298
Prefs::testOrderLesson
static bool testOrderLesson()
Get Append new vocabulary in a collection in order of their units.
Definition: prefs.h:355
QString
QList< int >
Prefs::practiceMaximumGrade
static int practiceMaximumGrade()
Get The entry must have at most this confidence level to be included in the practice (0...
Definition: prefs.h:1172
QColor
Prefs::setSessionMaxSize
static void setSessionMaxSize(int v)
Set The maximum number of words that will be practiced in a training session.
Definition: prefs.h:744
Prefs::smartAppend
static bool smartAppend()
Get If true, when using the entry dialog, new rows will be appended as needed.
Definition: prefs.h:89
Prefs::setAutoBackup
static void setAutoBackup(bool v)
Set If true, a backup is saved every BackupTime minutes.
Definition: prefs.h:193
Prefs::swapDirection
static bool swapDirection()
Get Swap direction randomly.
Definition: prefs.h:393
QStringList
Prefs::mCurrentCol
int mCurrentCol
Definition: prefs.h:1502
Prefs::mTableActiveColumnVisible
bool mTableActiveColumnVisible
Definition: prefs.h:1497
Prefs::setCurrentCol
static void setCurrentCol(int v)
Set Currently selected column.
Definition: prefs.h:972
Prefs::setPracticeSoundEnabled
static void setPracticeSoundEnabled(bool v)
Set Enable sound playback in the practice dialogs.
Definition: prefs.h:706
Prefs::mPracticeDirection
int mPracticeDirection
Definition: prefs.h:1525
Prefs::setLessonEditingSelection
static void setLessonEditingSelection(EnumLessonEditingSelection::type v)
Set Select which units are displayed for editing.
Definition: prefs.h:896
Prefs::lessonEditingSelection
static EnumLessonEditingSelection::type lessonEditingSelection()
Get Select which units are displayed for editing.
Definition: prefs.h:906
Prefs::splitTranslations
static bool splitTranslations()
Get Split translations in written practice.
Definition: prefs.h:545
Prefs::setShowMore
static void setShowMore(bool v)
Set Enable Show More button to reveal parts of the solution in written practice.
Definition: prefs.h:630
Prefs::setTestNumberOfEntries
static void setTestNumberOfEntries(int v)
Set The number of entries that are practiced at the same time.
Definition: prefs.h:364
Prefs::EnumPracticeTimeoutMode::type
type
Definition: prefs.h:16
Prefs::tableActiveColumnVisible
static bool tableActiveColumnVisible()
Get Show/hide the active column.
Definition: prefs.h:887
Prefs::mPracticeMinimumTimesAsked
int mPracticeMinimumTimesAsked
Definition: prefs.h:1509
Prefs::entriesPerLesson
static int entriesPerLesson()
Get The number of entries per unit.
Definition: prefs.h:127
Prefs::Prefs
Prefs()
Definition: prefs.cpp:27
Prefs::mSeparator
QString mSeparator
Definition: prefs.h:1452
Prefs::mNumberMultipleChoiceAnswers
int mNumberMultipleChoiceAnswers
Definition: prefs.h:1491
Prefs::mCurrentRow
int mCurrentRow
Definition: prefs.h:1503
Prefs::mFlashcardsFrontImage
bool mFlashcardsFrontImage
Definition: prefs.h:1462
Prefs::practiceFont
static QFont practiceFont()
Get The font used in the vocabulary table.
Definition: prefs.h:944
Prefs::showSublessonentries
static bool showSublessonentries()
Get When enabled a unit also shows entries from its subunits.
Definition: prefs.h:849
Prefs::mPreGradeColor
QColor mPreGradeColor
Definition: prefs.h:1505
Prefs::mAllowImageInsteadOfWord
bool mAllowImageInsteadOfWord
Definition: prefs.h:1487
Prefs::EnumPracticeTimeoutMode
Definition: prefs.h:13
Prefs::setTheme
static void setTheme(const QString &v)
Set Theme to use for practice and welcome screen.
Definition: prefs.h:41
Prefs::mShowHints
bool mShowHints
Definition: prefs.h:1474
Prefs::mSeparatorCombo
int mSeparatorCombo
Definition: prefs.h:1456
Prefs::mShowSearch
bool mShowSearch
Definition: prefs.h:1494
Prefs::backupTime
static int backupTime()
Get Time interval between two automatic backups.
Definition: prefs.h:222
Prefs::setFlashcardsBackImage
static void setFlashcardsBackImage(bool v)
Set Show images on the back of the flashcard.
Definition: prefs.h:269
Prefs::mPracticeMaximumGrade
int mPracticeMaximumGrade
Definition: prefs.h:1514
Prefs::setPracticeMaximumTimesAsked
static void setPracticeMaximumTimesAsked(int v)
Set The entry must have been asked at most this often to be included in the practice.
Definition: prefs.h:1086
Prefs::sessionMaxNewWords
static int sessionMaxNewWords()
Get The maximum number of new (untrained) words that will be used in a training session.
Definition: prefs.h:773
Prefs::setAllowImageInsteadOfWord
static void setAllowImageInsteadOfWord(bool v)
Set Allow using images instead of words in flashcards.
Definition: prefs.h:725
Prefs::countSynonymsAsCorrect
static bool countSynonymsAsCorrect()
Get When the synonym instead of the word was entered, does it count as correct?
Definition: prefs.h:678
Prefs::setSuggestions
static void setSuggestions(bool v)
Set Enable suggestion lists in written practice.
Definition: prefs.h:459
Prefs::knownLanguage
static int knownLanguage()
Get The language that you know already.
Definition: prefs.h:1267
Prefs::EnumPracticeDirection::LearningToKnown
Definition: prefs.h:31
Prefs::setTestOrderLesson
static void setTestOrderLesson(bool v)
Set Append new vocabulary in a collection in order of their units.
Definition: prefs.h:345
Prefs::ignoreAccentMistakes
static bool ignoreAccentMistakes()
Get Count answers as right when only the accentuation is wrong.
Definition: prefs.h:507
Prefs::~Prefs
~Prefs()
Definition: prefs.cpp:399
Prefs::mIPAFont
QFont mIPAFont
Definition: prefs.h:1501
Prefs::setPracticeDirection
static void setPracticeDirection(EnumPracticeDirection::type v)
Set The practice mode that is currently selected.
Definition: prefs.h:1333
Prefs::setPracticeTimeoutMode
static void setPracticeTimeoutMode(EnumPracticeTimeoutMode::type v)
Set Show - show the solution after the given time; Continue - go to the next question after the given...
Definition: prefs.h:421
Prefs::automaticTranslation
static bool automaticTranslation()
Get Enable automatic translation of the unit entries.
Definition: prefs.h:241
Prefs::setSemicolons
static void setSemicolons(bool v)
Set Split translations at semicolons.
Definition: prefs.h:592
Prefs::setCommas
static void setCommas(bool v)
Set Split translations at commas.
Definition: prefs.h:611
Prefs::autoBackup
static bool autoBackup()
Get If true, a backup is saved every BackupTime minutes.
Definition: prefs.h:203
Prefs::mPracticeMode
int mPracticeMode
Definition: prefs.h:1524
Prefs::EnumPracticeMode::ExampleSentencesPractice
Definition: prefs.h:26
Prefs::gradeColor
static QColor gradeColor()
Get Color used to display the confidence levels.
Definition: prefs.h:1020
Prefs::setPracticeMinimumWrongCount
static void setPracticeMinimumWrongCount(int v)
Set The entry must have been answered incorrectly at least this often to be included in the practice...
Definition: prefs.h:1105
Prefs::practiceTimeout
static bool practiceTimeout()
Get Limit the time for the user to answer in a test.
Definition: prefs.h:412
Prefs::EnumPracticeTimeoutMode::COUNT
Definition: prefs.h:16
Prefs::setPracticeMaximumGrade
static void setPracticeMaximumGrade(int v)
Set The entry must have at most this confidence level to be included in the practice (0...
Definition: prefs.h:1162
Prefs::allowImageInsteadOfWord
static bool allowImageInsteadOfWord()
Get Allow using images instead of words in flashcards.
Definition: prefs.h:735
Prefs::providersUrl
static QString providersUrl()
Get The Providers path for Parley.
Definition: prefs.h:1400
Prefs::setAltLearn
static void setAltLearn(bool v)
Set Use the Leitner learning method.
Definition: prefs.h:326
Prefs::EnumPracticeDirection::COUNT
Definition: prefs.h:31
Prefs::showSolutionAfterAnswer
static bool showSolutionAfterAnswer()
Get Show the solution after an answer was given.
Definition: prefs.h:1286
QString::fromLatin1
QString fromLatin1(const char *str, int size)
Prefs::mAutoOpenLast
bool mAutoOpenLast
Definition: prefs.h:1454
Prefs::setBackupTime
static void setBackupTime(int v)
Set Time interval between two automatic backups.
Definition: prefs.h:212
Prefs::setPracticeTimeoutTimePerAnswer
static void setPracticeTimeoutTimePerAnswer(int v)
Set Maximum time allowed to answer.
Definition: prefs.h:440
Prefs::EnumPracticeMode::MixedLettersPractice
Definition: prefs.h:26
Prefs::sessionMaxSize
static int sessionMaxSize()
Get The maximum number of words that will be practiced in a training session.
Definition: prefs.h:754
Prefs::mExpire
bool mExpire
Definition: prefs.h:1465
Prefs::mSkipKnownEnabled
bool mSkipKnownEnabled
Definition: prefs.h:1483
Prefs::mProvidersUrl
QString mProvidersUrl
Definition: prefs.h:1530
Prefs::skipKnownEnabled
static bool skipKnownEnabled()
Get Enable Skip (I Know It) button in written practice.
Definition: prefs.h:659
Prefs::learningLanguage
static int learningLanguage()
Get The language that you are learning.
Definition: prefs.h:1248
Prefs::showHints
static bool showHints()
Get Enable the showing of hints.
Definition: prefs.h:488
Prefs::mLearningLanguage
int mLearningLanguage
Definition: prefs.h:1520
Prefs::setTableActiveColumnVisible
static void setTableActiveColumnVisible(bool v)
Set Show/hide the active column.
Definition: prefs.h:877
Prefs::wordTypesInPractice
static QStringList wordTypesInPractice()
Get Selected word types for practices.
Definition: prefs.h:1210
Prefs::ignoreCapitalizationMistakes
static bool ignoreCapitalizationMistakes()
Get Count answers as right when only the capitalization is wrong.
Definition: prefs.h:526
Prefs::setWordTypesInPracticeEnabled
static void setWordTypesInPracticeEnabled(bool v)
Set Only selected word types will be included in practice.
Definition: prefs.h:1181
Prefs::setExpire
static void setExpire(bool v)
Set In Blocking Query Tab Dialog, if checked then the Query accepts an expiring time.
Definition: prefs.h:307
Prefs::EnumLessonEditingSelection::AllLessons
Definition: prefs.h:21
Prefs::setColons
static void setColons(bool v)
Set Split translations at colons.
Definition: prefs.h:573
Prefs::setInstallPath
static void setInstallPath(const QString &v)
Set The folder where downloaded vocabularies are saved by default.
Definition: prefs.h:1428
Prefs::mPracticeSoundEnabled
bool mPracticeSoundEnabled
Definition: prefs.h:1486
Prefs::showMore
static bool showMore()
Get Enable Show More button to reveal parts of the solution in written practice.
Definition: prefs.h:640
Prefs::EnumPracticeDirection::KnownToLearning
Definition: prefs.h:31
Prefs::mPracticeFont
QFont mPracticeFont
Definition: prefs.h:1500
Prefs::mInstallPath
QString mInstallPath
Definition: prefs.h:1532
Prefs::mPracticeMinimumGrade
int mPracticeMinimumGrade
Definition: prefs.h:1513
Prefs::setShowSolutionAfterAnswerTime
static void setShowSolutionAfterAnswerTime(int v)
Set The time the solution is shown (seconds).
Definition: prefs.h:1295
Prefs::setShowHints
static void setShowHints(bool v)
Set Enable the showing of hints.
Definition: prefs.h:478
Prefs::setCountSynonymsAsCorrect
static void setCountSynonymsAsCorrect(bool v)
Set When the synonym instead of the word was entered, does it count as correct?
Definition: prefs.h:668
Prefs::EnumPracticeMode::FlashCardsPractice
Definition: prefs.h:26
Prefs::flashcardsBackImage
static bool flashcardsBackImage()
Get Show images on the back of the flashcard.
Definition: prefs.h:279
Prefs::mAltLearn
bool mAltLearn
Definition: prefs.h:1466
Prefs::EnumLessonEditingSelection::UserFiltered
Definition: prefs.h:21
Prefs::mInvalidUnitColor
QColor mInvalidUnitColor
Definition: prefs.h:1506
Prefs::mSplitTranslations
bool mSplitTranslations
Definition: prefs.h:1477
Prefs::installPath
static QString installPath()
Get The folder where downloaded vocabularies are saved by default.
Definition: prefs.h:1438
Prefs::mSwapDirection
bool mSwapDirection
Definition: prefs.h:1469
Prefs::EnumPracticeDirection::MixedDirectionsWordsOnly
Definition: prefs.h:31
Prefs::setIgnoreAccentMistakes
static void setIgnoreAccentMistakes(bool v)
Set Count answers as right when only the accentuation is wrong.
Definition: prefs.h:497
Prefs::setShowSublessonentries
static void setShowSublessonentries(bool v)
Set When enabled a unit also shows entries from its subunits.
Definition: prefs.h:839
Prefs::separator
static QString separator()
Get This sets the separator used when copying/pasting text, default is Tab.
Definition: prefs.h:108
Prefs::EnumPracticeMode::WrittenPractice
Definition: prefs.h:26
Prefs::setFlashcardsFrontImage
static void setFlashcardsFrontImage(bool v)
Set Show images on the front of the flashcard.
Definition: prefs.h:250
Prefs::mFlashcardsBackImage
bool mFlashcardsBackImage
Definition: prefs.h:1463
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

KDE's Doxygen guidelines are available online.

parley

Skip menu "parley"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal