| 1 | #ifndef MAINMEMORYVIEWER_H |
| 2 | #define MAINMEMORYVIEWER_H |
| 3 | |
| 4 | #include <QWidget> |
| 5 | |
| 6 | class HexViewer; |
| 7 | class CPURegsViewer; |
| 8 | class SymbolTable; |
| 9 | class QComboBox; |
| 10 | class QLineEdit; |
| 11 | |
| 12 | class MainMemoryViewer : public QWidget |
| 13 | { |
| 14 | Q_OBJECT |
| 15 | public: |
| 16 | MainMemoryViewer(QWidget* parent = nullptr); |
| 17 | |
| 18 | void setDebuggable(const QString& name, int size); |
| 19 | void setRegsView(CPURegsViewer* viewer); |
| 20 | void setSymbolTable(SymbolTable* symtable); |
| 21 | |
| 22 | void setLocation(int addr); |
| 23 | void settingsChanged(); |
| 24 | void refresh(); |
| 25 | void registerChanged(int id, int value); |
| 26 | |
| 27 | void hexViewChanged(int addr); |
| 28 | void addressValueChanged(); |
| 29 | void addressSourceListChanged(int index); |
| 30 | |
| 31 | private: |
| 32 | HexViewer* hexView; |
| 33 | QComboBox* addressSourceList; |
| 34 | QLineEdit* addressValue; |
| 35 | |
| 36 | CPURegsViewer* regsViewer; |
| 37 | SymbolTable* symTable; |
| 38 | int linkedId; |
| 39 | bool isLinked; |
| 40 | }; |
| 41 | |
| 42 | #endif // MAINMEMORYVIEWER_H |