aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui/coreview/latch.h
diff options
context:
space:
mode:
Diffstat (limited to 'qtmips_gui/coreview/latch.h')
-rw-r--r--qtmips_gui/coreview/latch.h17
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