| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
#ifndef DEBUGPANEL_H |
| 24 |
#define DEBUGPANEL_H |
| 25 |
|
| 26 |
#include <QDockWidget> |
| 27 |
#include <QVariantList> |
| 28 |
#include <QVector> |
| 29 |
|
| 30 |
namespace Ui { |
| 31 |
class DebugPanel; |
| 32 |
} |
| 33 |
|
| 34 |
class DebugPanel : public QDockWidget |
| 35 |
{ |
| 36 |
Q_OBJECT |
| 37 |
|
| 38 |
public: |
| 39 |
explicit DebugPanel(QWidget *parent = 0); |
| 40 |
~DebugPanel(); |
| 41 |
QVector<QVariantList> getBreakpoints(); |
| 42 |
QVector<QVariant> getInstrument(); |
| 43 |
void setDebugFilename(QString filename); |
| 44 |
|
| 45 |
public slots: |
| 46 |
void setVariableList(QVector<QVariantList> varList); |
| 47 |
void setInstrumentList(QVector<QVariantList> instrumentList); |
| 48 |
void stopDebug(); |
| 49 |
|
| 50 |
private slots: |
| 51 |
void runToggle(bool run); |
| 52 |
void run(); |
| 53 |
void pause(); |
| 54 |
void continueDebug(); |
| 55 |
void next(); |
| 56 |
void newBreakpoint(); |
| 57 |
void deleteBreakpoint(); |
| 58 |
void cellChanged(int row, int column); |
| 59 |
void currentCellChanged(int currentRow, int currentColumn, int previousRow, int previousColumn); |
| 60 |
|
| 61 |
private: |
| 62 |
Ui::DebugPanel *ui; |
| 63 |
|
| 64 |
signals: |
| 65 |
void runSignal(); |
| 66 |
void pauseSignal(); |
| 67 |
void continueSignal(); |
| 68 |
void nextSignal(); |
| 69 |
void stopSignal(); |
| 70 |
void addInstrumentBreakpoint(double instr, int skip); |
| 71 |
void removeInstrumentBreakpoint(double instr); |
| 72 |
void addBreakpoint(int line, int instr, int skip); |
| 73 |
void removeBreakpoint(int line, int instr); |
| 74 |
}; |
| 75 |
|
| 76 |
#endif |