ARCodeAddEdit.h 898 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. // Copyright 2008 Dolphin Emulator Project
  2. // Licensed under GPLv2+
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include <wx/dialog.h>
  6. class wxSpinButton;
  7. class wxSpinEvent;
  8. class wxTextCtrl;
  9. namespace ActionReplay { struct ARCode; }
  10. class CARCodeAddEdit : public wxDialog
  11. {
  12. public:
  13. CARCodeAddEdit(int _selection, std::vector<ActionReplay::ARCode>* _arCodes,
  14. wxWindow* parent,
  15. wxWindowID id = wxID_ANY,
  16. const wxString& title = _("Edit ActionReplay Code"),
  17. const wxPoint& pos = wxDefaultPosition,
  18. const wxSize& size = wxDefaultSize,
  19. long style = wxDEFAULT_DIALOG_STYLE);
  20. private:
  21. wxTextCtrl* EditCheatName;
  22. wxSpinButton* EntrySelection;
  23. wxTextCtrl* EditCheatCode;
  24. std::vector<ActionReplay::ARCode>* arCodes;
  25. void SaveCheatData(wxCommandEvent& event);
  26. void ChangeEntry(wxSpinEvent& event);
  27. void UpdateTextCtrl(ActionReplay::ARCode arCode);
  28. int selection;
  29. };