-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMainWindow.h
48 lines (38 loc) · 1.04 KB
/
MainWindow.h
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
#pragma once
#include "BreakpointModel.h"
#include "FrameVariableModel.h"
#include "LldbDebugger.h"
#include <QMainWindow>
namespace Ui {
class MainWindow;
}
namespace visual_lldb {
class MainWindow : public QMainWindow {
Q_OBJECT
public:
explicit MainWindow(const QString &executablePath, QWidget *parent = nullptr);
virtual ~MainWindow();
public slots:
void onRun();
void onContinue();
void onNext();
void onStepDown();
void onStepUp();
void onOpenFile();
void onBreakpointToggle(size_t lineNumber);
private:
void updateView();
void updateCodeBrowser(const std::vector<Breakpoint> &bps);
void updateFrameModel();
std::vector<Breakpoint> updateBreakpointModel();
void populateCodeBrowser(const std::string &fileName, size_t lineNumber,
const std::vector<Breakpoint> &bps);
void logMsg(const std::string &msg);
Ui::MainWindow *ui;
LldbDebugger debugger;
std::string msgLog;
FrameVariableModel frameModel;
BreakpointModel bpModel;
std::string currentFile;
};
} // namespace visual_lldb