2008-07-17 20:08:01 +00:00
|
|
|
//__________________________________________________________________________________________________
|
|
|
|
// F|RES and ector 2003-2008
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef __BREAKPOINTWINDOW_h__
|
|
|
|
#define __BREAKPOINTWINDOW_h__
|
|
|
|
|
|
|
|
class CBreakPointView;
|
2008-07-17 21:46:34 +00:00
|
|
|
class CCodeWindow;
|
|
|
|
class wxListEvent;
|
2008-07-17 20:08:01 +00:00
|
|
|
|
|
|
|
#undef BREAKPOINT_WINDOW_STYLE
|
|
|
|
#define BREAKPOINT_WINDOW_STYLE wxCAPTION | wxSYSTEM_MENU | wxCLOSE_BOX | wxRESIZE_BORDER
|
|
|
|
|
|
|
|
class CBreakPointWindow
|
|
|
|
: public wxFrame
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
|
|
|
|
DECLARE_EVENT_TABLE();
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
2008-07-17 21:46:34 +00:00
|
|
|
CBreakPointWindow(CCodeWindow* _pCodeWindow, wxWindow* parent, wxWindowID id = 1, const wxString& title = wxT("Breakpoints"),
|
2008-07-17 20:08:01 +00:00
|
|
|
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(400, 250),
|
|
|
|
long style = BREAKPOINT_WINDOW_STYLE);
|
|
|
|
|
|
|
|
virtual ~CBreakPointWindow();
|
|
|
|
|
|
|
|
void NotifyUpdate();
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
ID_TOOLBAR = 500,
|
|
|
|
ID_BPS = 1002,
|
|
|
|
IDM_DELETE,
|
|
|
|
IDM_ADD_BREAKPOINT,
|
|
|
|
IDM_ADD_MEMORYCHECK
|
|
|
|
};
|
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
Toolbar_Delete,
|
|
|
|
Toolbar_Add_BreakPoint,
|
|
|
|
Toolbar_Add_Memcheck,
|
|
|
|
Bitmaps_max
|
|
|
|
};
|
|
|
|
|
|
|
|
CBreakPointView* m_BreakPointListView;
|
2008-07-17 21:46:34 +00:00
|
|
|
CCodeWindow* m_pCodeWindow;
|
|
|
|
|
2008-07-17 20:08:01 +00:00
|
|
|
wxBitmap m_Bitmaps[Bitmaps_max];
|
|
|
|
|
|
|
|
void OnClose(wxCloseEvent& event);
|
|
|
|
void CreateGUIControls();
|
|
|
|
|
|
|
|
void RecreateToolbar();
|
|
|
|
void PopulateToolbar(wxToolBar* toolBar);
|
|
|
|
void InitBitmaps();
|
|
|
|
|
|
|
|
void OnDelete(wxCommandEvent& event);
|
|
|
|
void OnAddBreakPoint(wxCommandEvent& event);
|
|
|
|
void OnAddMemoryCheck(wxCommandEvent& event);
|
2008-07-17 21:46:34 +00:00
|
|
|
void OnActivated(wxListEvent& event);
|
2008-07-17 20:08:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|