-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathKeyEditDlg.h
269 lines (225 loc) · 7.44 KB
/
KeyEditDlg.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
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
/****************************************************************************************/
/* KeyEditDlg.h */
/* */
/* Author: Jim Mischel, Ken Baird, Jeff Lomax */
/* Description: Genesis world editor header file */
/* */
/* The contents of this file are subject to the Genesis3D Public License */
/* Version 1.01 (the "License"); you may not use this file except in */
/* compliance with the License. You may obtain a copy of the License at */
/* http://www.genesis3d.com */
/* */
/* Software distributed under the License is distributed on an "AS IS" */
/* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See */
/* the License for the specific language governing rights and limitations */
/* under the License. */
/* */
/* The Original Code is Genesis3D, released March 25, 1999. */
/* Genesis3D Version 1.1 released November 15, 1999 */
/* Copyright (C) 1999 WildTangent, Inc. All Rights Reserved */
/* */
/****************************************************************************************/
#if !defined(AFX_KEYEDITDLG_H__E9ABF084_A391_11D1_AC11_0060088D6C58__INCLUDED_)
#define AFX_KEYEDITDLG_H__E9ABF084_A391_11D1_AC11_0060088D6C58__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// KeyEditDlg.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CKeyEditDlg dialog
#include "model.h"
#include "resource.h"
#include "entity.h"
#include "EntityTable.h"
class CKeyEditDlg : public CDialog
{
// Construction
public:
CKeyEditDlg(CWnd* pParent, CString const pKeyS, CString *pValS); // standard constructor
// Dialog Data
//{{AFX_DATA(CKeyEditDlg)
enum { IDD = IDD_KEYEDIT };
CEdit m_ValueEdit;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CKeyEditDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CKeyEditDlg)
virtual BOOL OnInitDialog();
virtual void OnOK();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
CString const Key;
CString *pValue;
};
/////////////////////////////////////////////////////////////////////////////
// CPointKeyEditDlg dialog
class CPointKeyEditDlg : public CDialog
{
// Construction
public:
CPointKeyEditDlg(CWnd* pParent, CString const KeyS, CString *pValS);
// Dialog Data
//{{AFX_DATA(CPointKeyEditDlg)
enum { IDD = IDD_POINTKEYEDIT };
CEdit m_ZEdit;
CEdit m_YEdit;
CEdit m_XEdit;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPointKeyEditDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CPointKeyEditDlg)
virtual void OnOK();
virtual BOOL OnInitDialog();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
CString const Key;
CString *pValue;
};
/////////////////////////////////////////////////////////////////////////////
// CStructKeyEditDlg dialog
class CStructKeyEditDlg : public CDialog
{
// Construction
public:
CStructKeyEditDlg(CWnd* pParent, CEntity const &aEnt,
CString const KeyS, CEntityArray *Ents, CString *pValS,
const EntityTable *pEntTable);
// Dialog Data
//{{AFX_DATA(CStructKeyEditDlg)
enum { IDD = IDD_STRUCTEDIT };
CListBox m_StructList;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CStructKeyEditDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CStructKeyEditDlg)
afx_msg void OnDblclkStructlist();
virtual void OnOK();
virtual BOOL OnInitDialog();
afx_msg int OnVKeyToItem(UINT nKey, CListBox* pListBox, UINT nIndex);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
CEntity const &Ent;
CString const Key;
CEntityArray* mEntityArray;
CString *pValue;
const EntityTable *m_pEntityTable;
};
/////////////////////////////////////////////////////////////////////////////
// CModelKeyEditDlg dialog
class CModelKeyEditDlg : public CDialog
{
// Construction
public:
CModelKeyEditDlg::CModelKeyEditDlg(CWnd* pParent, ModelList *pModels, CString const KeyS, CString *pValS);
// Dialog Data
//{{AFX_DATA(CModelKeyEditDlg)
enum { IDD = IDD_MODELEDIT };
CListBox m_ModelList;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CModelKeyEditDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CModelKeyEditDlg)
virtual BOOL OnInitDialog();
afx_msg void OnDblclkModellist();
virtual void OnOK();
afx_msg int OnVKeyToItem(UINT nKey, CListBox* pListBox, UINT nIndex);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
ModelList *Models;
CString const Key;
CString *pValue;
};
/////////////////////////////////////////////////////////////////////////////
// CBoolKeyEditDlg dialog
class CBoolKeyEditDlg : public CDialog
{
// Construction
public:
CBoolKeyEditDlg(CWnd* pParent, CString const KeyS, CString *pValS);
// Dialog Data
//{{AFX_DATA(CBoolKeyEditDlg)
enum { IDD = IDD_BOOLEDIT };
CListBox m_BoolList;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CBoolKeyEditDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CBoolKeyEditDlg)
afx_msg void OnDblclkBoollist();
virtual void OnOK();
virtual BOOL OnInitDialog();
afx_msg int OnVKeyToItem(UINT nKey, CListBox* pListBox, UINT nIndex);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
CString const Key;
CString *pValue;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
// CColorKeyEditDlg -- Custom ColorDialog...
class CColorKeyEditDlg : public CColorDialog
{
public:
CColorKeyEditDlg (CWnd* pParent, CString const KeyS, CString *pValS);
virtual int DoModal();
protected:
virtual BOOL OnInitDialog ();
private:
CString const Key;
CString *pValue;
};
class CIntKeyEditDlg : public CKeyEditDlg
{
public:
CIntKeyEditDlg (CWnd* pParent, CString const KeyS, CString *pValS);
protected:
virtual void OnOK (void);
};
class CFloatKeyEditDlg : public CKeyEditDlg
{
public:
CFloatKeyEditDlg (CWnd* pParent, CString const KeyS, CString *pValS);
protected:
virtual void OnOK (void);
};
#endif // !defined(AFX_KEYEDITDLG_H__E9ABF084_A391_11D1_AC11_0060088D6C58__INCLUDED_)