| 29 | |
| 30 | |
| 31 | class DebugControlsWidget : public QToolBar |
| 32 | { |
| 33 | Q_OBJECT |
| 34 | |
| 35 | private: |
| 36 | std::string m_name; |
| 37 | DbgRef<DebuggerController> m_controller; |
| 38 | |
| 39 | QAction* m_actionRun; |
| 40 | QAction* m_actionAttachPid; |
| 41 | QAction* m_actionRestart; |
| 42 | QAction* m_actionQuit; |
| 43 | QAction* m_actionDetach; |
| 44 | QAction* m_actionPause; |
| 45 | QAction* m_actionResume; |
| 46 | QAction* m_actionStepInto; |
| 47 | QAction* m_actionStepOver; |
| 48 | QAction* m_actionStepReturn; |
| 49 | |
| 50 | QAction* m_actionSettings; |
| 51 | |
| 52 | bool canExec(); |
| 53 | bool canConnect(); |
| 54 | |
| 55 | QIcon getColoredIcon(const QString& iconPath, const QColor& color); |
| 56 | QString getToolTip(const QString& name); |
| 57 | |
| 58 | public: |
| 59 | DebugControlsWidget(QWidget* parent, const std::string name, BinaryViewRef data); |
| 60 | virtual ~DebugControlsWidget(); |
| 61 | |
| 62 | void setStartingEnabled(bool enabled); |
| 63 | void setStoppingEnabled(bool enabled); |
| 64 | void setSteppingEnabled(bool enabled); |
| 65 | |
| 66 | void updateButtons(); |
| 67 | |
| 68 | public Q_SLOTS: |
| 69 | void performLaunch(); |
| 70 | void performAttachPID(); |
| 71 | void performRestart(); |
| 72 | void performQuit(); |
| 73 | void performDetach(); |
| 74 | |
| 75 | void performPause(); |
| 76 | void performResume(); |
| 77 | void performStepInto(); |
| 78 | void performStepOver(); |
| 79 | void performStepReturn(); |
| 80 | |
| 81 | void performSettings(); |
| 82 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected