From 506174a8266eb9842ff9e50a89ddf86cb975be30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 8 Jan 2018 21:43:58 +0100 Subject: Add coreview progress --- qtmips_gui/coreview/latch.h | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'qtmips_gui/coreview/latch.h') 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 -#include #include +#include #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 connectors; - QList connectors_off; + QVector connectors; + QVector connectors_off; + + QGraphicsSimpleTextItem *title; QPropertyAnimation *wedge_animation; QColor wedge_clr; @@ -46,10 +49,4 @@ private: } -#else - -namespace coreview { - class Latch; -}; - #endif // COREVIEW_LATCH_H -- cgit v1.2.3