Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
propedit.h
Go to the documentation of this file.
1/*
2** Command & Conquer Generals Zero Hour(tm)
3** Copyright 2025 Electronic Arts Inc.
4**
5** This program is free software: you can redistribute it and/or modify
6** it under the terms of the GNU General Public License as published by
7** the Free Software Foundation, either version 3 of the License, or
8** (at your option) any later version.
9**
10** This program is distributed in the hope that it will be useful,
11** but WITHOUT ANY WARRANTY; without even the implied warranty of
12** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13** GNU General Public License for more details.
14**
15** You should have received a copy of the GNU General Public License
16** along with this program. If not, see <http://www.gnu.org/licenses/>.
17*/
18
19#if !defined(AFX_PROPEDIT_H__93C02F45_592B_4CFD_A092_7445559D26EB__INCLUDED_)
20#define AFX_PROPEDIT_H__93C02F45_592B_4CFD_A092_7445559D26EB__INCLUDED_
21
22#if _MSC_VER > 1000
23#pragma once
24#endif // _MSC_VER > 1000
25// propedit.h : header file
26//
27
29// PropEdit dialog
30
31class PropEdit : public CDialog
32{
33// Construction
34public:
35 PropEdit(AsciiString* key, Dict::DataType* type, AsciiString* value, Bool valueOnly, CWnd *parent = NULL);
36
37// Dialog Data
38 //{{AFX_DATA(PropEdit)
39 enum { IDD = IDD_PROPEDIT };
40 // NOTE: the ClassWizard will add data members here
41 //}}AFX_DATA
42
43
44// Overrides
45 // ClassWizard generated virtual function overrides
46 //{{AFX_VIRTUAL(PropEdit)
47 protected:
48 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
49 //}}AFX_VIRTUAL
50
51// Implementation
52protected:
58
59 void validate();
60
61 // Generated message map functions
62 //{{AFX_MSG(PropEdit)
63 afx_msg void OnChangeKeyname();
64 afx_msg void OnEditchangeKeytype();
65 afx_msg void OnCloseupKeytype();
66 afx_msg void OnSelchangeKeytype();
67 afx_msg void OnChangeValue();
68 virtual BOOL OnInitDialog();
69 afx_msg void OnPropbool();
70 //}}AFX_MSG
71 DECLARE_MESSAGE_MAP()
72};
73
74//{{AFX_INSERT_LOCATION}}
75// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
76
77#endif // !defined(AFX_PROPEDIT_H__93C02F45_592B_4CFD_A092_7445559D26EB__INCLUDED_)
#define NULL
Definition BaseType.h:92
bool Bool
Definition BaseType.h:132
void const char * value
#define IDD_PROPEDIT
Definition resource.h:75
#define BOOL
Definition Wnd_File.h:57
DataType
Definition Dict.h:75
afx_msg void OnPropbool()
Definition propedit.cpp:173
PropEdit(AsciiString *key, Dict::DataType *type, AsciiString *value, Bool valueOnly, CWnd *parent=NULL)
Definition propedit.cpp:31
afx_msg void OnCloseupKeytype()
Definition propedit.cpp:137
Dict::DataType * m_type
Definition propedit.h:54
afx_msg void OnSelchangeKeytype()
Definition propedit.cpp:142
afx_msg void OnChangeValue()
Definition propedit.cpp:147
virtual void DoDataExchange(CDataExchange *pDX)
Definition propedit.cpp:40
int m_updating
Definition propedit.h:57
AsciiString * m_key
Definition propedit.h:53
void validate()
Definition propedit.cpp:60
Bool m_valueOnly
Definition propedit.h:56
afx_msg void OnEditchangeKeytype()
Definition propedit.cpp:132
afx_msg void OnChangeKeyname()
Definition propedit.cpp:127
virtual BOOL OnInitDialog()
Definition propedit.cpp:153
AsciiString * m_value
Definition propedit.h:55