aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui/memorydock.h
blob: 7ec71c8f358b46733e0591e88903d0d917e5c096 (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
34
35
36
#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, QSettings *settings);

protected:
    QList<QWidget*> row_widget(std::uint32_t address, QWidget *parent);

    void addr0_save_change(std::uint32_t val);

private:
    QComboBox *cb_size;
    QSettings *settings;
};

class MemoryDock : public QDockWidget  {
    Q_OBJECT
public:
    MemoryDock(QWidget *parent, QSettings *settings);

    void setup(machine::QtMipsMachine *machine);

private:
    DataView *view;
};

#endif // MEMORYDOCK_H