mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 22:09:19 -07:00
e8cb4119b8
This removes a Dolphin-specific patch to the wxWidgets3 code for the following reasons: * Calling wxWindowGTK::DoSetSize on a top-level window can end up calling wxTopLevelWindowGTK::DoMoveWindow, which triggers an assert because it is not supposed to be called for a top-level wxWindow. * We should not be patching the wxWidgets code because that means the toolbars will still be broken if someone builds without using the WX that is in our Externals. Instead, we now use a derived class for wxAuiToolBar and override DoSetSize() to remove the problematic behaviour to get the same effect (fixing toolbars) but without changing Externals code and without causing asserts and other issues.
68 lines
1.4 KiB
C++
68 lines
1.4 KiB
C++
// Copyright 2009 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <wx/aui/framemanager.h>
|
|
#include <wx/panel.h>
|
|
|
|
#include "Common/CommonTypes.h"
|
|
#include "Core/HW/DSPLLE/DSPDebugInterface.h"
|
|
|
|
class DSPRegisterView;
|
|
class CCodeView;
|
|
class CMemoryView;
|
|
class wxAuiNotebook;
|
|
class DolphinAuiToolBar;
|
|
class wxListBox;
|
|
|
|
class DSPDebuggerLLE : public wxPanel
|
|
{
|
|
public:
|
|
DSPDebuggerLLE(wxWindow* parent, wxWindowID id = wxID_ANY);
|
|
virtual ~DSPDebuggerLLE();
|
|
|
|
void Update() override;
|
|
|
|
private:
|
|
enum
|
|
{
|
|
ID_TOOLBAR = 1000,
|
|
ID_RUNTOOL,
|
|
ID_STEPTOOL,
|
|
ID_SHOWPCTOOL,
|
|
};
|
|
|
|
DSPDebugInterface debug_interface;
|
|
u64 m_CachedStepCounter;
|
|
|
|
// GUI updaters
|
|
void UpdateDisAsmListView();
|
|
void UpdateRegisterFlags();
|
|
void UpdateSymbolMap();
|
|
void UpdateState();
|
|
|
|
// GUI items
|
|
wxAuiManager m_mgr;
|
|
DolphinAuiToolBar* m_Toolbar;
|
|
CCodeView* m_CodeView;
|
|
CMemoryView* m_MemView;
|
|
DSPRegisterView* m_Regs;
|
|
wxListBox* m_SymbolList;
|
|
wxTextCtrl* m_addr_txtctrl;
|
|
wxAuiNotebook* m_MainNotebook;
|
|
|
|
void OnClose(wxCloseEvent& event);
|
|
void OnChangeState(wxCommandEvent& event);
|
|
// void OnRightClick(wxListEvent& event);
|
|
// void OnDoubleClick(wxListEvent& event);
|
|
void OnAddrBoxChange(wxCommandEvent& event);
|
|
void OnSymbolListChange(wxCommandEvent& event);
|
|
|
|
bool JumpToAddress(u16 addr);
|
|
|
|
void FocusOnPC();
|
|
// void UnselectAll();
|
|
};
|