complete patchaddedit. thanks facugaich

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1753 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Shawn Hoffman
2009-01-03 21:55:49 +00:00
parent 677c94414b
commit 161d7f369a
3 changed files with 144 additions and 26 deletions

View File

@ -29,7 +29,7 @@ class CPatchAddEdit : public wxDialog
wxWindowID id = 1,
const wxString& title = wxT("Edit Patch"),
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxSize(300, -1),
const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_DIALOG_STYLE);
virtual ~CPatchAddEdit();
@ -41,6 +41,7 @@ class CPatchAddEdit : public wxDialog
wxRadioBox *EditPatchType;
wxTextCtrl *EditPatchValue;
wxSpinButton *EntrySelection;
wxButton *EntryRemove;
enum {
ID_EDITPATCH_NAME_TEXT = 4500,
@ -50,14 +51,22 @@ class CPatchAddEdit : public wxDialog
ID_ENTRY_SELECT,
ID_EDITPATCH_TYPE,
ID_EDITPATCH_VALUE_TEXT,
ID_EDITPATCH_VALUE
ID_EDITPATCH_VALUE,
ID_ENTRY_ADD,
ID_ENTRY_REMOVE
};
void CreateGUIControls(int selection);
void OnClose(wxCloseEvent& event);
void ChangeEntry(wxSpinEvent& event);
void SavePatchData(wxCommandEvent& event);
void AddRemoveEntry(wxCommandEvent& event);
void UpdateEntryCtrls(PatchEngine::PatchEntry pE);
void SaveEntryData();
int selection;
int curEntry;
std::vector<PatchEngine::PatchEntry> tempEntries;
};
#endif // __PATCH_ADDEDIT_h__