summaryrefslogtreecommitdiff
path: root/src/study/StudySettings.h
blob: d65e8a712fea189e9eb56bbafc15d9dbc7ba2a67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef STUDYSETTINGS_H
#define STUDYSETTINGS_H

#include <QSettings>

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