aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui/memorydock.cpp
blob: 8998b3230e43d84719ff14cc9a2111cce43b468d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "memorydock.h"

MemoryDock::MemoryDock(QWidget *parent) : QDockWidget(parent) {
    memory_view = new MemoryView(this);
    setWidget(memory_view);

    setObjectName("Memory");
    setWindowTitle("Memory");
}

MemoryDock::~MemoryDock() {
    delete memory_view;
}

void MemoryDock::setup(machine::QtMipsMachine *machine) {
    if (machine == nullptr)
        // TODO reset memory view
        return;

    // TODO setup memory view

}