-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathSettings.h
135 lines (107 loc) · 3.44 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
#ifndef I_SETTINGS__
#define I_SETTINGS__
class COnStationDoc;
class CBookMark;
class COnStationView;
class CFileHelper;
class CSettings
{
public:
CSettings();
~CSettings();
CString m_szColorSchemeNames[TOTAL_COLOR_SCHEMES];
//Hide and disable mean the same thing. Don't show surface
COLORREF m_cSurfaceColors[TOTAL_COLOR_SCHEMES];
BOOL m_bSurfaceSurveys[TOTAL_COLOR_SCHEMES];
BOOL m_bShowClosureErrors[TOTAL_COLOR_SCHEMES];
BOOL m_bShowClosedLoops[TOTAL_COLOR_SCHEMES];
BOOL m_bBoxFixedPoints[TOTAL_COLOR_SCHEMES];
BOOL m_bShowReferenceGrid[TOTAL_COLOR_SCHEMES];
STATIONSHOW m_ShowStationNames[TOTAL_COLOR_SCHEMES];
BOOL m_bPerspective[TOTAL_COLOR_SCHEMES];
VIEWTYPE m_ViewTypes[TOTAL_COLOR_SCHEMES];
//Passage walls stuff
PASSAGE_TYPE m_PassageType[TOTAL_COLOR_SCHEMES];
BOOL m_bOpaquePassages[TOTAL_COLOR_SCHEMES];
BOOL m_bDepthFogging[TOTAL_COLOR_SCHEMES];
BOOL m_bMultipleLights[TOTAL_COLOR_SCHEMES];
BOOL m_bRotateNoLighting[TOTAL_COLOR_SCHEMES];
BOOL m_bRotateNoSolids[TOTAL_COLOR_SCHEMES];
void ResetContents(); //called on a new document
COLORREF GetBlunderColor(int iDeviation);
//Age color stuff
DWORD m_dwAgeDates[MAX_AGE_COLORS];
COLORREF m_crAgeColors[MAX_AGE_COLORS];
int m_iNumAgeColors;
COLORREF GetColorByAge(DWORD dwAge);
void SetAgeColors(DWORD dwAgeStart,UINT iNumAgeColors,UINT m_iNumYears);
void SetDefaultAgeColors();
COLORREF m_crDepthColors[MAX_DEPTH_COLORS];
int m_iNumDepthColors;
float m_fDepthIncrements;
float m_fStartDepth;
COLORREF GetDepthColor(int iDepthInterval);
COLORREF GetDepthColor(float fDepth);
//Bookmark related stuff.
//This is an ordered list of the book marks from most recently
//used to least recently used.
CObList m_BookMarkList;
CBookMark * GetBookMark(int iIndex);
void RemoveBookMark(int iIndex);
int GetNumberOfBookMarks() const;
void AddBookMark(CBookMark *);
//Default settings arrange for 5 elements, 100 meters apart starting at a depth of 0. We save the
//depth settings with the document, so if this is overridden we are laughing.
void SetDocumentDepthGrid(COnStationDoc *document=NULL,COnStationView *View=NULL,int iColors=5);
void Write(CFileHelper *h);
void Read(CFileHelper *h);
//Query results stuff
COLORREF m_crQueryColor;
BOOL m_bQueryFrom;
BOOL m_bQueryTo;
BOOL m_bQueryBox;
//Search surveys results stuff
CString m_szSurveyNameSearch;
CString m_szSurveyStationsSearch;
CString m_szSurveyPersonnelSearch;
CString m_szSurveyDescriptionSearch;
BOOL m_bOrSearch;
//This is the color scheme associated with this view. It is
//changeable.
int m_iColorSchemeIndex;
void ReadFromIniFile();
void WriteToIniFile();
};
class CFileHelper;
class COnStationView;
class CAppSettings
{
public:
CAppSettings();
~CAppSettings();
CString m_szFontName;
int m_iFontSize;
int m_iFontWeight;
BOOL m_bStatusBar;
BOOL m_bToolBar;
BOOL m_bRuler;
BOOL m_bBottomTabs;
BOOL m_bCompass;
PREFEREDUNITS m_PreferedUnits;
BOOL IsMetric() const;
//retain position between instances
// WINDOWPLACEMENT m_wndPlacement;
//Printing
BOOL m_bPrintShowScale;
BOOL m_bShowSideScale;
BOOL m_bPrintShowNorth;
BOOL m_bPrintThickLines;
int m_iPrintOverlap; //how much to overlap by (mm)
BOOL m_bPrintTitlePage;
BOOL m_bPrintPeopleByYear;
void WriteToIniFile();
void ReadFromIniFile();
CFont * GetFont();
CFont * GetPrinterFont();
};
#endif