-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.h
59 lines (48 loc) · 1.29 KB
/
settings.h
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#ifndef SETTINGS_H
#define SETTINGS_H
#include <QSize>
#include <QString>
enum class Orientation
{
vertical,
horizontal
};
// максимальные значения в окне графика
struct MaxValues
{
double minY{-10};
double maxY {10};
double minX{-10};
double maxX{10};
};
// main
const QSize sizeMainWindow(1200, 700);
const int widthFullHD = 1080;
const int spacingMainWindow = 5;
const int marginsMainWindow = 10;
const int widthLinesEdit = 250;
const int lengthScaleArea = 80;
// AxeCoordinate
const double widthPenAxe = 1;
const double widthPenGrid = 0.5;
// ScaleAxeWidget
const int heightFontMarks = 10;
const QString familyFont = "Consolas";
const double widthPenBorderScaleWidget = 1;
const int lengthRisks = 7;
const int defaultInterval = 50;
const int intervalForAppearNotch = 80;
const int intervalForDisappearNotch = 40;
const int maxIntervalNotch = 300;
const double valueChangeScale = 1;
const double maxScaleCoordinate = 10000;
const double minCoordinate = 0.01;
// Graphs
const double widthPenBorderGraphWidget = 1.5;
// GraphicFunction
const int numberOfPointsDefault = 300;
const double widthPenGraphic = 2.5;
const double infinity = std::numeric_limits<int>::max();
const int defaultScaleGraphic = 10;
const double stepDefault = 1;
#endif // SETTINGS_H