diff options
author | Karel Kočí <cynerd@email.cz> | 2018-01-08 21:43:58 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2018-01-08 21:43:58 +0100 |
commit | 506174a8266eb9842ff9e50a89ddf86cb975be30 (patch) | |
tree | cd1c2905d48c172d2b83e4230b1f76dc46e8f3d3 /qtmips_gui/coreview/latch.h | |
parent | bcdd7c87b1eda7dc6b294cfa0796ce7e36f12b23 (diff) | |
download | qtmips-506174a8266eb9842ff9e50a89ddf86cb975be30.tar.gz qtmips-506174a8266eb9842ff9e50a89ddf86cb975be30.tar.bz2 qtmips-506174a8266eb9842ff9e50a89ddf86cb975be30.zip |
Add coreview progress
Diffstat (limited to 'qtmips_gui/coreview/latch.h')
-rw-r--r-- | qtmips_gui/coreview/latch.h | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/qtmips_gui/coreview/latch.h b/qtmips_gui/coreview/latch.h index 951f16a..59f4df0 100644 --- a/qtmips_gui/coreview/latch.h +++ b/qtmips_gui/coreview/latch.h @@ -2,11 +2,10 @@ #define COREVIEW_LATCH_H #include <QGraphicsObject> -#include <QList> #include <QPropertyAnimation> +#include <QVector> #include "qtmipsexception.h" #include "qtmipsmachine.h" -#include "../coreview.h" #include "connection.h" namespace coreview { @@ -23,6 +22,8 @@ public: QColor wedge_color(); void set_wedge_color(QColor &c); + void setTitle(const QString &str); + void setPos(qreal x, qreal y); struct ConnectorPair { Connector *in, *out; }; @@ -37,8 +38,10 @@ private slots: private: qreal height; - QList<ConnectorPair> connectors; - QList<qreal> connectors_off; + QVector<ConnectorPair> connectors; + QVector<qreal> connectors_off; + + QGraphicsSimpleTextItem *title; QPropertyAnimation *wedge_animation; QColor wedge_clr; @@ -46,10 +49,4 @@ private: } -#else - -namespace coreview { - class Latch; -}; - #endif // COREVIEW_LATCH_H |