2013-04-17 21:43:35 -06:00
|
|
|
// Copyright 2013 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2
|
|
|
|
// Refer to the license.txt file included.
|
2008-12-07 21:46:09 -07:00
|
|
|
|
2014-02-10 11:54:46 -07:00
|
|
|
#pragma once
|
2008-12-07 21:46:09 -07:00
|
|
|
|
2014-02-22 15:36:30 -07:00
|
|
|
#include <wx/chartype.h>
|
|
|
|
#include <wx/defs.h>
|
|
|
|
#include <wx/event.h>
|
|
|
|
#include <wx/gdicmn.h>
|
|
|
|
#include <wx/panel.h>
|
|
|
|
#include <wx/string.h>
|
|
|
|
#include <wx/windowid.h>
|
|
|
|
#include <wx/aui/framemanager.h>
|
2011-02-27 16:03:08 -07:00
|
|
|
|
2008-12-07 21:46:09 -07:00
|
|
|
class CBreakPointView;
|
|
|
|
class CCodeWindow;
|
2014-02-22 15:36:30 -07:00
|
|
|
class wxListEvent;
|
|
|
|
class wxWindow;
|
2008-12-07 21:46:09 -07:00
|
|
|
|
2011-02-27 16:03:08 -07:00
|
|
|
class CBreakPointWindow : public wxPanel
|
2008-12-07 21:46:09 -07:00
|
|
|
{
|
2011-02-25 02:35:56 -07:00
|
|
|
public:
|
|
|
|
|
|
|
|
CBreakPointWindow(CCodeWindow* _pCodeWindow,
|
|
|
|
wxWindow* parent,
|
|
|
|
wxWindowID id = wxID_ANY,
|
2014-05-17 11:17:28 -06:00
|
|
|
const wxString& title = _("Breakpoints"),
|
2011-02-25 02:35:56 -07:00
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = wxTAB_TRAVERSAL | wxBORDER_NONE);
|
2011-02-27 16:03:08 -07:00
|
|
|
~CBreakPointWindow();
|
2011-02-25 02:35:56 -07:00
|
|
|
|
|
|
|
void NotifyUpdate();
|
|
|
|
|
2011-02-27 16:03:08 -07:00
|
|
|
void OnDelete(wxCommandEvent& WXUNUSED(event));
|
|
|
|
void OnClear(wxCommandEvent& WXUNUSED(event));
|
|
|
|
void OnAddBreakPoint(wxCommandEvent& WXUNUSED(event));
|
|
|
|
void OnAddMemoryCheck(wxCommandEvent& WXUNUSED(event));
|
|
|
|
void Event_SaveAll(wxCommandEvent& WXUNUSED(event));
|
2011-02-25 16:15:53 -07:00
|
|
|
void SaveAll();
|
2011-02-27 16:03:08 -07:00
|
|
|
void LoadAll(wxCommandEvent& WXUNUSED(event));
|
2011-02-25 16:15:53 -07:00
|
|
|
|
2011-02-25 02:35:56 -07:00
|
|
|
private:
|
|
|
|
DECLARE_EVENT_TABLE();
|
|
|
|
|
2011-02-27 16:03:08 -07:00
|
|
|
wxAuiManager m_mgr;
|
2011-02-25 02:35:56 -07:00
|
|
|
CBreakPointView* m_BreakPointListView;
|
|
|
|
CCodeWindow* m_pCodeWindow;
|
|
|
|
|
|
|
|
void OnClose(wxCloseEvent& event);
|
|
|
|
void OnSelectBP(wxListEvent& event);
|
2008-12-07 21:46:09 -07:00
|
|
|
};
|