2009-07-28 15:32:10 -06:00
|
|
|
// Copyright (C) 2003 Dolphin Project.
|
2008-12-07 21:46:09 -07:00
|
|
|
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, version 2.0.
|
|
|
|
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License 2.0 for more details.
|
|
|
|
|
|
|
|
// A copy of the GPL 2.0 should have been included with the program.
|
|
|
|
// If not, see http://www.gnu.org/licenses/
|
|
|
|
|
|
|
|
// Official SVN repository and contact information can be found at
|
|
|
|
// http://code.google.com/p/dolphin-emu/
|
|
|
|
|
|
|
|
#ifndef __BREAKPOINTWINDOW_h__
|
|
|
|
#define __BREAKPOINTWINDOW_h__
|
|
|
|
|
2009-09-27 15:28:09 -06:00
|
|
|
#include <wx/listctrl.h>
|
|
|
|
|
2008-12-07 21:46:09 -07:00
|
|
|
class CBreakPointView;
|
2009-09-27 15:28:09 -06:00
|
|
|
class CBreakPointBar;
|
2008-12-07 21:46:09 -07:00
|
|
|
class CCodeWindow;
|
|
|
|
class wxListEvent;
|
|
|
|
class IniFile;
|
|
|
|
|
2009-09-27 15:28:09 -06:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
IDM_DELETE = 0,
|
|
|
|
IDM_CLEAR,
|
|
|
|
IDM_ADD_BREAKPOINT,
|
|
|
|
IDM_ADD_BREAKPOINTMANY,
|
|
|
|
IDM_ADD_MEMORYCHECK,
|
|
|
|
IDM_ADD_MEMORYCHECKMANY
|
|
|
|
};
|
|
|
|
|
2008-12-07 21:46:09 -07:00
|
|
|
class CBreakPointWindow
|
2009-09-07 14:51:02 -06:00
|
|
|
: public wxPanel
|
2008-12-07 21:46:09 -07:00
|
|
|
{
|
|
|
|
private:
|
|
|
|
|
|
|
|
DECLARE_EVENT_TABLE();
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
CBreakPointWindow(CCodeWindow* _pCodeWindow, wxWindow* parent, wxWindowID id = 1, const wxString& title = wxT("Breakpoints"),
|
2009-09-07 14:51:02 -06:00
|
|
|
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(400, 250),
|
|
|
|
long style = wxNO_BORDER);
|
2008-12-07 21:46:09 -07:00
|
|
|
|
|
|
|
void NotifyUpdate();
|
2009-09-27 15:28:09 -06:00
|
|
|
void OnDelete();
|
|
|
|
void OnClear();
|
|
|
|
void OnAddBreakPoint();
|
|
|
|
void OnAddBreakPointMany();
|
|
|
|
void OnAddMemoryCheck();
|
|
|
|
void OnAddMemoryCheckMany();
|
2008-12-07 21:46:09 -07:00
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
2009-08-24 19:50:27 -06:00
|
|
|
ID_TOOLBAR = 501,
|
2008-12-07 21:46:09 -07:00
|
|
|
ID_BPS = 1002,
|
|
|
|
};
|
|
|
|
|
2009-09-27 15:28:09 -06:00
|
|
|
CBreakPointBar* m_BreakPointBar;
|
2008-12-07 21:46:09 -07:00
|
|
|
CBreakPointView* m_BreakPointListView;
|
|
|
|
CCodeWindow* m_pCodeWindow;
|
|
|
|
|
2009-09-27 15:28:09 -06:00
|
|
|
// void RecreateToolbar();
|
|
|
|
// void PopulateToolbar(wxToolBar* toolBar);
|
|
|
|
// void InitBitmaps();
|
2008-12-07 21:46:09 -07:00
|
|
|
void CreateGUIControls();
|
|
|
|
|
2009-09-27 15:28:09 -06:00
|
|
|
void OnSelectItem(wxListEvent& event);
|
|
|
|
void OnClose(wxCloseEvent& event);
|
2008-12-07 21:46:09 -07:00
|
|
|
void OnActivated(wxListEvent& event);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|