blob: e1049e823077bd9d89a6fb04501aeb01a4dccbe2 (
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 MEMORYVIEW_H
#define MEMORYVIEW_H
#include <QWidget>
#include <QFrame>
#include <QBoxLayout>
#include <QLineEdit>
#include <cstdint>
class MemoryView : public QWidget {
public:
MemoryView(QWidget *parent = nullptr);
~MemoryView();
void set_center(std::uint32_t address);
std::uint32_t center();
protected:
//virtual QWidget *row_widget(std::uint32_t address) = 0;
void resizeEvent(QResizeEvent *event);
void wheelEvent(QWheelEvent *event);
QVBoxLayout *layout;
private slots:
void go_edit_finish();
private:
std::uint32_t center_addr;
QFrame *frame;
QLineEdit *go_edit;
};
#endif // MEMORYVIEW_H
|