FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
seer/src/SeerCatchpointCreateDialog.cpp at main · CKLinuxProject/seer · GitHub
CKLinuxProject
/
seer
Public
forked from
epasveer/seer
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
seer
/
src
/
SeerCatchpointCreateDialog.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
103 lines (71 loc) · 2.33 KB
Breadcrumbs
seer
/
src
/
SeerCatchpointCreateDialog.cpp
Copy path
File metadata and controls
103 lines (71 loc) · 2.33 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
101
102
#
include
"
SeerCatchpointCreateDialog.h
"
#
include
<
QtCore/QDebug
>
SeerCatchpointCreateDialog::SeerCatchpointCreateDialog
(QWidget* parent) : QDialog(parent) {
//
Set up the UI.
setupUi
(
this
);
//
Setup the widgets
setType
(
"
"
);
setNameText
(
"
"
);
setTemporaryEnabled
(
false
);
//
Connect things.
}
SeerCatchpointCreateDialog::~SeerCatchpointCreateDialog
() {
}
void
SeerCatchpointCreateDialog::setType
(
const
QString& text) {
if
(text ==
"
throw
"
) {
throwRadioButton->
setChecked
(
true
);
}
else
if
(text ==
"
rethrow
"
) {
rethrowRadioButton->
setChecked
(
true
);
}
else
if
(text ==
"
catch
"
) {
catchRadioButton->
setChecked
(
true
);
}
else
if
(text ==
"
load
"
) {
loadRadioButton->
setChecked
(
true
);
}
else
if
(text ==
"
unload
"
) {
unloadRadioButton->
setChecked
(
true
);
}
else
{
throwRadioButton->
setChecked
(
true
);
}
}
QString
SeerCatchpointCreateDialog::typeText
()
const
{
if
(throwRadioButton->
isChecked
()) {
return
"
throw
"
;
}
else
if
(rethrowRadioButton->
isChecked
()) {
return
"
rethrow
"
;
}
else
if
(catchRadioButton->
isChecked
()) {
return
"
catch
"
;
}
else
if
(loadRadioButton->
isChecked
()) {
return
"
load
"
;
}
else
if
(unloadRadioButton->
isChecked
()) {
return
"
unload
"
;
}
else
{
return
"
throw
"
;
}
}
void
SeerCatchpointCreateDialog::setTemporaryEnabled
(
bool
flag) {
temporaryCheckBox->
setChecked
(flag);
}
void
SeerCatchpointCreateDialog::setNameText
(
const
QString& text) {
nameLineEdit->
setText
(text);
}
QString
SeerCatchpointCreateDialog::nameText
()
const
{
return
nameLineEdit->
text
();
}
bool
SeerCatchpointCreateDialog::temporaryEnabled
()
const
{
return
temporaryCheckBox->
isChecked
();
}
QString
SeerCatchpointCreateDialog::catchpointText
()
const
{
//
Build a catchpoint specification.
QString catchpointParameters =
typeText
();
if
(
temporaryEnabled
()) {
catchpointParameters +=
"
-t
"
;
}
if
(
typeText
() ==
"
load
"
||
typeText
() ==
"
unload
"
) {
//
These don't need a "-r"
catchpointParameters +=
"
"
+
nameText
();
}
else
{
//
These do, but only if there is a name.
if
(
nameText
() !=
"
"
) {
catchpointParameters +=
"
-r
"
+
nameText
();
}
}
//
qDebug() << catchpointParameters;
return
catchpointParameters;
}
Back
|
FazBrowse Home
|
New Git URL