forked from eranif/codelite
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDAPBreakpointsView.h
More file actions
49 lines (39 loc) · 1.29 KB
/
Copy pathDAPBreakpointsView.h
File metadata and controls
49 lines (39 loc) · 1.29 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
49
#ifndef DAPBREAKPOINTSVIEW_H
#define DAPBREAKPOINTSVIEW_H
#include "SessionBreakpoints.hpp"
#include "UI.h"
#include "clModuleLogger.hpp"
#include "dap/dap.hpp"
#include <unordered_set>
class DebugAdapterClient;
struct BreakpointClientData {
dap::Breakpoint m_breapoint;
BreakpointClientData(const dap::Breakpoint& breakpoint)
: m_breapoint(breakpoint)
{
}
~BreakpointClientData() {}
};
class DAPBreakpointsView : public DAPBreakpointsViewBase
{
DebugAdapterClient* m_plugin = nullptr;
std::vector<dap::FunctionBreakpoint> m_functionBreakpoints;
clModuleLogger& LOG;
private:
BreakpointClientData* GetItemData(const wxDataViewItem& item);
protected:
virtual void OnBreakpointsContextMenu(wxDataViewEvent& event);
void OnBreakpointActivated(wxDataViewEvent& item);
void OnNewFunctionBreakpoint(wxCommandEvent& event);
void OnDeleteAllBreakpoints(wxCommandEvent& event);
void OnNewSourceBreakpoint(wxCommandEvent& event);
public:
DAPBreakpointsView(wxWindow* parent, DebugAdapterClient* plugin, clModuleLogger& log);
virtual ~DAPBreakpointsView();
/**
* @brief initialise the view by syncing the data with the store
*/
void RefreshView(const SessionBreakpoints& breakpoints);
void Clear();
};
#endif // DAPBREAKPOINTSVIEW_H