Lots more work on making the frame aui stuff functional.
[dolphin.git] / Source / Core / DebuggerWX / Src / JitWindow.h
blob34b1494f80bdeee0f459f95814113f3d6055fa2c
1 // Copyright (C) 2003 Dolphin Project.
3 // This program is free software: you can redistribute it and/or modify
4 // it under the terms of the GNU General Public License as published by
5 // the Free Software Foundation, version 2.0.
7 // This program is distributed in the hope that it will be useful,
8 // but WITHOUT ANY WARRANTY; without even the implied warranty of
9 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 // GNU General Public License 2.0 for more details.
12 // A copy of the GPL 2.0 should have been included with the program.
13 // If not, see http://www.gnu.org/licenses/
15 // Official SVN repository and contact information can be found at
16 // http://code.google.com/p/dolphin-emu/
18 #ifndef JITWINDOW_H_
19 #define JITWINDOW_H_
21 #include <vector>
23 #include <wx/dialog.h>
24 #include <wx/textctrl.h>
25 #include <wx/listctrl.h>
26 #include <wx/listbox.h>
28 #include "Debugger.h"
29 #include "MemoryView.h"
30 #include "Thread.h"
31 #include "CoreParameter.h"
34 class JitBlockList : public wxListCtrl
36 std::vector<int> block_ranking;
37 public:
38 JitBlockList(wxWindow* parent, const wxWindowID id, const wxPoint& pos, const wxSize& size, long style);
39 void Init();
40 void Update();
44 class CJitWindow : public wxPanel
46 public:
47 CJitWindow(wxWindow* parent,
48 wxWindowID id = wxID_ANY,
49 const wxPoint& pos = wxDefaultPosition,
50 const wxSize& size = wxDefaultSize,
51 long style = wxTAB_TRAVERSAL,
52 const wxString& title = _T("JIT block viewer"));
53 ~CJitWindow();
55 static void ViewAddr(u32 em_address);
56 void Update();
58 private:
59 void OnRefresh(wxCommandEvent& /*event*/);
60 void Compare(u32 em_address);
62 JitBlockList* block_list;
63 wxButton* button_refresh;
64 wxTextCtrl* ppc_box;
65 wxTextCtrl* x86_box;
66 wxListBox* top_instructions;
68 DECLARE_EVENT_TABLE()
70 void OnSymbolListChange(wxCommandEvent& event);
71 void OnCallstackListChange(wxCommandEvent& event);
72 void OnAddrBoxChange(wxCommandEvent& event);
73 void OnHostMessage(wxCommandEvent& event);
76 #endif /*MEMORYWINDOW_*/