forked from regarm/u8085
-
Notifications
You must be signed in to change notification settings - Fork 0
/
memeditordock.h
41 lines (37 loc) · 897 Bytes
/
memeditordock.h
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
37
38
39
40
41
#ifndef MEMEDITORDOCK_H
#define MEMEDITORDOCK_H
#include <QDockWidget>
#include <QVBoxLayout>
#include <QLabel>
#include <QHBoxLayout>
#include <QLineEdit>
#include <QString>
#include <QPushButton>
#include <QRegExpValidator>
#include "internal8085.h"
class MemEditorDock : public QDockWidget
{
Q_OBJECT
public:
MemEditorDock(QString,Internal8085 *__8085 = 0, QWidget *parent = 0);
QVBoxLayout *cells[100];
QWidget *memWidget;
int base;
QLineEdit *showStartAddress;
QGridLayout *memLay;
Internal8085 *__8085;
const static int gridS = 8;
QLabel *addresses[gridS * gridS];
QLineEdit *values[gridS * gridS];
QPushButton *goButton;
public:
void freeze();
void unfreeze();
signals:
void MCellEdited(QString);
public slots:
void updateMemEdit();
void MCellChanged(QString);
// void checkForMCell();
};
#endif // MEMEDITORDOCK_H