diff options
| author | Shawn Hoffman <godisgovernment@gmail.com> | 2009-02-06 18:18:20 +0000 |
|---|---|---|
| committer | Shawn Hoffman <godisgovernment@gmail.com> | 2009-02-06 18:18:20 +0000 |
| commit | 60b25def1819e34e8bd0a285da5c09271b64fade (patch) | |
| tree | cef5dac5f6319b28deff06fe4d35a188235087b4 /Source/Core/DebuggerWX/Src/CodeWindowSJP.cpp | |
| parent | 81631d8452477d4e3cbf5ac7ae180bc5da768fae (diff) | |
Allow changing of the debugger font and some cleanup
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2127 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DebuggerWX/Src/CodeWindowSJP.cpp')
| -rw-r--r-- | Source/Core/DebuggerWX/Src/CodeWindowSJP.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/Source/Core/DebuggerWX/Src/CodeWindowSJP.cpp b/Source/Core/DebuggerWX/Src/CodeWindowSJP.cpp index 63d66acad1..5c9fc1ffd9 100644 --- a/Source/Core/DebuggerWX/Src/CodeWindowSJP.cpp +++ b/Source/Core/DebuggerWX/Src/CodeWindowSJP.cpp @@ -28,11 +28,11 @@ #include <wx/thread.h>
#include <wx/mstream.h>
#include <wx/tipwin.h>
+#include <wx/fontdlg.h>
// ugly that this lib included code from the main
#include "../../DolphinWX/Src/Globals.h"
-#include "IniFile.h"
#include "Host.h"
#include "Debugger.h"
@@ -497,4 +497,14 @@ void CCodeWindow::OnToggleMemoryWindow(wxCommandEvent& event) }
}
}
-////////////////////////////////////////////////////////////////////////////////////////////////////
+//////////////////////////////////////////////////////////////////////////
+// Change the global DebuggerFont
+void CCodeWindow::OnChangeFont(wxCommandEvent& event)
+{
+ wxFontData data;
+ data.SetInitialFont(GetFont());
+
+ wxFontDialog dialog(this, data);
+ if ( dialog.ShowModal() == wxID_OK )
+ DebuggerFont = dialog.GetFontData().GetChosenFont();
+}
|
