mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 13:57:57 -07:00
efb7b1ceca
The old one wasn't very optimal because not only the user would likely want to enter an address instead of a range, but it also made entering just one address confusing (you had to have the same value on both start and end). Also, you should only chose one option between read, write or both, there is no point to not have any. This is why I made more clear how to add an address and it is the default option using radio buttons and I also made the action flags and the flags to be radio buttons.
39 lines
913 B
C++
39 lines
913 B
C++
// Copyright 2008 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <wx/dialog.h>
|
|
|
|
class CBreakPointWindow;
|
|
class wxRadioButton;
|
|
class wxStaticText;
|
|
class wxTextCtrl;
|
|
|
|
class MemoryCheckDlg : public wxDialog
|
|
{
|
|
public:
|
|
MemoryCheckDlg(CBreakPointWindow* parent);
|
|
|
|
private:
|
|
CBreakPointWindow* m_parent;
|
|
wxStaticText* m_textAddress;
|
|
wxStaticText* m_textStartAddress;
|
|
wxStaticText* m_textEndAddress;
|
|
wxRadioButton* m_radioLog;
|
|
wxRadioButton* m_radioBreak;
|
|
wxRadioButton* m_radioBreakLog;
|
|
wxRadioButton* m_radioRead;
|
|
wxRadioButton* m_radioWrite;
|
|
wxRadioButton* m_radioReadWrite;
|
|
wxRadioButton* m_radioAddress;
|
|
wxRadioButton* m_radioRange;
|
|
wxTextCtrl* m_pEditAddress;
|
|
wxTextCtrl* m_pEditEndAddress;
|
|
wxTextCtrl* m_pEditStartAddress;
|
|
|
|
void OnRadioButtonClick(wxCommandEvent& event);
|
|
void OnOK(wxCommandEvent& event);
|
|
};
|