mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 17:19:44 -06:00
DolphinWX: Kill off trivial event tables
Also fixes some of the wonky stuff in Main where we would fire an event to do post-init stuff which isn't necessary anymore.
This commit is contained in:
@ -24,49 +24,34 @@ class wxWindow;
|
||||
|
||||
class CPatchAddEdit : public wxDialog
|
||||
{
|
||||
public:
|
||||
CPatchAddEdit(int _selection, wxWindow* parent,
|
||||
wxWindowID id = 1,
|
||||
const wxString& title = _("Edit Patch"),
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = wxDEFAULT_DIALOG_STYLE);
|
||||
virtual ~CPatchAddEdit();
|
||||
public:
|
||||
CPatchAddEdit(int _selection, wxWindow* parent,
|
||||
wxWindowID id = 1,
|
||||
const wxString& title = _("Edit Patch"),
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = wxDEFAULT_DIALOG_STYLE);
|
||||
virtual ~CPatchAddEdit();
|
||||
|
||||
private:
|
||||
DECLARE_EVENT_TABLE();
|
||||
private:
|
||||
wxTextCtrl* EditPatchName;
|
||||
wxTextCtrl* EditPatchOffset;
|
||||
wxRadioBox* EditPatchType;
|
||||
wxTextCtrl* EditPatchValue;
|
||||
wxSpinButton* EntrySelection;
|
||||
wxButton* EntryAdd;
|
||||
wxButton* EntryRemove;
|
||||
wxStaticBoxSizer* sbEntry;
|
||||
|
||||
wxTextCtrl *EditPatchName;
|
||||
wxTextCtrl *EditPatchOffset;
|
||||
wxRadioBox *EditPatchType;
|
||||
wxTextCtrl *EditPatchValue;
|
||||
wxSpinButton *EntrySelection;
|
||||
wxButton *EntryRemove;
|
||||
wxStaticBoxSizer* sbEntry;
|
||||
|
||||
enum
|
||||
{
|
||||
ID_EDITPATCH_NAME_TEXT = 4500,
|
||||
ID_EDITPATCH_NAME,
|
||||
ID_EDITPATCH_OFFSET_TEXT,
|
||||
ID_EDITPATCH_OFFSET,
|
||||
ID_ENTRY_SELECT,
|
||||
ID_EDITPATCH_TYPE,
|
||||
ID_EDITPATCH_VALUE_TEXT,
|
||||
ID_EDITPATCH_VALUE,
|
||||
ID_ENTRY_ADD,
|
||||
ID_ENTRY_REMOVE
|
||||
};
|
||||
|
||||
void CreateGUIControls(int selection);
|
||||
void ChangeEntry(wxSpinEvent& event);
|
||||
void SavePatchData(wxCommandEvent& event);
|
||||
void AddRemoveEntry(wxCommandEvent& event);
|
||||
void UpdateEntryCtrls(PatchEngine::PatchEntry pE);
|
||||
bool UpdateTempEntryData(std::vector<PatchEngine::PatchEntry>::iterator iterEntry);
|
||||
|
||||
int selection, currentItem;
|
||||
std::vector<PatchEngine::PatchEntry> tempEntries;
|
||||
std::vector<PatchEngine::PatchEntry>::iterator itCurEntry;
|
||||
void CreateGUIControls(int selection);
|
||||
void ChangeEntry(wxSpinEvent& event);
|
||||
void SavePatchData(wxCommandEvent& event);
|
||||
void AddEntry(wxCommandEvent& event);
|
||||
void RemoveEntry(wxCommandEvent& event);
|
||||
void UpdateEntryCtrls(PatchEngine::PatchEntry pE);
|
||||
bool UpdateTempEntryData(std::vector<PatchEngine::PatchEntry>::iterator iterEntry);
|
||||
|
||||
int selection, currentItem;
|
||||
std::vector<PatchEngine::PatchEntry> tempEntries;
|
||||
std::vector<PatchEngine::PatchEntry>::iterator itCurEntry;
|
||||
};
|
||||
|
Reference in New Issue
Block a user