-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathcontrolswidget.h
More file actions
100 lines (81 loc) · 2.47 KB
/
controlswidget.h
File metadata and controls
100 lines (81 loc) · 2.47 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
/*
Copyright 2020-2026 Vector 35 Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#pragma once
#include <QToolBar>
#include <QMenu>
#include <QToolButton>
#include <QIcon>
#include <QLineEdit>
#include "binaryninjaapi.h"
#include "uicontext.h"
#include "debuggerapi.h"
using namespace BinaryNinjaDebuggerAPI;
class DebugControlsWidget : public QToolBar
{
Q_OBJECT
private:
std::string m_name;
DbgRef<DebuggerController> m_controller;
QAction* m_actionRun;
QAction* m_actionAttachPid;
QAction* m_actionRestart;
QAction* m_actionQuit;
QAction* m_actionDetach;
QAction* m_actionPause;
QAction* m_actionResume;
QAction* m_actionGoBack;
QAction* m_actionStepInto;
QAction* m_actionStepIntoBack;
QAction* m_actionStepOver;
QAction* m_actionStepOverBack;
QAction* m_actionStepReturn;
QAction* m_actionStepReturnBack;
QAction* m_actionSettings;
QAction* m_actionToggleBreakpoint;
QAction* m_actionTimestampNavigation;
QAction* m_actionTTDNavigateBack;
QAction* m_actionTTDNavigateForward;
bool canExec();
bool canConnect();
bool handleContainerFile();
QIcon getColoredIcon(const QString& iconPath, const QColor& color);
QString getToolTip(const QString& name);
public:
DebugControlsWidget(QWidget* parent, const std::string name, BinaryViewRef data);
virtual ~DebugControlsWidget();
void setStartingEnabled(bool enabled);
void setStoppingEnabled(bool enabled);
void setSteppingEnabled(bool enabled);
void setReverseSteppingEnabled(bool enabled);
void updateButtons();
public Q_SLOTS:
void performLaunch();
void performAttachPID();
void performRestart();
void performQuit();
void performDetach();
void performPause();
void performResume();
void performGoReverse();
void performStepInto();
void performStepIntoReverse();
void performStepOver();
void performStepOverReverse();
void performStepReturn();
void performStepReturnReverse();
void performSettings();
void toggleBreakpoint();
void performTimestampNavigation();
void performTTDNavigateBack();
void performTTDNavigateForward();
};