aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui/memorydock.cpp
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-01-05 17:08:04 +0100
committerKarel Kočí <cynerd@email.cz>2018-01-05 17:08:04 +0100
commit8025ccc2091228f9d089532852a2380f5f5a80b1 (patch)
tree21e9b0d9c0d45300ee3143d57c79a9e1e8d4e68d /qtmips_gui/memorydock.cpp
parent85110f7880e32d298ee2853b4c055c7aaa22662f (diff)
downloadqtmips-8025ccc2091228f9d089532852a2380f5f5a80b1.tar.gz
qtmips-8025ccc2091228f9d089532852a2380f5f5a80b1.tar.bz2
qtmips-8025ccc2091228f9d089532852a2380f5f5a80b1.zip
Add template for Memory dock
For now a memory view is missing so there is no content.
Diffstat (limited to 'qtmips_gui/memorydock.cpp')
-rw-r--r--qtmips_gui/memorydock.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/qtmips_gui/memorydock.cpp b/qtmips_gui/memorydock.cpp
new file mode 100644
index 0000000..0ccca3f
--- /dev/null
+++ b/qtmips_gui/memorydock.cpp
@@ -0,0 +1,21 @@
+#include "memorydock.h"
+
+MemoryDock::MemoryDock(QWidget *parent) : QDockWidget(parent) {
+ // TODO setup memory view
+
+ setObjectName("Memory");
+ setWindowTitle("Memory");
+}
+
+MemoryDock::~MemoryDock() {
+
+}
+
+void MemoryDock::setup(machine::QtMipsMachine *machine) {
+ if (machine == nullptr)
+ // TODO reset memory view
+ return;
+
+ // TODO setup memory view
+
+}