| 1 | #ifndef DEBUGGABLEVIEWER_H |
| 2 | #define DEBUGGABLEVIEWER_H |
| 3 | |
| 4 | #include <QWidget> |
| 5 | |
| 6 | class HexViewer; |
| 7 | class QComboBox; |
| 8 | |
| 9 | class DebuggableViewer : public QWidget |
| 10 | { |
| 11 | Q_OBJECT |
| 12 | public: |
| 13 | DebuggableViewer(QWidget* parent = nullptr); |
| 14 | |
| 15 | void settingsChanged(); |
| 16 | void setDebuggables(const QMap<QString, int>& list); |
| 17 | void refresh(); |
| 18 | |
| 19 | private: |
| 20 | void debuggableSelected(int index); |
| 21 | void locationChanged(int loc); |
| 22 | |
| 23 | private: |
| 24 | HexViewer* hexView; |
| 25 | QComboBox* debuggableList; |
| 26 | QString lastSelected; |
| 27 | int lastLocation; |
| 28 | }; |
| 29 | |
| 30 | #endif // DEBUGGABLEVIEWER_H |