forked from eranif/codelite
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDAPOutputPane.cpp
More file actions
30 lines (23 loc) · 769 Bytes
/
Copy pathDAPOutputPane.cpp
File metadata and controls
30 lines (23 loc) · 769 Bytes
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
#include "DAPOutputPane.hpp"
#include "Notebook.h"
#include <wx/sizer.h>
DAPOutputPane::DAPOutputPane(wxWindow* parent, clModuleLogger& log)
: wxPanel(parent)
{
SetSizer(new wxBoxSizer(wxVERTICAL));
m_notebook = new Notebook(this, wxID_ANY);
GetSizer()->Add(m_notebook, 1, wxEXPAND);
m_consoleTab = new DAPConsoleOutput(m_notebook, log);
m_moduleTab = new DAPModuleView(m_notebook, log);
m_notebook->AddPage(m_consoleTab, _("Output"), true);
m_notebook->AddPage(m_moduleTab, _("Modules"), false);
}
DAPOutputPane::~DAPOutputPane() {}
void DAPOutputPane::AddEvent(dap::ModuleEvent* event)
{
m_moduleTab->AddModuleEvent(event);
}
void DAPOutputPane::AddEvent(dap::OutputEvent* event)
{
m_consoleTab->AddOutputEvent(event);
}