aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui/coreview.h
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2017-12-21 15:01:18 +0100
committerKarel Kočí <cynerd@email.cz>2017-12-21 15:01:18 +0100
commit1008f8180161b3ab7c6b885cb6f6a19df59dd398 (patch)
tree17250b4cc966333b173b1ba08ec863da5ec712ff /qtmips_gui/coreview.h
parentf1c0203237b976c366bedd950a2e6ffbcb8f7bcd (diff)
downloadqtmips-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.h13
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