diff options
| author | skidau <skidau@gmail.com> | 2014-11-08 12:26:52 +1100 |
|---|---|---|
| committer | skidau <skidau@gmail.com> | 2014-11-08 12:26:52 +1100 |
| commit | a2fa679b2e030259c0e5de8fddf89b1900c75b90 (patch) | |
| tree | 527ac6b09bb88743100f492d316e0e26b0489de4 /Source/Core/DolphinWX/Debugger/BreakpointWindow.cpp | |
| parent | 35b01c6616766386ba306ac6010fa047c94c7d6d (diff) | |
| parent | ee22d091a0058eb12acad673bfc4e7346a195484 (diff) | |
Merge pull request #1507 from lioncash/event
DolphinWX: Eliminate most usages of event tables in the debugger
Diffstat (limited to 'Source/Core/DolphinWX/Debugger/BreakpointWindow.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/Debugger/BreakpointWindow.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Source/Core/DolphinWX/Debugger/BreakpointWindow.cpp b/Source/Core/DolphinWX/Debugger/BreakpointWindow.cpp index 4e22b8fbdf..e45a172e8f 100644 --- a/Source/Core/DolphinWX/Debugger/BreakpointWindow.cpp +++ b/Source/Core/DolphinWX/Debugger/BreakpointWindow.cpp @@ -96,21 +96,19 @@ private: wxBitmap m_Bitmaps[Num_Bitmaps]; }; -BEGIN_EVENT_TABLE(CBreakPointWindow, wxPanel) - EVT_CLOSE(CBreakPointWindow::OnClose) - EVT_LIST_ITEM_SELECTED(wxID_ANY, CBreakPointWindow::OnSelectBP) -END_EVENT_TABLE() - CBreakPointWindow::CBreakPointWindow(CCodeWindow* _pCodeWindow, wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& position, const wxSize& size, long style) : wxPanel(parent, id, position, size, style, title) , m_pCodeWindow(_pCodeWindow) { + Bind(wxEVT_CLOSE_WINDOW, &CBreakPointWindow::OnClose, this); + m_mgr.SetManagedWindow(this); m_mgr.SetFlags(wxAUI_MGR_DEFAULT | wxAUI_MGR_LIVE_RESIZE); m_BreakPointListView = new CBreakPointView(this, wxID_ANY); + m_BreakPointListView->Bind(wxEVT_LIST_ITEM_SELECTED, &CBreakPointWindow::OnSelectBP, this); m_mgr.AddPane(new CBreakPointBar(this, wxID_ANY), wxAuiPaneInfo().ToolbarPane().Top(). LeftDockable(true).RightDockable(true).BottomDockable(false).Floatable(false)); |
