From d24f813f3f2a05c112e803e4256b53535895fc98 Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Wed, 14 Jul 2021 11:49:10 +1200 Subject: Initial mirror commit --- src/study/StudySettings.h | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 src/study/StudySettings.h (limited to 'src/study/StudySettings.h') diff --git a/src/study/StudySettings.h b/src/study/StudySettings.h new file mode 100644 index 0000000..d65e8a7 --- /dev/null +++ b/src/study/StudySettings.h @@ -0,0 +1,40 @@ +#ifndef STUDYSETTINGS_H +#define STUDYSETTINGS_H + +#include + +class StudySettings +{ +public: + static StudySettings* inst(); + +public: + StudySettings(); + void save(); + void load(); + +private: + void loadUserSettings(); + void initDefaultStudy(); + void loadStudy(const QSettings& settings); + +public: + bool showRandomly; + double newCardsShare; + double schedRandomness; + int cardsDayLimit; + int newCardsDayLimit; + int limitForAddingNewCards; + int dayShift; // in hours + double initEasiness; + double minEasiness; + double maxEasiness; + double difficultDelta; + double easyDelta; + double unknownInterval; + double incorrectInterval; + double learningInterval; // Long learning level + double nextDayInterval; // first repetition + double twoDaysInterval; // easy first repetition +}; +#endif -- cgit