Mercurial > vba-linux
diff src/win32/GBACheatsDlg.h @ 1:f9f4f1b99eed
importing src directory
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Mar 2012 10:31:27 -0600 |
parents | |
children |
line wrap: on
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/win32/GBACheatsDlg.h Sat Mar 03 10:31:27 2012 -0600 1.3 @@ -0,0 +1,264 @@ 1.4 +#if !defined(AFX_GBACHEATS_H__FC31D47D_52C8_42B2_95C7_7C3FD09316A4__INCLUDED_) 1.5 +#define AFX_GBACHEATS_H__FC31D47D_52C8_42B2_95C7_7C3FD09316A4__INCLUDED_ 1.6 + 1.7 +#if _MSC_VER > 1000 1.8 +#pragma once 1.9 +#endif // _MSC_VER > 1000 1.10 +// GBACheatsDlg.h : header file 1.11 +// 1.12 + 1.13 +///////////////////////////////////////////////////////////////////////////// 1.14 +// GBACheatSearch dialog 1.15 + 1.16 +struct WinCheatsData 1.17 +{ 1.18 + u32 addr; 1.19 + char address[9]; 1.20 + char oldValue[12]; 1.21 + char newValue[12]; 1.22 +}; 1.23 + 1.24 +class GBACheatSearch : public CDialog 1.25 +{ 1.26 + // Construction 1.27 +public: 1.28 + afx_msg void OnSizeType(UINT id); 1.29 + afx_msg void OnNumberType(UINT id); 1.30 + afx_msg void OnSearchType(UINT id); 1.31 + afx_msg void OnValueType(UINT id); 1.32 + void addChange(int index, u32 address, u32 oldValue, u32 newValue); 1.33 + GBACheatSearch(CWnd*pParent = NULL); // standard constructor 1.34 + ~GBACheatSearch(); 1.35 + 1.36 + // Dialog Data 1.37 + //{{AFX_DATA(GBACheatSearch) 1.38 + enum { IDD = IDD_CHEATS }; 1.39 + CEdit m_value; 1.40 + CListCtrl m_list; 1.41 + int valueType; 1.42 + int sizeType; 1.43 + int searchType; 1.44 + int numberType; 1.45 + BOOL updateValues; 1.46 + //}}AFX_DATA 1.47 + 1.48 + // Overrides 1.49 + // ClassWizard generated virtual function overrides 1.50 + //{{AFX_VIRTUAL(GBACheatSearch) 1.51 +protected: 1.52 + virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support 1.53 + //}}AFX_VIRTUAL 1.54 + 1.55 + // Implementation 1.56 +protected: 1.57 + // Generated message map functions 1.58 + //{{AFX_MSG(GBACheatSearch) 1.59 + afx_msg void OnOk(); 1.60 + afx_msg void OnStart(); 1.61 + afx_msg void OnSearch(); 1.62 + afx_msg void OnAddCheat(); 1.63 + afx_msg void OnUpdate(); 1.64 + afx_msg void OnGetdispinfoCheatList(NMHDR*pNMHDR, LRESULT*pResult); 1.65 + afx_msg void OnItemchangedCheatList(NMHDR*pNMHDR, LRESULT*pResult); 1.66 + virtual BOOL OnInitDialog(); 1.67 + //}}AFX_MSG 1.68 + DECLARE_MESSAGE_MAP() 1.69 +private: 1.70 + void addChanges(bool showMsgs); 1.71 + WinCheatsData *data; 1.72 +public: 1.73 + afx_msg void OnClose(); 1.74 + afx_msg void OnBnClickedCheatrefreshbutton(); 1.75 +}; 1.76 + 1.77 +///////////////////////////////////////////////////////////////////////////// 1.78 +// AddCheat dialog 1.79 + 1.80 +class AddCheat : public CDialog 1.81 +{ 1.82 + // Construction 1.83 +public: 1.84 + bool addCheat(); 1.85 + afx_msg void OnSizeType(UINT id); 1.86 + afx_msg void OnNumberType(UINT id); 1.87 + AddCheat(u32 address, CWnd*pParent = NULL); // standard constructor 1.88 + 1.89 + // Dialog Data 1.90 + //{{AFX_DATA(AddCheat) 1.91 + enum { IDD = IDD_ADD_CHEAT }; 1.92 + CEdit m_value; 1.93 + CEdit m_desc; 1.94 + CEdit m_address; 1.95 + int sizeType; 1.96 + int numberType; 1.97 + //}}AFX_DATA 1.98 + 1.99 + // Overrides 1.100 + // ClassWizard generated virtual function overrides 1.101 + //{{AFX_VIRTUAL(AddCheat) 1.102 +protected: 1.103 + virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support 1.104 + //}}AFX_VIRTUAL 1.105 + 1.106 + // Implementation 1.107 +protected: 1.108 + u32 address; 1.109 + 1.110 + // Generated message map functions 1.111 + //{{AFX_MSG(AddCheat) 1.112 + afx_msg void OnOk(); 1.113 + afx_msg void OnCancel(); 1.114 + virtual BOOL OnInitDialog(); 1.115 + //}}AFX_MSG 1.116 + DECLARE_MESSAGE_MAP() 1.117 +}; 1.118 +///////////////////////////////////////////////////////////////////////////// 1.119 +// GBACheatList dialog 1.120 + 1.121 +class GBACheatList : public CDialog 1.122 +{ 1.123 + // Construction 1.124 +public: 1.125 + void refresh(); 1.126 + GBACheatList(CWnd*pParent = NULL); // standard constructor 1.127 + 1.128 + // Dialog Data 1.129 + //{{AFX_DATA(GBACheatList) 1.130 + enum { IDD = IDD_CHEAT_LIST }; 1.131 + CButton m_restore; 1.132 + CListCtrl m_list; 1.133 + //}}AFX_DATA 1.134 + 1.135 + // Overrides 1.136 + // ClassWizard generated virtual function overrides 1.137 + //{{AFX_VIRTUAL(GBACheatList) 1.138 +protected: 1.139 + virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support 1.140 + //}}AFX_VIRTUAL 1.141 + 1.142 + // Implementation 1.143 +protected: 1.144 + bool duringRefresh; 1.145 + bool restoreValues; 1.146 + 1.147 + // Generated message map functions 1.148 + //{{AFX_MSG(GBACheatList) 1.149 + afx_msg void OnAddCheat(); 1.150 + afx_msg void OnAddCode(); 1.151 + afx_msg void OnAddCodebreaker(); 1.152 + afx_msg void OnAddGameshark(); 1.153 + afx_msg void OnEnable(); 1.154 + afx_msg void OnRemove(); 1.155 + afx_msg void OnRemoveAll(); 1.156 + afx_msg void OnRestore(); 1.157 + afx_msg void OnOk(); 1.158 + afx_msg void OnItemchangedCheatList(NMHDR*pNMHDR, LRESULT*pResult); 1.159 + virtual BOOL OnInitDialog(); 1.160 + //}}AFX_MSG 1.161 + DECLARE_MESSAGE_MAP() 1.162 +}; 1.163 +///////////////////////////////////////////////////////////////////////////// 1.164 +// AddGSACode dialog 1.165 + 1.166 +class AddGSACode : public CDialog 1.167 +{ 1.168 + // Construction 1.169 +public: 1.170 + AddGSACode(CWnd*pParent = NULL); // standard constructor 1.171 + 1.172 + // Dialog Data 1.173 + //{{AFX_DATA(AddGSACode) 1.174 + enum { IDD = IDD_ADD_CHEAT_DLG }; 1.175 + CEdit m_desc; 1.176 + CEdit m_code; 1.177 + //}}AFX_DATA 1.178 + 1.179 + // Overrides 1.180 + // ClassWizard generated virtual function overrides 1.181 + //{{AFX_VIRTUAL(AddGSACode) 1.182 +protected: 1.183 + virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support 1.184 + //}}AFX_VIRTUAL 1.185 + 1.186 + // Implementation 1.187 +protected: 1.188 + // Generated message map functions 1.189 + //{{AFX_MSG(AddGSACode) 1.190 + afx_msg void OnOk(); 1.191 + afx_msg void OnCancel(); 1.192 + virtual BOOL OnInitDialog(); 1.193 + //}}AFX_MSG 1.194 + DECLARE_MESSAGE_MAP() 1.195 +}; 1.196 + 1.197 +///////////////////////////////////////////////////////////////////////////// 1.198 +// AddCBACode dialog 1.199 + 1.200 +class AddCBACode : public CDialog 1.201 +{ 1.202 + // Construction 1.203 +public: 1.204 + AddCBACode(CWnd*pParent = NULL); // standard constructor 1.205 + 1.206 + // Dialog Data 1.207 + //{{AFX_DATA(AddCBACode) 1.208 + enum { IDD = IDD_ADD_CHEAT_DLG }; 1.209 + CEdit m_desc; 1.210 + CEdit m_code; 1.211 + //}}AFX_DATA 1.212 + 1.213 + // Overrides 1.214 + // ClassWizard generated virtual function overrides 1.215 + //{{AFX_VIRTUAL(AddCBACode) 1.216 +protected: 1.217 + virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support 1.218 + //}}AFX_VIRTUAL 1.219 + 1.220 + // Implementation 1.221 +protected: 1.222 + // Generated message map functions 1.223 + //{{AFX_MSG(AddCBACode) 1.224 + afx_msg void OnOk(); 1.225 + afx_msg void OnCancel(); 1.226 + virtual BOOL OnInitDialog(); 1.227 + //}}AFX_MSG 1.228 + DECLARE_MESSAGE_MAP() 1.229 +}; 1.230 + 1.231 +///////////////////////////////////////////////////////////////////////////// 1.232 +// AddCheatCode dialog 1.233 + 1.234 +class AddCheatCode : public CDialog 1.235 +{ 1.236 + // Construction 1.237 +public: 1.238 + AddCheatCode(CWnd*pParent = NULL); // standard constructor 1.239 + 1.240 + // Dialog Data 1.241 + //{{AFX_DATA(AddCheatCode) 1.242 + enum { IDD = IDD_ADD_CHEAT_DLG }; 1.243 + CEdit m_desc; 1.244 + CEdit m_code; 1.245 + //}}AFX_DATA 1.246 + 1.247 + // Overrides 1.248 + // ClassWizard generated virtual function overrides 1.249 + //{{AFX_VIRTUAL(AddCheatCode) 1.250 +protected: 1.251 + virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support 1.252 + //}}AFX_VIRTUAL 1.253 + 1.254 + // Implementation 1.255 +protected: 1.256 + // Generated message map functions 1.257 + //{{AFX_MSG(AddCheatCode) 1.258 + afx_msg void OnOk(); 1.259 + afx_msg void OnCancel(); 1.260 + virtual BOOL OnInitDialog(); 1.261 + //}}AFX_MSG 1.262 + DECLARE_MESSAGE_MAP() 1.263 +}; 1.264 +//{{AFX_INSERT_LOCATION}} 1.265 +// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 1.266 + 1.267 +#endif // !defined(AFX_GBACHEATS_H__FC31D47D_52C8_42B2_95C7_7C3FD09316A4__INCLUDED_)