view src/win32/GBACheatsDlg.h @ 3:b05d00f19d80

fix some formatting
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:33:11 -0600
parents f9f4f1b99eed
children
line wrap: on
line source
1 #if !defined(AFX_GBACHEATS_H__FC31D47D_52C8_42B2_95C7_7C3FD09316A4__INCLUDED_)
2 #define AFX_GBACHEATS_H__FC31D47D_52C8_42B2_95C7_7C3FD09316A4__INCLUDED_
4 #if _MSC_VER > 1000
5 #pragma once
6 #endif // _MSC_VER > 1000
7 // GBACheatsDlg.h : header file
8 //
10 /////////////////////////////////////////////////////////////////////////////
11 // GBACheatSearch dialog
13 struct WinCheatsData
14 {
15 u32 addr;
16 char address[9];
17 char oldValue[12];
18 char newValue[12];
19 };
21 class GBACheatSearch : public CDialog
22 {
23 // Construction
24 public:
25 afx_msg void OnSizeType(UINT id);
26 afx_msg void OnNumberType(UINT id);
27 afx_msg void OnSearchType(UINT id);
28 afx_msg void OnValueType(UINT id);
29 void addChange(int index, u32 address, u32 oldValue, u32 newValue);
30 GBACheatSearch(CWnd*pParent = NULL); // standard constructor
31 ~GBACheatSearch();
33 // Dialog Data
34 //{{AFX_DATA(GBACheatSearch)
35 enum { IDD = IDD_CHEATS };
36 CEdit m_value;
37 CListCtrl m_list;
38 int valueType;
39 int sizeType;
40 int searchType;
41 int numberType;
42 BOOL updateValues;
43 //}}AFX_DATA
45 // Overrides
46 // ClassWizard generated virtual function overrides
47 //{{AFX_VIRTUAL(GBACheatSearch)
48 protected:
49 virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support
50 //}}AFX_VIRTUAL
52 // Implementation
53 protected:
54 // Generated message map functions
55 //{{AFX_MSG(GBACheatSearch)
56 afx_msg void OnOk();
57 afx_msg void OnStart();
58 afx_msg void OnSearch();
59 afx_msg void OnAddCheat();
60 afx_msg void OnUpdate();
61 afx_msg void OnGetdispinfoCheatList(NMHDR*pNMHDR, LRESULT*pResult);
62 afx_msg void OnItemchangedCheatList(NMHDR*pNMHDR, LRESULT*pResult);
63 virtual BOOL OnInitDialog();
64 //}}AFX_MSG
65 DECLARE_MESSAGE_MAP()
66 private:
67 void addChanges(bool showMsgs);
68 WinCheatsData *data;
69 public:
70 afx_msg void OnClose();
71 afx_msg void OnBnClickedCheatrefreshbutton();
72 };
74 /////////////////////////////////////////////////////////////////////////////
75 // AddCheat dialog
77 class AddCheat : public CDialog
78 {
79 // Construction
80 public:
81 bool addCheat();
82 afx_msg void OnSizeType(UINT id);
83 afx_msg void OnNumberType(UINT id);
84 AddCheat(u32 address, CWnd*pParent = NULL); // standard constructor
86 // Dialog Data
87 //{{AFX_DATA(AddCheat)
88 enum { IDD = IDD_ADD_CHEAT };
89 CEdit m_value;
90 CEdit m_desc;
91 CEdit m_address;
92 int sizeType;
93 int numberType;
94 //}}AFX_DATA
96 // Overrides
97 // ClassWizard generated virtual function overrides
98 //{{AFX_VIRTUAL(AddCheat)
99 protected:
100 virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support
101 //}}AFX_VIRTUAL
103 // Implementation
104 protected:
105 u32 address;
107 // Generated message map functions
108 //{{AFX_MSG(AddCheat)
109 afx_msg void OnOk();
110 afx_msg void OnCancel();
111 virtual BOOL OnInitDialog();
112 //}}AFX_MSG
113 DECLARE_MESSAGE_MAP()
114 };
115 /////////////////////////////////////////////////////////////////////////////
116 // GBACheatList dialog
118 class GBACheatList : public CDialog
119 {
120 // Construction
121 public:
122 void refresh();
123 GBACheatList(CWnd*pParent = NULL); // standard constructor
125 // Dialog Data
126 //{{AFX_DATA(GBACheatList)
127 enum { IDD = IDD_CHEAT_LIST };
128 CButton m_restore;
129 CListCtrl m_list;
130 //}}AFX_DATA
132 // Overrides
133 // ClassWizard generated virtual function overrides
134 //{{AFX_VIRTUAL(GBACheatList)
135 protected:
136 virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support
137 //}}AFX_VIRTUAL
139 // Implementation
140 protected:
141 bool duringRefresh;
142 bool restoreValues;
144 // Generated message map functions
145 //{{AFX_MSG(GBACheatList)
146 afx_msg void OnAddCheat();
147 afx_msg void OnAddCode();
148 afx_msg void OnAddCodebreaker();
149 afx_msg void OnAddGameshark();
150 afx_msg void OnEnable();
151 afx_msg void OnRemove();
152 afx_msg void OnRemoveAll();
153 afx_msg void OnRestore();
154 afx_msg void OnOk();
155 afx_msg void OnItemchangedCheatList(NMHDR*pNMHDR, LRESULT*pResult);
156 virtual BOOL OnInitDialog();
157 //}}AFX_MSG
158 DECLARE_MESSAGE_MAP()
159 };
160 /////////////////////////////////////////////////////////////////////////////
161 // AddGSACode dialog
163 class AddGSACode : public CDialog
164 {
165 // Construction
166 public:
167 AddGSACode(CWnd*pParent = NULL); // standard constructor
169 // Dialog Data
170 //{{AFX_DATA(AddGSACode)
171 enum { IDD = IDD_ADD_CHEAT_DLG };
172 CEdit m_desc;
173 CEdit m_code;
174 //}}AFX_DATA
176 // Overrides
177 // ClassWizard generated virtual function overrides
178 //{{AFX_VIRTUAL(AddGSACode)
179 protected:
180 virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support
181 //}}AFX_VIRTUAL
183 // Implementation
184 protected:
185 // Generated message map functions
186 //{{AFX_MSG(AddGSACode)
187 afx_msg void OnOk();
188 afx_msg void OnCancel();
189 virtual BOOL OnInitDialog();
190 //}}AFX_MSG
191 DECLARE_MESSAGE_MAP()
192 };
194 /////////////////////////////////////////////////////////////////////////////
195 // AddCBACode dialog
197 class AddCBACode : public CDialog
198 {
199 // Construction
200 public:
201 AddCBACode(CWnd*pParent = NULL); // standard constructor
203 // Dialog Data
204 //{{AFX_DATA(AddCBACode)
205 enum { IDD = IDD_ADD_CHEAT_DLG };
206 CEdit m_desc;
207 CEdit m_code;
208 //}}AFX_DATA
210 // Overrides
211 // ClassWizard generated virtual function overrides
212 //{{AFX_VIRTUAL(AddCBACode)
213 protected:
214 virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support
215 //}}AFX_VIRTUAL
217 // Implementation
218 protected:
219 // Generated message map functions
220 //{{AFX_MSG(AddCBACode)
221 afx_msg void OnOk();
222 afx_msg void OnCancel();
223 virtual BOOL OnInitDialog();
224 //}}AFX_MSG
225 DECLARE_MESSAGE_MAP()
226 };
228 /////////////////////////////////////////////////////////////////////////////
229 // AddCheatCode dialog
231 class AddCheatCode : public CDialog
232 {
233 // Construction
234 public:
235 AddCheatCode(CWnd*pParent = NULL); // standard constructor
237 // Dialog Data
238 //{{AFX_DATA(AddCheatCode)
239 enum { IDD = IDD_ADD_CHEAT_DLG };
240 CEdit m_desc;
241 CEdit m_code;
242 //}}AFX_DATA
244 // Overrides
245 // ClassWizard generated virtual function overrides
246 //{{AFX_VIRTUAL(AddCheatCode)
247 protected:
248 virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support
249 //}}AFX_VIRTUAL
251 // Implementation
252 protected:
253 // Generated message map functions
254 //{{AFX_MSG(AddCheatCode)
255 afx_msg void OnOk();
256 afx_msg void OnCancel();
257 virtual BOOL OnInitDialog();
258 //}}AFX_MSG
259 DECLARE_MESSAGE_MAP()
260 };
261 //{{AFX_INSERT_LOCATION}}
262 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
264 #endif // !defined(AFX_GBACHEATS_H__FC31D47D_52C8_42B2_95C7_7C3FD09316A4__INCLUDED_)