-
Notifications
You must be signed in to change notification settings - Fork 0
/
ColorHCFRConfig.h
182 lines (158 loc) · 5.63 KB
/
ColorHCFRConfig.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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
/////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2005-2011 Association Homecinema Francophone. All rights reserved.
/////////////////////////////////////////////////////////////////////////////
//
// This file is subject to the terms of the GNU General Public License as
// published by the Free Software Foundation. A copy of this license is
// included with this software distribution in the file COPYING.htm. If you
// do not have a copy, you may obtain a copy by writing to the Free
// Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
//
// This software is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details
/////////////////////////////////////////////////////////////////////////////
// Author(s):
// François-Xavier CHABOUD
// Georges GALLERAND
/////////////////////////////////////////////////////////////////////////////
// ColorHCFRConfig.h: interface for the CColorHCFRConfig class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_COLORHCFRCONFIG_H__669E7D2E_9632_4BCC_8C99_41DA182515F1__INCLUDED_)
#define AFX_COLORHCFRCONFIG_H__669E7D2E_9632_4BCC_8C99_41DA182515F1__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "color.h"
#include "fxcolor.h"
#include "ModelessPropertySheet.h"
#include "GeneralPropPage.h"
#include "ReferencesPropPage.h"
#include "AppearancePropPage.h"
#include "AdvancedPropPage.h"
#include "ToolbarPropPage.h"
class CColorHCFRConfig
{
public:
// Exe Path, with an ending backslash
char m_ApplicationPath [MAX_PATH];
// Global ini file name
char m_iniFileName [MAX_PATH];
// Global help file name
char m_chmFileName [MAX_PATH];
// decoder.log file name
char m_logFileName [MAX_PATH];
// decoder.log access need a critical section during simultaneous measures
CRITICAL_SECTION LogFileCritSec;
// Color settings
ColorStandard m_colorStandard;
CCPatterns m_CCMode;
WhiteTarget m_whiteTarget;
BOOL m_bDisplayTestColors;
BOOL m_bContinuousMeasures;
BOOL m_bDetectPrimaries;
BOOL m_isSettling;
BOOL m_useHSV;
int m_latencyTime, m_ablFreq;
BOOL m_bLatencyBeep;
BOOL bDisplayRT;
BOOL m_bABL;
BOOL m_bDisableHighDPI;
BOOL m_bUseRoundDown;
BOOL m_bUse10bit;
int m_BWColorsToAdd;
double m_GammaRef;
double m_GammaAvg;
double m_MasterMinL, m_MasterMaxL, m_ContentMaxL, m_FrameAvgMaxL, m_TargetMinL, m_TargetMaxL, m_DiffuseL, m_TargetSysGamma, m_BT2390_BS;
double m_GammaRel, m_BT2390_WS1, m_BT2390_WS;
double m_Split;
double m_ManualBlack;
BOOL m_userBlack, m_bOverRideTargs;
BOOL m_useToneMap;
BOOL m_useMeasuredGamma;
BOOL m_bSave;
BOOL m_bSave2;
double m_manualGOffset;
double m_manualWhitex;
double m_manualWhitey;
double m_manualRedx;
double m_manualRedy;
double m_manualGreenx;
double m_manualGreeny;
double m_manualBluex;
double m_manualBluey;
int m_GammaOffsetType;
int m_nColors;
bool m_bHDR100;
// Appearance settings
BOOL m_drawMenuBorder;
int m_menuDrawMode;
BOOL m_useCustomColor;
BOOL m_doXpBlending;
BOOL m_doSelectDisabledItem;
BOOL m_doGlooming;
BOOL m_bWhiteBkgndOnScreen;
BOOL m_bWhiteBkgndOnFile;
BOOL m_bmoveMessage;
COLORREF m_fxColorWindow;
COLORREF m_fxColorMenu;
COLORREF m_fxColorSelection;
COLORREF m_fxColorText;
// Other settings
BOOL m_doMultipleInstance;
BOOL m_doUpdateCheck;
BOOL m_doSavePosition;
BOOL m_isModified;
// Advanced settings
int m_TBViewsRightClickMode;
int m_TBViewsMiddleClickMode;
BOOL m_bConfirmMeasures;
BOOL m_bUseOnlyPrimaries;
BOOL m_bUseImperialUnits;
int m_nLuminanceCurveMode;
BOOL m_bPreferLuxmeter;
int m_dE_form;
int m_dE_gray;
int gw_Weight;
BOOL doHighlight;
BOOL isHighDPI;
// Global strings
CString m_PercentGray;
public:
BOOL GetPropertiesSheetValues();
void SetPropertiesSheetValues();
void ChangeSettings(int aPage);
void SaveSettings();
BOOL LoadSettings();
void ApplySettings(BOOL isStartupApply=FALSE);
void InitDefaults();
int GetCColorsSize();
ColorRGB GetCColorsT(int index);
std::string GetCColorsN(int index);
void GetCColors();
CString strLang;
BOOL IsProfileEntryDefined(LPCTSTR lpszSection,LPCTSTR lpszEntry);
BOOL WriteProfileString(LPCTSTR lpszSection,LPCTSTR lpszEntry,LPCTSTR lpszValue);
CString GetProfileString(LPCTSTR lpszSection,LPCTSTR lpszEntry,LPCTSTR lpszDefault = NULL);
UINT GetProfileInt(LPCTSTR lpszSection,LPCTSTR lpszEntry,int nDefault);
BOOL WriteProfileInt(LPCTSTR lpszSection,LPCTSTR lpszEntry,int nValue);
double GetProfileDouble(LPCTSTR lpszSection,LPCTSTR lpszEntry,double nDefault);
BOOL WriteProfileDouble(LPCTSTR lpszSection,LPCTSTR lpszEntry,double nValue);
COLORREF GetProfileColor(LPCTSTR lpszSection,LPCTSTR lpszEntry);
BOOL WriteProfileColor(LPCTSTR lpszSection,LPCTSTR lpszEntry,COLORREF nValue);
void PurgeHelpLanguageSection ();
void DisplayHelp ( UINT nId, LPCSTR lpszTopic );
void EnsurePathExists ( CString strPath );
CReferencesPropPage m_referencesPropertiesPage;
CAdvancedPropPage m_advancedPropertiesPage;
CColorHCFRConfig();
virtual ~CColorHCFRConfig();
private:
CPropertySheetWithHelp m_propertySheet;
CGeneralPropPage m_generalPropertiesPage;
CAppearancePropPage m_appearancePropertiesPage;
CToolbarPropPage m_toolbarPropertiesPage;
};
#endif // !defined(AFX_COLORHCFRCONFIG_H__669E7D2E_9632_4BCC_8C99_41DA182515F1__INCLUDED_)