diff options
author | Karel Kočí <cynerd@email.cz> | 2017-12-21 15:01:18 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2017-12-21 15:01:18 +0100 |
commit | 1008f8180161b3ab7c6b885cb6f6a19df59dd398 (patch) | |
tree | 17250b4cc966333b173b1ba08ec863da5ec712ff /qtmips_gui/coreview.h | |
parent | f1c0203237b976c366bedd950a2e6ffbcb8f7bcd (diff) | |
download | qtmips-1008f8180161b3ab7c6b885cb6f6a19df59dd398.tar.gz qtmips-1008f8180161b3ab7c6b885cb6f6a19df59dd398.tar.bz2 qtmips-1008f8180161b3ab7c6b885cb6f6a19df59dd398.zip |
A lot of small changes in gui
Added machine status.
Widgets now hold size and registers dock has now scrollbars.
And more...
Diffstat (limited to 'qtmips_gui/coreview.h')
-rw-r--r-- | qtmips_gui/coreview.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/qtmips_gui/coreview.h b/qtmips_gui/coreview.h index 8c0701e..fddcafe 100644 --- a/qtmips_gui/coreview.h +++ b/qtmips_gui/coreview.h @@ -11,14 +11,19 @@ #include "coreview/alu.h" class CoreView : public QGraphicsView { - Q_OBJECT public: - CoreView(QWidget *parent, machine::QtMipsMachine *machine); + CoreView(QWidget *parent); private: void resizeEvent(QResizeEvent *event); +}; + +class CoreViewScene : public QGraphicsScene { + Q_OBJECT +public: + CoreViewScene(CoreView *view, machine::QtMipsMachine *machine); - QGraphicsScene scene; +private: machine::QtMipsMachine *machine; coreview::ProgramCounter *pc; @@ -31,6 +36,6 @@ private: #else class CoreView; -class CoreViewBlock; +class CoreViewScene; #endif // COREVIEW_H |