mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
GUI: Linux problem, wxAuiNotebook can't have wxFrame pages
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4133 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -34,7 +34,11 @@ class CBreakPointWindow
|
||||
|
||||
CBreakPointWindow(CCodeWindow* _pCodeWindow, wxWindow* parent, wxWindowID id = 1, const wxString& title = wxT("Breakpoints"),
|
||||
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(400, 250),
|
||||
#ifdef _WIN32
|
||||
long style = wxNO_BORDER);
|
||||
#else
|
||||
long style = wxDEFAULT_FRAME_STYLE | wxCLIP_CHILDREN | wxNO_FULL_REPAINT_ON_RESIZE);
|
||||
#endif
|
||||
|
||||
virtual ~CBreakPointWindow();
|
||||
|
||||
|
@ -149,13 +149,11 @@ END_EVENT_TABLE()
|
||||
|
||||
|
||||
|
||||
// Class, input event handler and host message handler
|
||||
CCodeWindow::CCodeWindow(const SCoreStartupParameter& _LocalCoreStartupParameter, CFrame *ParentObject, wxWindow* Parent,
|
||||
wxWindowID Id)
|
||||
: wxPanel(Parent, Id, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL | wxNO_BORDER, wxT("Dolphin-Debugger"))
|
||||
// Class
|
||||
CCodeWindow::CCodeWindow(const SCoreStartupParameter& _LocalCoreStartupParameter, CFrame *ParentObject, wxWindow* parent,
|
||||
wxWindowID id, const wxPoint& position, const wxSize& size, long style, const wxString& name)
|
||||
: wxPanel(parent, id, position, size, style, name)
|
||||
, Parent(ParentObject)
|
||||
/* Remember to initialize potential new controls with NULL there, otherwise m_dialog = true and
|
||||
things may crash */
|
||||
, m_RegisterWindow(NULL)
|
||||
, m_BreakpointWindow(NULL)
|
||||
, m_MemoryWindow(NULL)
|
||||
|
@ -44,8 +44,14 @@ class CCodeWindow
|
||||
{
|
||||
public:
|
||||
|
||||
CCodeWindow(const SCoreStartupParameter& _LocalCoreStartupParameter, CFrame *, wxWindow* parent,
|
||||
wxWindowID id = wxID_ANY);
|
||||
CCodeWindow(const SCoreStartupParameter& _LocalCoreStartupParameter, CFrame *,
|
||||
wxWindow* parent,
|
||||
wxWindowID id = wxID_ANY,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = wxTAB_TRAVERSAL | wxNO_BORDER,
|
||||
const wxString& name = wxT("Dolphin-Debugger")
|
||||
);
|
||||
/*
|
||||
CCodeWindow(const SCoreStartupParameter& _LocalCoreStartupParameter, wxWindow* parent,
|
||||
wxWindowID id = wxID_ANY,
|
||||
|
@ -365,10 +365,18 @@ void CCodeWindow::OnToggleBreakPointWindow(bool Show, int i)
|
||||
if (Show)
|
||||
{
|
||||
if (!m_BreakpointWindow) m_BreakpointWindow = new CBreakPointWindow(this, Parent);
|
||||
#ifdef _WIN32
|
||||
Parent->DoAddPage(m_BreakpointWindow, i, "Breakpoints");
|
||||
#else
|
||||
m_BreakpointWindow->Show();
|
||||
#endif
|
||||
}
|
||||
else // hide
|
||||
#ifdef _WIN32
|
||||
Parent->DoRemovePage(m_BreakpointWindow);
|
||||
#else
|
||||
if (m_BreakpointWindow) m_BreakpointWindow->Hide();
|
||||
#endif
|
||||
}
|
||||
|
||||
void CCodeWindow::OnToggleJitWindow(bool Show, int i)
|
||||
@ -376,10 +384,18 @@ void CCodeWindow::OnToggleJitWindow(bool Show, int i)
|
||||
if (Show)
|
||||
{
|
||||
if (!m_JitWindow) m_JitWindow = new CJitWindow(Parent);
|
||||
#ifdef _WIN32
|
||||
Parent->DoAddPage(m_JitWindow, i, "JIT");
|
||||
#else
|
||||
m_JitWindow->Show();
|
||||
#endif
|
||||
}
|
||||
else // hide
|
||||
#ifdef _WIN32
|
||||
Parent->DoRemovePage(m_JitWindow);
|
||||
#else
|
||||
if (m_JitWindow) m_JitWindow->Hide();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@ -388,10 +404,18 @@ void CCodeWindow::OnToggleMemoryWindow(bool Show, int i)
|
||||
if (Show)
|
||||
{
|
||||
if (!m_MemoryWindow) m_MemoryWindow = new CMemoryWindow(Parent);
|
||||
#ifdef _WIN32
|
||||
Parent->DoAddPage(m_MemoryWindow, i, "Memory");
|
||||
#else
|
||||
m_MemoryWindow->Show();
|
||||
#endif
|
||||
}
|
||||
else // hide
|
||||
#ifdef _WIN32
|
||||
Parent->DoRemovePage(m_MemoryWindow);
|
||||
#else
|
||||
if (m_MemoryWindow) m_MemoryWindow->Hide();
|
||||
#endif
|
||||
}
|
||||
|
||||
//Toggle Sound Debugging Window
|
||||
|
@ -49,7 +49,11 @@ public:
|
||||
const wxString& title = _T("JIT block viewer"),
|
||||
const wxPoint& pos = wxPoint(950, 100),
|
||||
const wxSize& size = wxSize(400, 500),
|
||||
#ifdef _WIN32
|
||||
long style = wxNO_BORDER);
|
||||
#else
|
||||
long style = wxDEFAULT_FRAME_STYLE | wxCLIP_CHILDREN | wxNO_FULL_REPAINT_ON_RESIZE);
|
||||
#endif
|
||||
|
||||
~CJitWindow();
|
||||
|
||||
|
@ -41,7 +41,11 @@ class CMemoryWindow
|
||||
const wxString& title = _T("Dolphin-Memory"),
|
||||
const wxPoint& pos = wxPoint(950, 100),
|
||||
const wxSize& size = wxSize(400, 500),
|
||||
#ifdef _WIN32
|
||||
long style = wxNO_BORDER);
|
||||
#else
|
||||
long style = wxDEFAULT_FRAME_STYLE | wxCLIP_CHILDREN | wxNO_FULL_REPAINT_ON_RESIZE);
|
||||
#endif
|
||||
|
||||
~CMemoryWindow();
|
||||
|
||||
|
@ -22,13 +22,13 @@
|
||||
|
||||
extern const char* GetGRPName(unsigned int index);
|
||||
|
||||
BEGIN_EVENT_TABLE(CRegisterWindow, wxDialog)
|
||||
BEGIN_EVENT_TABLE(CRegisterWindow, wxPanel)
|
||||
EVT_CLOSE(CRegisterWindow::OnClose)
|
||||
END_EVENT_TABLE()
|
||||
|
||||
|
||||
CRegisterWindow::CRegisterWindow(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& position, const wxSize& size, long style)
|
||||
: wxDialog(parent, id, title, position, size, style)
|
||||
: wxPanel(parent, id, position, size, style, title)
|
||||
, m_GPRGridView(NULL)
|
||||
{
|
||||
CreateGUIControls();
|
||||
|
@ -22,14 +22,16 @@ class CRegisterView;
|
||||
class IniFile;
|
||||
|
||||
class CRegisterWindow
|
||||
: public wxDialog
|
||||
: public wxPanel
|
||||
{
|
||||
public:
|
||||
CRegisterWindow(wxWindow* parent, wxWindowID id = 1,
|
||||
const wxString& title = wxT("Registers"),
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = wxNO_BORDER);
|
||||
CRegisterWindow(wxWindow* parent,
|
||||
wxWindowID id = wxID_ANY,
|
||||
const wxString& name = wxT("Registers"),
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = wxTAB_TRAVERSAL | wxNO_BORDER
|
||||
);
|
||||
|
||||
virtual ~CRegisterWindow();
|
||||
|
||||
|
Reference in New Issue
Block a user