diff options
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 |