aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui/memorydock.h
blob: 612f9869f6121ddf779db44fad4bb8e77ab0cfe6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef MEMORYDOCK_H
#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);

    void setup(machine::QtMipsMachine *machine);

private:
    DataView *view;
};

#endif // MEMORYDOCK_H