2014-10-18 21:32:50 +00:00
|
|
|
// Copyright 2014 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <wx/dialog.h>
|
2014-10-19 01:28:36 +00:00
|
|
|
#include <wx/event.h>
|
2014-10-18 21:32:50 +00:00
|
|
|
|
|
|
|
#include "Common/CommonTypes.h"
|
2015-02-24 23:32:17 +00:00
|
|
|
#include "Core/ActionReplay.h"
|
2014-10-18 21:32:50 +00:00
|
|
|
|
|
|
|
class wxCheckBox;
|
|
|
|
class wxTextCtrl;
|
|
|
|
class wxWindow;
|
|
|
|
|
2014-10-19 01:28:36 +00:00
|
|
|
wxDECLARE_EVENT(UPDATE_CHEAT_LIST_EVENT, wxCommandEvent);
|
|
|
|
|
2014-10-18 21:32:50 +00:00
|
|
|
class CreateCodeDialog final : public wxDialog
|
|
|
|
{
|
|
|
|
public:
|
2015-03-06 11:26:40 +00:00
|
|
|
CreateCodeDialog(wxWindow* const parent, const u32 address, std::vector<ActionReplay::ARCode>* _arCodes);
|
2014-10-18 21:32:50 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
const u32 m_code_address;
|
2015-03-06 11:26:40 +00:00
|
|
|
std::vector<ActionReplay::ARCode>* arCodes;
|
2014-10-18 21:32:50 +00:00
|
|
|
|
|
|
|
wxTextCtrl* m_textctrl_name;
|
|
|
|
wxTextCtrl* m_textctrl_code;
|
|
|
|
wxTextCtrl* m_textctrl_value;
|
|
|
|
wxCheckBox* m_checkbox_use_hex;
|
|
|
|
|
|
|
|
void PressOK(wxCommandEvent&);
|
|
|
|
void PressCancel(wxCommandEvent&);
|
|
|
|
void OnEvent_Close(wxCloseEvent& ev);
|
|
|
|
};
|