aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui/memorydock.h
diff options
context:
space:
mode:
Diffstat (limited to 'qtmips_gui/memorydock.h')
-rw-r--r--qtmips_gui/memorydock.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/qtmips_gui/memorydock.h b/qtmips_gui/memorydock.h
index 533451e..612f986 100644
--- a/qtmips_gui/memorydock.h
+++ b/qtmips_gui/memorydock.h
@@ -2,19 +2,32 @@
#define MEMORYDOCK_H
#include <QDockWidget>
+#include <QLabel>
+#include <QComboBox>
#include "qtmipsmachine.h"
#include "memoryview.h"
+class DataView : public MemoryView {
+ Q_OBJECT
+public:
+ DataView(QWidget *parent);
+
+protected:
+ QList<QWidget*> row_widget(std::uint32_t address, QWidget *parent);
+
+private:
+ QComboBox *cb_size;
+};
+
class MemoryDock : public QDockWidget {
Q_OBJECT
public:
MemoryDock(QWidget *parent);
- ~MemoryDock();
void setup(machine::QtMipsMachine *machine);
private:
- MemoryView *memory_view;
+ DataView *view;
};
#endif // MEMORYDOCK_H