summaryrefslogtreecommitdiff
path: root/Source/Core/DebuggerWX/src/BreakpointWindow.h
diff options
context:
space:
mode:
authorfires.gc <fires.gc@gmail.com>2008-07-17 20:08:01 +0000
committerfires.gc <fires.gc@gmail.com>2008-07-17 20:08:01 +0000
commitfa6bd5d2e28892a5ce63b8b4f3e7ce18e8a200b6 (patch)
tree3249d5a78ba4d0fc7f1b5894f20fe8621a46e59f /Source/Core/DebuggerWX/src/BreakpointWindow.h
parentd23af1a15e07a66bf88352facd527bed6df3828c (diff)
added first iteration of breakpoint view for the debugger
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@21 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DebuggerWX/src/BreakpointWindow.h')
-rw-r--r--Source/Core/DebuggerWX/src/BreakpointWindow.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/Source/Core/DebuggerWX/src/BreakpointWindow.h b/Source/Core/DebuggerWX/src/BreakpointWindow.h
new file mode 100644
index 0000000000..6b7caf3f1b
--- /dev/null
+++ b/Source/Core/DebuggerWX/src/BreakpointWindow.h
@@ -0,0 +1,65 @@
+//__________________________________________________________________________________________________
+// F|RES and ector 2003-2008
+//
+
+#ifndef __BREAKPOINTWINDOW_h__
+#define __BREAKPOINTWINDOW_h__
+
+class CBreakPointView;
+
+#undef BREAKPOINT_WINDOW_STYLE
+#define BREAKPOINT_WINDOW_STYLE wxCAPTION | wxSYSTEM_MENU | wxCLOSE_BOX | wxRESIZE_BORDER
+
+class CBreakPointWindow
+ : public wxFrame
+{
+ private:
+
+ DECLARE_EVENT_TABLE();
+
+ public:
+
+ CBreakPointWindow(wxWindow* parent, wxWindowID id = 1, const wxString& title = wxT("Breakpoints"),
+ 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;
+ 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);
+};
+
+#endif