forked from eranif/codelite
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDAPDebuggerPane.cpp
More file actions
48 lines (37 loc) · 1.45 KB
/
Copy pathDAPDebuggerPane.cpp
File metadata and controls
48 lines (37 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#include "DAPDebuggerPane.h"
#include "DAPBreakpointsView.h"
#include "DAPMainView.h"
#include "DAPOutputPane.hpp"
#include "DAPWatchesView.h"
namespace
{
const wxString DAP_DEBUGGER_PANE = _("Debugger Client");
const wxString DAP_MAIN_VIEW = _("Thread, stacks & variables");
const wxString DAP_BREAKPOINTS_VIEW = _("Breakpoints");
const wxString DAP_WATCHES_VIEW = _("Watches");
} // namespace
DAPDebuggerPane::DAPDebuggerPane(wxWindow* parent, DebugAdapterClient* adapter, clModuleLogger& log)
: wxPanel(parent)
, LOG(log)
, m_dapPlugin(adapter)
{
m_book = new Notebook(this, wxID_ANY, wxDefaultPosition, wxDefaultSize,
kNotebook_Default | kNotebook_AllowDnD | kNotebook_FixedWidth);
SetSizer(new wxBoxSizer(wxVERTICAL));
GetSizer()->Add(m_book, 1, wxEXPAND);
m_mainView = new DAPMainView(m_book, m_dapPlugin, LOG);
m_book->AddPage(m_mainView, DAP_MAIN_VIEW, true);
m_watchesView = new DAPWatchesView(m_book, m_dapPlugin, LOG);
m_book->AddPage(m_watchesView, DAP_WATCHES_VIEW, false);
m_breakpointsView = new DAPBreakpointsView(m_book, m_dapPlugin, LOG);
m_book->AddPage(m_breakpointsView, DAP_BREAKPOINTS_VIEW, false);
GetSizer()->Fit(this);
}
DAPDebuggerPane::~DAPDebuggerPane() {}
DAPOutputPane* DAPDebuggerPane::GetOutputView() const { return m_mainView->GetOutputPane(); }
void DAPDebuggerPane::Clear()
{
m_mainView->Clear();
m_watchesView->Clear();
m_breakpointsView->Clear();
}