blob: fc698614926be373095df67af9e8a00e99af8251 (
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
|
#ifndef COREVIEW_H
#define COREVIEW_H
#include <QGraphicsView>
#include <QGraphicsScene>
#include "qtmipsmachine.h"
#include "coreview/connection.h"
#include "coreview/programcounter.h"
#include "coreview/multiplexer.h"
#include "coreview/latch.h"
class CoreView : public QGraphicsView {
Q_OBJECT
public:
CoreView(QWidget *parent, QtMipsMachine *machine);
private:
void resizeEvent(QResizeEvent *event);
QGraphicsScene scene;
QtMipsMachine *machine;
coreview::ProgramCounter *pc;
coreview::Multiplexer *pc_multiplexer;
coreview::Connection *pc2pc;
coreview::Latch *testlatch;
};
#else
class CoreView;
class CoreViewBlock;
#endif // COREVIEW_H
|