Code::Blocks  SVN r11506
disassemblydlg.h
Go to the documentation of this file.
1 /*
2  * This file is part of the Code::Blocks IDE and licensed under the GNU General Public License, version 3
3  * http://www.gnu.org/licenses/gpl-3.0.html
4  */
5 
6 #ifndef DISASSEMBLYDLG_H
7 #define DISASSEMBLYDLG_H
8 
9 #include <vector>
10 
11 #include <wx/panel.h>
12 #include <wx/checkbox.h>
13 #include <cbdebugger_interfaces.h>
14 
15 class wxScintilla;
16 class cbStackFrame;
17 
18 class DisassemblyDlg : public wxPanel, public cbDisassemblyDlg
19 {
20  public:
21  DisassemblyDlg(wxWindow* parent);
22 
23  wxWindow* GetWindow() { return this; }
24 
25  void Clear(const cbStackFrame& frame);
26  void AddAssemblerLine(uint64_t addr, const wxString& line);
27  void AddSourceLine(int lineno, const wxString& line);
28  bool SetActiveAddress(uint64_t addr);
29  void CenterLine(int lineno);
30  void CenterCurrentLine();
31  bool HasActiveAddr() { return m_HasActiveAddr; }
32  void EnableWindow(bool enable);
33 
34  protected:
35  void OnSave(wxCommandEvent& event);
36  void OnRefresh(wxCommandEvent& event);
37  void OnMixedModeCB(wxCommandEvent &event);
38  void OnAdjustLine(wxCommandEvent &event);
39 
41  uint64_t m_LastActiveAddr;
46  std::vector<char> m_LineTypes; //'S'ource, 'D'isassembly
47 
48  private:
51 };
52 
53 #endif // DISASSEMBLYDLG_H
uint64_t m_LastActiveAddr
std::vector< char > m_LineTypes
bool SetActiveAddress(uint64_t addr)
void EnableWindow(bool enable)
void AddSourceLine(int lineno, const wxString &line)
void OnRefresh(wxCommandEvent &event)
DisassemblyDlg(wxWindow *parent)
void OnSave(wxCommandEvent &event)
wxString m_FrameAddress
wxScintilla * m_pCode
void OnAdjustLine(wxCommandEvent &event)
void CenterLine(int lineno)
wxString m_FrameFunction
wxCheckBox * m_MixedModeCB
void OnMixedModeCB(wxCommandEvent &event)
bool HasActiveAddr()
void Clear(const cbStackFrame &frame)
void AddAssemblerLine(uint64_t addr, const wxString &line)
wxWindow * GetWindow()