summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/Cheats/CreateCodeDialog.h
blob: 8eae79e5640b577982657b38d6e5b3275a6c128a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright 2014 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.

#pragma once

#include <wx/dialog.h>

#include "Common/CommonTypes.h"
#include "Core/ActionReplay.h"

class wxCheckBox;
class wxTextCtrl;

class CreateCodeDialog final : public wxDialog
{
public:
  CreateCodeDialog(wxWindow* const parent, const u32 address);

private:
  const u32 m_code_address;

  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);
};