-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathRegistry.h
More file actions
117 lines (104 loc) · 2.16 KB
/
Copy pathRegistry.h
File metadata and controls
117 lines (104 loc) · 2.16 KB
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
// Registry.h: interface for the Registry class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_REGISTRY_H__F6128891_1475_43EC_A2FE_C768ABC5C820__INCLUDED_)
#define AFX_REGISTRY_H__F6128891_1475_43EC_A2FE_C768ABC5C820__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class Registry
{
public:
enum RegistryKey
{
// Int
BackgroundColor,
BlackALVColor,
BlackCMOColor,
BlackNumberColor,
BlackStoneColor,
BlackVariantColor,
BlackVcfColor,
BlackVctColor,
BoardColor,
BoardSize,
BoardTextColor,
CommentBkColor,
CommentTextColor,
Coordinates,
CoordTextColor,
CustColors_0,
CustColors_1,
CustColors_2,
CustColors_3,
CustColors_4,
CustColors_5,
CustColors_6,
CustColors_7,
CustColors_8,
CustColors_9,
CustColors_10,
CustColors_11,
CustColors_12,
CustColors_13,
CustColors_14,
CustColors_15,
Evaluator,
ForbiddenColor,
LastMoveColor,
WinMarker,
WhiteALVColor,
WhiteCMOColor,
WhiteNumberColor,
WhiteStoneColor,
WhiteVariantColor,
WhiteVcfColor,
WhiteVctColor,
RegisteredVersion,
NewsDate,
// Bool
AutoFindSamePosition,
AutoPointMouse,
BoardTextExtraSpace,
CoordinatesFollow,
IsZoomed,
ShowAutoLinkVariants,
ShowBoardBitmap,
ShowBoardText,
ShowChangedOrderOfMovesVariants,
ShowComments,
ShowForbidden,
ShowLastMove,
ShowNumbers,
ShowStoneBitmap,
ShowVariants,
SwapRowNumber,
// String
BoardBitmap,
FontSmall,
FontMedium,
FontLarge,
FontBoardTextSmall,
FontBoardTextMedium,
FontBoardTextLarge,
FontCommentSmall,
FontCommentMedium,
FontCommentLarge,
StartPage
};
public:
Registry();
~Registry();
UINT getInt(RegistryKey key, int nDefault);
void setInt(RegistryKey key, int nValue);
bool getBool(RegistryKey key, int bDefault);
void setBool(RegistryKey key, int bValue);
CString getString(RegistryKey key, const CString& strDefault);
void setString(RegistryKey key, const CString& strValue);
private:
CString getSection(RegistryKey key);
CString getEntry(RegistryKey key);
private:
CWinApp* mApp;
};
#endif // !defined(AFX_REGISTRY_H__F6128891_1475_43EC_A2FE_C768ABC5C820__INCLUDED_)