summaryrefslogtreecommitdiff
path: root/win/Prefpage.h
blob: 29d8bba4e2c2bbdbceb23876bb5c819ef499e5a0 (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
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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
// PrefPage.h : header file
//

#ifndef __PREFPAGE_H__
#define __PREFPAGE_H__

/////////////////////////////////////////////////////////////////////////////
// CPreferencesGeneral dialog

class CPreferencesGeneral : public CPropertyPage
{
	DECLARE_DYNCREATE(CPreferencesGeneral)

// Construction
public:
	void SetOptions(int nSaveTime, int nMouse, char* strFolder);
	void GetOptions(int* nSaveTime, int* nMouse, char* strFolder);
	CPreferencesGeneral();
	~CPreferencesGeneral();

// Dialog Data
	//{{AFX_DATA(CPreferencesGeneral)
	enum { IDD = IDD_PREFGENERAL };
	CSliderCtrl	m_ctlMouse;
	BOOL	m_bZoom;
	BOOL	m_bSubparts;
	BOOL	m_bPreview;
	int		m_nSaveTime;
	BOOL	m_bNumbers;
	BOOL	m_bGroup;
	CString	m_strFolder;
	BOOL	m_bAutoSave;
	BOOL	m_bCombo;
	//}}AFX_DATA


// Overrides
	// ClassWizard generate virtual function overrides
	//{{AFX_VIRTUAL(CPreferencesGeneral)
	public:
	virtual void OnOK();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	int m_nMouse;

	// Generated message map functions
	//{{AFX_MSG(CPreferencesGeneral)
	afx_msg void OnFolderBrowse();
	virtual BOOL OnInitDialog();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

};


/////////////////////////////////////////////////////////////////////////////
// CPreferencesDetail dialog

class CPreferencesDetail : public CPropertyPage
{
	DECLARE_DYNCREATE(CPreferencesDetail)

// Construction
public:
	void SetOptions(DWORD dwDetail, float fLine);
	void GetOptions(DWORD* dwDetail, float* fLine);
	CPreferencesDetail();
	~CPreferencesDetail();

// Dialog Data
	//{{AFX_DATA(CPreferencesDetail)
	enum { IDD = IDD_PREFDETAIL };
	BOOL	m_bAntialiasing;
	BOOL	m_bDithering;
	BOOL	m_bEdges;
	BOOL	m_bLighting;
	BOOL	m_bLinear;
	BOOL	m_bSmooth;
	float	m_fLineWidth;
	BOOL	m_bBackground;
	BOOL	m_bFast;
	BOOL	m_bHidden;
	BOOL	m_bSolid;
	BOOL	m_bNoAlpha;
	//}}AFX_DATA


// Overrides
	// ClassWizard generate virtual function overrides
	//{{AFX_VIRTUAL(CPreferencesDetail)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	// Generated message map functions
	//{{AFX_MSG(CPreferencesDetail)
	afx_msg void OnFastClick();
	virtual BOOL OnInitDialog();
	afx_msg void OnDetdlgSolid();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

};


/////////////////////////////////////////////////////////////////////////////
// CPreferencesDrawing dialog

class CPreferencesDrawing : public CPropertyPage
{
	DECLARE_DYNCREATE(CPreferencesDrawing)

// Construction
public:
	void SetOptions(unsigned long dwSnap, unsigned short nAngle, unsigned short nGrid);
	void GetOptions(unsigned long* dwSnap, unsigned short* nAngle, unsigned short* nGrid);
	CPreferencesDrawing();
	~CPreferencesDrawing();

// Dialog Data
	//{{AFX_DATA(CPreferencesDrawing)
	enum { IDD = IDD_PREFDRAWING };
	int		m_nAngle;
	BOOL	m_bAxis;
	BOOL	m_bCentimeters;
	BOOL	m_bCollision;
	BOOL	m_bFixed;
	BOOL	m_bGrid;
	int		m_nGridSize;
	BOOL	m_bLockX;
	BOOL	m_bLockY;
	BOOL	m_bLockZ;
	BOOL	m_bMove;
	BOOL	m_bPreview;
	BOOL	m_bSnapA;
	BOOL	m_bSnapX;
	BOOL	m_bSnapY;
	BOOL	m_bSnapZ;
	BOOL	m_b3DMouse;
	//}}AFX_DATA


// Overrides
	// ClassWizard generate virtual function overrides
	//{{AFX_VIRTUAL(CPreferencesDrawing)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	// Generated message map functions
	//{{AFX_MSG(CPreferencesDrawing)
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

};


/////////////////////////////////////////////////////////////////////////////
// CPreferencesScene dialog

class CPreferencesScene : public CPropertyPage
{
	DECLARE_DYNCREATE(CPreferencesScene)

// Construction
public:
	void SetOptions(unsigned long nScene, float fDensity, char* strBackground, float* fBackground, float* fFog, float* fAmbient, float* fGrad1, float* fGrad2);
	void GetOptions(unsigned long* nScene, float* fDensity, char* strBackground, float* fBackground, float* fFog, float* fAmbient, float* fGrad1, float* fGrad2);
	CPreferencesScene();
	~CPreferencesScene();
	COLORREF m_crBackground;
	COLORREF m_crAmbient;
	COLORREF m_crFog;
	COLORREF m_crGrad1;
	COLORREF m_crGrad2;

// Dialog Data
	//{{AFX_DATA(CPreferencesScene)
	enum { IDD = IDD_PREFSCENE };
	CButton	m_btnGrad1;
	CButton	m_btnGrad2;
	CButton	m_btnAmbient;
	CButton	m_btnFog;
	CButton	m_btnBackground;
	CString	m_strBackground;
	BOOL	m_bTile;
	BOOL	m_bFog;
	BYTE	m_nFogDensity;
	BOOL	m_bFloor;
	int		m_nBackground;
	//}}AFX_DATA


// Overrides
	// ClassWizard generate virtual function overrides
	//{{AFX_VIRTUAL(CPreferencesScene)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	// Generated message map functions
	//{{AFX_MSG(CPreferencesScene)
	afx_msg void OnBackgroundBrowse();
	afx_msg void OnBackgroundColor();
	afx_msg void OnAmbientLight();
	afx_msg void OnFogColor();
	virtual BOOL OnInitDialog();
	afx_msg void OnGradColor1();
	afx_msg void OnGradColor2();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

};


/////////////////////////////////////////////////////////////////////////////
// CPreferencesPrint dialog

class CPreferencesPrint : public CPropertyPage
{
	DECLARE_DYNCREATE(CPreferencesPrint)

// Construction
public:
	void SetOptions(CString strHeader, CString strFooter);
	void GetOptions(char* strHeader, char* strFooter);
	CPreferencesPrint();
	~CPreferencesPrint();

// Dialog Data
	//{{AFX_DATA(CPreferencesPrint)
	enum { IDD = IDD_PREFPRINT };
	float	m_fBottom;
	float	m_fLeft;
	float	m_fRight;
	float	m_fTop;
	BOOL	m_bNumbers;
	CString	m_strHeader;
	CString	m_strFooter;
	BOOL	m_bBorder;
	int		m_nInstCols;
	int		m_nInstRows;
	int		m_nCatCols;
	int		m_nCatRows;
	//}}AFX_DATA


// Overrides
	// ClassWizard generate virtual function overrides
	//{{AFX_VIRTUAL(CPreferencesPrint)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	void OnHeaderClick(UINT nID);
	// Generated message map functions
	//{{AFX_MSG(CPreferencesPrint)
	virtual BOOL OnInitDialog();
	afx_msg void OnFooterButton();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

};



#endif // __PREFPAGE_H__