summaryrefslogtreecommitdiff
path: root/Source/Core/DebuggerWX/Src/CodeWindow.h
diff options
context:
space:
mode:
authorbushing <bushing@gmail.com>2008-12-08 04:46:09 +0000
committerbushing <bushing@gmail.com>2008-12-08 04:46:09 +0000
commit30c883bcfc65761dc9fb61fea16a25fb61a7e220 (patch)
treef0e77927cfb598e860faf386c7c8089c38a9b726 /Source/Core/DebuggerWX/Src/CodeWindow.h
parente6fe5ec42f025a710918c1aaf8643da36a13bb3e (diff)
set svn:eol-style=native for **.h
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1438 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DebuggerWX/Src/CodeWindow.h')
-rw-r--r--Source/Core/DebuggerWX/Src/CodeWindow.h414
1 files changed, 207 insertions, 207 deletions
diff --git a/Source/Core/DebuggerWX/Src/CodeWindow.h b/Source/Core/DebuggerWX/Src/CodeWindow.h
index 6c7b631a1b..5d8e4ffb0f 100644
--- a/Source/Core/DebuggerWX/Src/CodeWindow.h
+++ b/Source/Core/DebuggerWX/Src/CodeWindow.h
@@ -1,207 +1,207 @@
-// Copyright (C) 2003-2008 Dolphin Project.
-
-// 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 CODEWINDOW_H_
-#define CODEWINDOW_H_
-
-#include <wx/dialog.h>
-#include <wx/textctrl.h>
-#include <wx/listbox.h>
-#include "Debugger.h"
-#include "CodeView.h"
-#include "Thread.h"
-
-#include "CoreParameter.h"
-
-class CRegisterWindow;
-class CLogWindow;
-class CBreakPointWindow;
-class CMemoryWindow;
-class CJitWindow;
-class CCodeView;
-class IniFile;
-
-class CCodeWindow
- : public wxFrame
-{
- public:
-
- CCodeWindow(const SCoreStartupParameter& _LocalCoreStartupParameter, wxWindow* parent,
- wxWindowID id = wxID_ANY,
- const wxString& title = _T("Dolphin-Debugger"),
- const wxPoint& pos = wxPoint(950, 100),
- const wxSize& size = wxSize(400, 500),
- long style = wxDEFAULT_FRAME_STYLE | wxCLIP_CHILDREN | wxNO_FULL_REPAINT_ON_RESIZE);
-
- ~CCodeWindow();
-
- void Load_(IniFile &file);
- void Load(IniFile &file);
- void Save(IniFile &file) const;
-
- void Update();
- void NotifyMapLoaded();
-
-
- bool UseInterpreter();
- bool AutomaticStart();
- bool UseDualCore();
- void JumpToAddress(u32 _Address);
-
- private:
-
- enum
- {
- ID_TOOLBAR = 500,
- IDM_CODEVIEW,
- IDM_DEBUG_GO,
- IDM_STEP,
- IDM_STEPOVER,
- IDM_SKIP,
- IDM_SETPC,
- IDM_GOTOPC,
- IDM_ADDRBOX,
- IDM_CALLSTACKLIST,
- IDM_CALLERSLIST,
- IDM_CALLSLIST,
- IDM_SYMBOLLIST,
- IDM_INTERPRETER,
- IDM_AUTOMATICSTART,
-
- IDM_JITUNLIMITED, IDM_JITOFF, // jit
- IDM_JITLSOFF, IDM_JITLSLXZOFF, IDM_JITLSLWZOFF, IDM_JITLSLBZXOFF,
- IDM_JITLSPOFF, IDM_JITLSFOFF,
- IDM_JITIOFF,
- IDM_JITFPOFF,
- IDM_JITPOFF,
- IDM_JITSROFF,
-
- IDM_DUALCORE,
- IDM_LOGWINDOW,
- IDM_REGISTERWINDOW,
- IDM_BREAKPOINTWINDOW,
- IDM_MEMORYWINDOW,
- IDM_SOUNDWINDOW, // sound
- IDM_VIDEOWINDOW, // video
- IDM_JITWINDOW, // jit
- IDM_SCANFUNCTIONS,
- IDM_LOGINSTRUCTIONS,
- IDM_LOADMAPFILE,
- IDM_SAVEMAPFILE, IDM_SAVEMAPFILEWITHCODES,
- IDM_CLEARSYMBOLS,
- IDM_CLEANSYMBOLS,
- IDM_CREATESIGNATUREFILE,
- IDM_USESIGNATUREFILE,
- IDM_USESYMBOLFILE,
- IDM_PATCHHLEFUNCTIONS,
- IDM_CLEARCODECACHE,
- IDM_PROFILEBLOCKS,
- IDM_WRITEPROFILE,
- };
-
- enum
- {
- Toolbar_DebugGo,
- Toolbar_Pause,
- Toolbar_Step,
- Toolbar_StepOver,
- Toolbar_Skip,
- Toolbar_GotoPC,
- Toolbar_SetPC,
- Bitmaps_max
- };
-
- // Settings
- bool bLogWindow;
- bool bRegisterWindow;
- bool bBreakpointWindow;
- bool bMemoryWindow;
- bool bJitWindow;
- bool bSoundWindow;
- bool bVideoWindow;
- bool bAutomaticStart;
-
- // sub dialogs
- CLogWindow* m_LogWindow;
- CRegisterWindow* m_RegisterWindow;
- CBreakPointWindow* m_BreakpointWindow;
- CMemoryWindow* m_MemoryWindow;
- CJitWindow* m_JitWindow;
-
- wxMenuItem* jitunlimited, *jitoff;
- wxMenuItem* jitlsoff, *jitlslxzoff, *jitlslwzoff, *jitlslbzxoff;
- wxMenuItem* jitlspoff;
- wxMenuItem* jitlsfoff;
- wxMenuItem* jitfpoff;
- wxMenuItem* jitioff;
- wxMenuItem* jitpoff;
- wxMenuItem* jitsroff;
-
- CCodeView* codeview;
- wxListBox* callstack;
- wxListBox* symbols;
- wxListBox* callers;
- wxListBox* calls;
- Common::Event sync_event;
-
- wxBitmap m_Bitmaps[Bitmaps_max];
-
- DECLARE_EVENT_TABLE()
-
- void OnSymbolListChange(wxCommandEvent& event);
- void OnSymbolListContextMenu(wxContextMenuEvent& event);
- void OnCallstackListChange(wxCommandEvent& event);
- void OnCallersListChange(wxCommandEvent& event);
- void OnCallsListChange(wxCommandEvent& event);
- void OnCodeStep(wxCommandEvent& event);
- void OnCodeViewChange(wxCommandEvent &event);
-
- void SingleCPUStep();
-
- void OnAddrBoxChange(wxCommandEvent& event);
-
- void OnToggleRegisterWindow(wxCommandEvent& event);
- void OnToggleBreakPointWindow(wxCommandEvent& event);
- void OnToggleLogWindow(wxCommandEvent& event);
- void OnToggleMemoryWindow(wxCommandEvent& event);
- void OnToggleJitWindow(wxCommandEvent& event);
- void OnToggleSoundWindow(wxCommandEvent& event);
- void OnToggleVideoWindow(wxCommandEvent& event);
-
- void OnHostMessage(wxCommandEvent& event);
- void OnSymbolsMenu(wxCommandEvent& event);
- void OnJitMenu(wxCommandEvent& event);
- void OnProfilerMenu(wxCommandEvent& event);
-
- void OnInterpreter(wxCommandEvent& event); // cpu mode menu
- void OnAutomaticStart(wxCommandEvent& event);
- void OnJITOff(wxCommandEvent& event);
-
- void CreateMenu(const SCoreStartupParameter& _LocalCoreStartupParameter);
-
- void UpdateButtonStates();
- void UpdateLists();
-
- void RecreateToolbar();
- void PopulateToolbar(wxToolBar* toolBar);
- void InitBitmaps();
- void CreateGUIControls(const SCoreStartupParameter& _LocalCoreStartupParameter);
- void OnKeyDown(wxKeyEvent& event);
-};
-
-#endif /*CODEWINDOW_*/
+// Copyright (C) 2003-2008 Dolphin Project.
+
+// 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 CODEWINDOW_H_
+#define CODEWINDOW_H_
+
+#include <wx/dialog.h>
+#include <wx/textctrl.h>
+#include <wx/listbox.h>
+#include "Debugger.h"
+#include "CodeView.h"
+#include "Thread.h"
+
+#include "CoreParameter.h"
+
+class CRegisterWindow;
+class CLogWindow;
+class CBreakPointWindow;
+class CMemoryWindow;
+class CJitWindow;
+class CCodeView;
+class IniFile;
+
+class CCodeWindow
+ : public wxFrame
+{
+ public:
+
+ CCodeWindow(const SCoreStartupParameter& _LocalCoreStartupParameter, wxWindow* parent,
+ wxWindowID id = wxID_ANY,
+ const wxString& title = _T("Dolphin-Debugger"),
+ const wxPoint& pos = wxPoint(950, 100),
+ const wxSize& size = wxSize(400, 500),
+ long style = wxDEFAULT_FRAME_STYLE | wxCLIP_CHILDREN | wxNO_FULL_REPAINT_ON_RESIZE);
+
+ ~CCodeWindow();
+
+ void Load_(IniFile &file);
+ void Load(IniFile &file);
+ void Save(IniFile &file) const;
+
+ void Update();
+ void NotifyMapLoaded();
+
+
+ bool UseInterpreter();
+ bool AutomaticStart();
+ bool UseDualCore();
+ void JumpToAddress(u32 _Address);
+
+ private:
+
+ enum
+ {
+ ID_TOOLBAR = 500,
+ IDM_CODEVIEW,
+ IDM_DEBUG_GO,
+ IDM_STEP,
+ IDM_STEPOVER,
+ IDM_SKIP,
+ IDM_SETPC,
+ IDM_GOTOPC,
+ IDM_ADDRBOX,
+ IDM_CALLSTACKLIST,
+ IDM_CALLERSLIST,
+ IDM_CALLSLIST,
+ IDM_SYMBOLLIST,
+ IDM_INTERPRETER,
+ IDM_AUTOMATICSTART,
+
+ IDM_JITUNLIMITED, IDM_JITOFF, // jit
+ IDM_JITLSOFF, IDM_JITLSLXZOFF, IDM_JITLSLWZOFF, IDM_JITLSLBZXOFF,
+ IDM_JITLSPOFF, IDM_JITLSFOFF,
+ IDM_JITIOFF,
+ IDM_JITFPOFF,
+ IDM_JITPOFF,
+ IDM_JITSROFF,
+
+ IDM_DUALCORE,
+ IDM_LOGWINDOW,
+ IDM_REGISTERWINDOW,
+ IDM_BREAKPOINTWINDOW,
+ IDM_MEMORYWINDOW,
+ IDM_SOUNDWINDOW, // sound
+ IDM_VIDEOWINDOW, // video
+ IDM_JITWINDOW, // jit
+ IDM_SCANFUNCTIONS,
+ IDM_LOGINSTRUCTIONS,
+ IDM_LOADMAPFILE,
+ IDM_SAVEMAPFILE, IDM_SAVEMAPFILEWITHCODES,
+ IDM_CLEARSYMBOLS,
+ IDM_CLEANSYMBOLS,
+ IDM_CREATESIGNATUREFILE,
+ IDM_USESIGNATUREFILE,
+ IDM_USESYMBOLFILE,
+ IDM_PATCHHLEFUNCTIONS,
+ IDM_CLEARCODECACHE,
+ IDM_PROFILEBLOCKS,
+ IDM_WRITEPROFILE,
+ };
+
+ enum
+ {
+ Toolbar_DebugGo,
+ Toolbar_Pause,
+ Toolbar_Step,
+ Toolbar_StepOver,
+ Toolbar_Skip,
+ Toolbar_GotoPC,
+ Toolbar_SetPC,
+ Bitmaps_max
+ };
+
+ // Settings
+ bool bLogWindow;
+ bool bRegisterWindow;
+ bool bBreakpointWindow;
+ bool bMemoryWindow;
+ bool bJitWindow;
+ bool bSoundWindow;
+ bool bVideoWindow;
+ bool bAutomaticStart;
+
+ // sub dialogs
+ CLogWindow* m_LogWindow;
+ CRegisterWindow* m_RegisterWindow;
+ CBreakPointWindow* m_BreakpointWindow;
+ CMemoryWindow* m_MemoryWindow;
+ CJitWindow* m_JitWindow;
+
+ wxMenuItem* jitunlimited, *jitoff;
+ wxMenuItem* jitlsoff, *jitlslxzoff, *jitlslwzoff, *jitlslbzxoff;
+ wxMenuItem* jitlspoff;
+ wxMenuItem* jitlsfoff;
+ wxMenuItem* jitfpoff;
+ wxMenuItem* jitioff;
+ wxMenuItem* jitpoff;
+ wxMenuItem* jitsroff;
+
+ CCodeView* codeview;
+ wxListBox* callstack;
+ wxListBox* symbols;
+ wxListBox* callers;
+ wxListBox* calls;
+ Common::Event sync_event;
+
+ wxBitmap m_Bitmaps[Bitmaps_max];
+
+ DECLARE_EVENT_TABLE()
+
+ void OnSymbolListChange(wxCommandEvent& event);
+ void OnSymbolListContextMenu(wxContextMenuEvent& event);
+ void OnCallstackListChange(wxCommandEvent& event);
+ void OnCallersListChange(wxCommandEvent& event);
+ void OnCallsListChange(wxCommandEvent& event);
+ void OnCodeStep(wxCommandEvent& event);
+ void OnCodeViewChange(wxCommandEvent &event);
+
+ void SingleCPUStep();
+
+ void OnAddrBoxChange(wxCommandEvent& event);
+
+ void OnToggleRegisterWindow(wxCommandEvent& event);
+ void OnToggleBreakPointWindow(wxCommandEvent& event);
+ void OnToggleLogWindow(wxCommandEvent& event);
+ void OnToggleMemoryWindow(wxCommandEvent& event);
+ void OnToggleJitWindow(wxCommandEvent& event);
+ void OnToggleSoundWindow(wxCommandEvent& event);
+ void OnToggleVideoWindow(wxCommandEvent& event);
+
+ void OnHostMessage(wxCommandEvent& event);
+ void OnSymbolsMenu(wxCommandEvent& event);
+ void OnJitMenu(wxCommandEvent& event);
+ void OnProfilerMenu(wxCommandEvent& event);
+
+ void OnInterpreter(wxCommandEvent& event); // cpu mode menu
+ void OnAutomaticStart(wxCommandEvent& event);
+ void OnJITOff(wxCommandEvent& event);
+
+ void CreateMenu(const SCoreStartupParameter& _LocalCoreStartupParameter);
+
+ void UpdateButtonStates();
+ void UpdateLists();
+
+ void RecreateToolbar();
+ void PopulateToolbar(wxToolBar* toolBar);
+ void InitBitmaps();
+ void CreateGUIControls(const SCoreStartupParameter& _LocalCoreStartupParameter);
+ void OnKeyDown(wxKeyEvent& event);
+};
+
+#endif /*CODEWINDOW_*/