int _orientation,
ConnectedInterface* _refInter,
AbstractBoxItem* _owner,
- Parameters* _params);
+ Parameters* _params, bool forceVisible = false);
InterfaceItem();
QRectF boundingRect() const;
void paint(QPainter *painter);
// getters
inline int getId() { return id; }
QString getName();
+ QString getReferenceName();
inline double getPositionRatio() { return positionRatio; }
inline double getPosition() { return position; }
inline int getOrientation() { return orientation; }
inline int getNameWidth() { return nameWidth; }
inline int getNameHeight() { return nameHeight; }
QString getStrOrientation();
- static int getIntOrientation(QString str);
- QPointF getEndPointInGroup();
+ static int getIntOrientation(QString str);
+ QPointF getEndPosition();
+ QPointF getStartPosition();
// setters
void setOriginPoint();
// others
void addConnectionItem(ConnectionItem* item);
- void removeConnectionItem(ConnectionItem* item);
- bool canConnectWith(InterfaceItem* iface);
- bool connectWith(InterfaceItem* iface);
- void unconnectTo(InterfaceItem *iface);
+ void removeConnectionItem(ConnectionItem* item);
void updatePosition();
+ void updateName(QString name);
AbstractBoxItem* owner;
ConnectedInterface* refInter;