diff options
author | Karel Kočí <cynerd@email.cz> | 2018-01-25 15:40:50 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2018-01-25 15:40:50 +0100 |
commit | 92c7fd220506df5f7997d27dbbcdb513e66932a7 (patch) | |
tree | 387da2cffe29d48cb6894070c8dcdd9900bce2a9 /qtmips_gui/memorydock.h | |
parent | eb75bba956fb13e156a89406f5928a55e7b66fc4 (diff) | |
download | qtmips-92c7fd220506df5f7997d27dbbcdb513e66932a7.tar.gz qtmips-92c7fd220506df5f7997d27dbbcdb513e66932a7.tar.bz2 qtmips-92c7fd220506df5f7997d27dbbcdb513e66932a7.zip |
Implement memoryview
Diffstat (limited to 'qtmips_gui/memorydock.h')
-rw-r--r-- | qtmips_gui/memorydock.h | 17 |
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 |