Debian Codegraph @

DebugAdapterClient/DAPOutputPane.cpp

raw
1 #include "DAPOutputPane.hpp"
2
3 #include "Notebook.h"
4
5 #include <wx/sizer.h>
6
7 DAPOutputPane::DAPOutputPane(wxWindow* parent, clModuleLogger& log)
8 : wxPanel(parent)
9 {
10 SetSizer(new wxBoxSizer(wxVERTICAL));
11 m_notebook = new Notebook(this, wxID_ANY);
12 GetSizer()->Add(m_notebook, 1, wxEXPAND);
13
14 m_consoleTab = new DAPConsoleOutput(m_notebook, log);
15 m_moduleTab = new DAPModuleView(m_notebook, log);
16 m_notebook->AddPage(m_consoleTab, _("Output"), true);
17 m_notebook->AddPage(m_moduleTab, _("Modules"), false);
18 }
19
20 DAPOutputPane::~DAPOutputPane() {}
21
22 void DAPOutputPane::AddEvent(dap::ModuleEvent* event)
23 {
24 m_moduleTab->AddModuleEvent(event);
25 }
26
27 void DAPOutputPane::AddEvent(dap::OutputEvent* event)
28 {
29 m_consoleTab->AddOutputEvent(event);
30 }