Skip to content

Commit

Permalink
Add new reversible debugging icons.
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzyll committed Apr 9, 2024
1 parent 82de031 commit 4f67696
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions debuggerui.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,14 @@
<file alias="remove">icons/remove.png</file>
<file alias="restart">icons/restart.png</file>
<file alias="resume">icons/resume.png</file>
<file alias="resume-reverse">icons/resume-reverse.png</file>
<file alias="settings">icons/settings.png</file>
<file alias="start">icons/start.png</file>
<file alias="step-back">icons/step-back.png</file>
<file alias="step-into">icons/step-into.png</file>
<file alias="step-into-reverse">icons/step-into-reverse.png</file>
<file alias="step-out">icons/step-out.png</file>
<file alias="step-out-reverse">icons/step-out-reverse.png</file>
<file alias="step-over">icons/step-over.png</file>
<file alias="stop">icons/stop.png</file>
</qresource>
Expand Down
Binary file added icons/resume-reverse.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/step-into-reverse.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified icons/step-into.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/step-out-reverse.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified icons/step-out.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions ui/controlswidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,22 +109,22 @@ DebugControlsWidget::DebugControlsWidget(QWidget* parent, const std::string name
if(m_controller->IsTTD())
addSeparator(); //TODO: IsTTD only updates when the adapter is connected. This leaves the separator in place when the adapter is disconnected.

m_actionGoBack = addAction(getColoredIcon(":/debugger/resume", red), "Go Backwards", [this]() {
m_actionGoBack = addAction(getColoredIcon(":/debugger/resume-reverse", red), "Go Backwards", [this]() {
performGoReverse();
});
m_actionGoBack->setToolTip(getToolTip("Go Backwards"));

m_actionStepIntoBack = addAction(getColoredIcon(":/debugger/step-into", red), "Step Into Backwards", [this]() {
m_actionStepIntoBack = addAction(getColoredIcon(":/debugger/step-into-reverse", red), "Step Into Backwards", [this]() {
performStepIntoReverse();
});
m_actionStepIntoBack->setToolTip(getToolTip("Step Into Backwards"));

m_actionStepOverBack = addAction(getColoredIcon(":/debugger/step-over", red), "Step Over Backwards", [this]() {
m_actionStepOverBack = addAction(getColoredIcon(":/debugger/step-back", red), "Step Over Backwards", [this]() {
performStepOverReverse();
});
m_actionStepOverBack->setToolTip(getToolTip("Step Over Backwards"));

m_actionStepReturnBack = addAction(getColoredIcon(":/debugger/step-out", red), "Step Return Backwards", [this]() {
m_actionStepReturnBack = addAction(getColoredIcon(":/debugger/step-out-reverse", red), "Step Return Backwards", [this]() {
performStepReturnReverse();
});
m_actionStepReturnBack->setToolTip(getToolTip("Step Return Backwards"));
Expand Down

0 comments on commit 4f67696

Please sign in to comment.