annotate src/win32/GBCheatsDlg.h @ 8:08a8e09ca414

add files required by automake
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:54:39 -0600
parents f9f4f1b99eed
children
rev   line source
rlm@1 1 #if !defined(AFX_GBCHEATSDLG_H__8ECCB04A_AB75_4552_8625_C6FBF30A95D9__INCLUDED_)
rlm@1 2 #define AFX_GBCHEATSDLG_H__8ECCB04A_AB75_4552_8625_C6FBF30A95D9__INCLUDED_
rlm@1 3
rlm@1 4 #if _MSC_VER > 1000
rlm@1 5 #pragma once
rlm@1 6 #endif // _MSC_VER > 1000
rlm@1 7 // GBCheats.h : header file
rlm@1 8 //
rlm@1 9
rlm@1 10 /////////////////////////////////////////////////////////////////////////////
rlm@1 11 // GBCheatSearch dialog
rlm@1 12
rlm@1 13 struct WinGbCheatsData
rlm@1 14 {
rlm@1 15 int bank;
rlm@1 16 u16 addr;
rlm@1 17 char address[9];
rlm@1 18 char oldValue[12];
rlm@1 19 char newValue[12];
rlm@1 20 };
rlm@1 21
rlm@1 22 class GBCheatSearch : public CDialog
rlm@1 23 {
rlm@1 24 // Construction
rlm@1 25 public:
rlm@1 26 afx_msg void OnSizeType(UINT id);
rlm@1 27 afx_msg void OnNumberType(UINT id);
rlm@1 28 afx_msg void OnSearchType(UINT id);
rlm@1 29 afx_msg void OnValueType(UINT id);
rlm@1 30 void addChanges(bool showMsg);
rlm@1 31 void addChange(int index, int bank, u16 address, int offset, u32 oldValue, u32 newValue);
rlm@1 32 int getBank(u16 addr, int j);
rlm@1 33 GBCheatSearch(CWnd*pParent = NULL); // standard constructor
rlm@1 34 ~GBCheatSearch();
rlm@1 35
rlm@1 36 // Dialog Data
rlm@1 37 //{{AFX_DATA(GBCheatSearch)
rlm@1 38 enum { IDD = IDD_CHEATS };
rlm@1 39 CEdit m_value;
rlm@1 40 CListCtrl m_list;
rlm@1 41 int searchType;
rlm@1 42 int numberType;
rlm@1 43 int sizeType;
rlm@1 44 BOOL updateValues;
rlm@1 45 int valueType;
rlm@1 46 //}}AFX_DATA
rlm@1 47
rlm@1 48 // Overrides
rlm@1 49 // ClassWizard generated virtual function overrides
rlm@1 50 //{{AFX_VIRTUAL(GBCheatSearch)
rlm@1 51 protected:
rlm@1 52 virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support
rlm@1 53 //}}AFX_VIRTUAL
rlm@1 54
rlm@1 55 // Implementation
rlm@1 56 protected:
rlm@1 57 WinGbCheatsData *data;
rlm@1 58
rlm@1 59 // Generated message map functions
rlm@1 60 //{{AFX_MSG(GBCheatSearch)
rlm@1 61 afx_msg void OnOk();
rlm@1 62 afx_msg void OnAddCheat();
rlm@1 63 afx_msg void OnSearch();
rlm@1 64 afx_msg void OnStart();
rlm@1 65 afx_msg void OnUpdate();
rlm@1 66 virtual BOOL OnInitDialog();
rlm@1 67 afx_msg void OnGetdispinfoCheatList(NMHDR*pNMHDR, LRESULT*pResult);
rlm@1 68 afx_msg void OnItemchangedCheatList(NMHDR*pNMHDR, LRESULT*pResult);
rlm@1 69 //}}AFX_MSG
rlm@1 70 DECLARE_MESSAGE_MAP()
rlm@1 71 public:
rlm@1 72 afx_msg void OnClose();
rlm@1 73 afx_msg void OnBnClickedCheatrefreshbutton();
rlm@1 74 };
rlm@1 75
rlm@1 76 /////////////////////////////////////////////////////////////////////////////
rlm@1 77 // AddGBCheat dialog
rlm@1 78
rlm@1 79 class AddGBCheat : public CDialog
rlm@1 80 {
rlm@1 81 // Construction
rlm@1 82 public:
rlm@1 83 afx_msg void OnSizeType(UINT id);
rlm@1 84 afx_msg void OnNumberType(UINT id);
rlm@1 85 bool addCheat();
rlm@1 86 AddGBCheat(u32 addr, CWnd*pParent = NULL); // standard constructor
rlm@1 87
rlm@1 88 // Dialog Data
rlm@1 89 //{{AFX_DATA(AddGBCheat)
rlm@1 90 enum { IDD = IDD_ADD_CHEAT };
rlm@1 91 CEdit m_value;
rlm@1 92 CEdit m_address;
rlm@1 93 CEdit m_desc;
rlm@1 94 int sizeType;
rlm@1 95 int numberType;
rlm@1 96 //}}AFX_DATA
rlm@1 97
rlm@1 98 // Overrides
rlm@1 99 // ClassWizard generated virtual function overrides
rlm@1 100 //{{AFX_VIRTUAL(AddGBCheat)
rlm@1 101 protected:
rlm@1 102 virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support
rlm@1 103 //}}AFX_VIRTUAL
rlm@1 104
rlm@1 105 // Implementation
rlm@1 106 protected:
rlm@1 107 u32 address;
rlm@1 108
rlm@1 109 // Generated message map functions
rlm@1 110 //{{AFX_MSG(AddGBCheat)
rlm@1 111 afx_msg void OnCancel();
rlm@1 112 afx_msg void OnOk();
rlm@1 113 virtual BOOL OnInitDialog();
rlm@1 114 //}}AFX_MSG
rlm@1 115 DECLARE_MESSAGE_MAP()
rlm@1 116 };
rlm@1 117 /////////////////////////////////////////////////////////////////////////////
rlm@1 118 // GBCheatList dialog
rlm@1 119
rlm@1 120 class GBCheatList : public CDialog
rlm@1 121 {
rlm@1 122 // Construction
rlm@1 123 public:
rlm@1 124 void refresh();
rlm@1 125 GBCheatList(CWnd*pParent = NULL); // standard constructor
rlm@1 126
rlm@1 127 // Dialog Data
rlm@1 128 //{{AFX_DATA(GBCheatList)
rlm@1 129 enum { IDD = IDD_GB_CHEAT_LIST };
rlm@1 130 CListCtrl m_list;
rlm@1 131 //}}AFX_DATA
rlm@1 132
rlm@1 133 // Overrides
rlm@1 134 // ClassWizard generated virtual function overrides
rlm@1 135 //{{AFX_VIRTUAL(GBCheatList)
rlm@1 136 protected:
rlm@1 137 virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support
rlm@1 138 //}}AFX_VIRTUAL
rlm@1 139
rlm@1 140 // Implementation
rlm@1 141 protected:
rlm@1 142 bool duringRefresh;
rlm@1 143
rlm@1 144 // Generated message map functions
rlm@1 145 //{{AFX_MSG(GBCheatList)
rlm@1 146 afx_msg void OnOk();
rlm@1 147 afx_msg void OnAddGgCheat();
rlm@1 148 afx_msg void OnAddGsCheat();
rlm@1 149 afx_msg void OnEnable();
rlm@1 150 afx_msg void OnRemove();
rlm@1 151 afx_msg void OnRemoveAll();
rlm@1 152 afx_msg void OnItemchangedCheatList(NMHDR*pNMHDR, LRESULT*pResult);
rlm@1 153 virtual BOOL OnInitDialog();
rlm@1 154 //}}AFX_MSG
rlm@1 155 DECLARE_MESSAGE_MAP()
rlm@1 156 };
rlm@1 157
rlm@1 158 /////////////////////////////////////////////////////////////////////////////
rlm@1 159 // AddGBCode dialog
rlm@1 160
rlm@1 161 class AddGBCode : public CDialog
rlm@1 162 {
rlm@1 163 // Construction
rlm@1 164 public:
rlm@1 165 AddGBCode(bool(*verify)(const char *, const char *), int, const char *, CWnd*pParent = NULL); // standard constructor
rlm@1 166
rlm@1 167 // Dialog Data
rlm@1 168 //{{AFX_DATA(AddGBCode)
rlm@1 169 enum { IDD = IDD_ADD_CHEAT_DLG };
rlm@1 170 CEdit m_desc;
rlm@1 171 CEdit m_code;
rlm@1 172 //}}AFX_DATA
rlm@1 173
rlm@1 174 // Overrides
rlm@1 175 // ClassWizard generated virtual function overrides
rlm@1 176 //{{AFX_VIRTUAL(AddGBCode)
rlm@1 177 protected:
rlm@1 178 virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support
rlm@1 179 //}}AFX_VIRTUAL
rlm@1 180
rlm@1 181 // Implementation
rlm@1 182 protected:
rlm@1 183 int addLength;
rlm@1 184 CString addTitle;
rlm@1 185 bool (*addVerify)(const char *, const char *);
rlm@1 186
rlm@1 187 // Generated message map functions
rlm@1 188 //{{AFX_MSG(AddGBCode)
rlm@1 189 afx_msg void OnOk();
rlm@1 190 afx_msg void OnCancel();
rlm@1 191 virtual BOOL OnInitDialog();
rlm@1 192 //}}AFX_MSG
rlm@1 193 DECLARE_MESSAGE_MAP()
rlm@1 194 };
rlm@1 195 //{{AFX_INSERT_LOCATION}}
rlm@1 196 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
rlm@1 197
rlm@1 198 #endif // !defined(AFX_GBCHEATSDLG_H__8ECCB04A_AB75_4552_8625_C6FBF30A95D9__INCLUDED_)