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/junction.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/junction.h')
-rw-r--r-- | qtmips_gui/coreview/junction.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/qtmips_gui/coreview/junction.h b/qtmips_gui/coreview/junction.h new file mode 100644 index 0000000..1a8f5d7 --- /dev/null +++ b/qtmips_gui/coreview/junction.h @@ -0,0 +1,28 @@ +#ifndef JUNCTION_H +#define JUNCTION_H + +#include <QGraphicsItem> +#include <QPainter> +#include <QList> +#include "connection.h" + +namespace coreview { + +class Junction : public QGraphicsItem { +public: + Junction(); + ~Junction(); + + QRectF boundingRect() const; + void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget); + + void setPos(qreal x, qreal y); + Connector *new_connector(qreal angle); + +private: + QList<Connector*> cons; +}; + +} + +#endif // JUNCTION_H |