cutter/src/widgets/DebugActions.h

42 lines
933 B
C
Raw Normal View History

2018-06-12 08:43:14 +00:00
#pragma once
#include "core/Cutter.h"
2018-06-12 08:43:14 +00:00
class MainWindow;
2018-12-21 20:36:40 +00:00
class QToolBar;
class QToolButton;
2018-06-12 08:43:14 +00:00
2018-12-21 20:36:40 +00:00
class DebugActions : public QObject
2018-06-12 08:43:14 +00:00
{
Q_OBJECT
public:
2018-12-21 20:36:40 +00:00
explicit DebugActions(QToolBar *toolBar, MainWindow *main);
void addToToolBar(QToolBar *toolBar);
QAction *actionStart;
QAction *actionStartEmul;
QAction *actionAttach;
QAction *actionContinue;
QAction *actionContinueUntilMain;
QAction *actionContinueUntilCall;
QAction *actionContinueUntilSyscall;
QAction *actionStep;
QAction *actionStepOver;
QAction *actionStepOut;
QAction *actionStop;
2018-10-03 11:30:12 +00:00
QAction *actionAllContinues;
2018-06-12 08:43:14 +00:00
private:
MainWindow *main;
2018-10-03 11:30:12 +00:00
QList<QAction *> allActions;
QToolButton *continueUntilButton;
2018-06-12 08:43:14 +00:00
private slots:
void continueUntilMain();
void attachProcessDialog();
void attachProcess(int pid);
2018-10-03 11:30:12 +00:00
void setAllActionsVisible(bool visible);
void setButtonVisibleIfMainExists();
2018-06-12 08:43:14 +00:00
};