2016-07-23 01:05:04 +00:00
|
|
|
// Copyright 2008 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <wx/dialog.h>
|
|
|
|
|
|
|
|
#include "Core/ActionReplay.h"
|
|
|
|
|
|
|
|
class wxTextCtrl;
|
|
|
|
|
|
|
|
class ARCodeAddEdit final : public wxDialog
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ARCodeAddEdit(ActionReplay::ARCode code, wxWindow* parent, wxWindowID id = wxID_ANY,
|
|
|
|
const wxString& title = _("Edit ActionReplay Code"),
|
|
|
|
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
|
|
|
|
long style = wxDEFAULT_DIALOG_STYLE);
|
|
|
|
|
|
|
|
const ActionReplay::ARCode& GetCode() const { return m_code; }
|
2018-04-12 12:18:04 +00:00
|
|
|
|
2016-07-23 01:05:04 +00:00
|
|
|
private:
|
|
|
|
void CreateGUI();
|
|
|
|
void SaveCheatData(wxCommandEvent& event);
|
|
|
|
|
|
|
|
ActionReplay::ARCode m_code;
|
|
|
|
wxTextCtrl* m_txt_cheat_name;
|
|
|
|
wxTextCtrl* m_cheat_codes;
|
|
|
|
};
|