void AbstractBoxItem::addInterface(InterfaceItem *i, bool resetPosition) {
interfaces.append(i);
if (resetPosition) resetInterfacesPosition();
- updateGeometry();
+ updateGeometry(InterfaceMove);
update();
}
delete i;
//resetInterfacesPosition();
- updateGeometry();
+ updateGeometry(InterfaceMove);
update();
}
}
}
-void AbstractBoxItem::deplaceInterface(QPointF pos) {
+void AbstractBoxItem::moveInterfaceTo(QPointF pos) {
double positionRatio;
if(currentInterface->getOrientation() == Parameters::North || currentInterface->getOrientation() == Parameters::South){
if(pos.x() < 0){
foreach(InterfaceItem *item, interfaces){
item->updatePosition();
}
+ // NB: dunno the utility of this test !!
if (getScene() != NULL) {
// update all connections from/to this block
foreach(ConnectionItem *item, getScene()->getConnectionItems()){
if ((item->getFromInterfaceItem()->getOwner() == this) || (item->getToInterfaceItem()->getOwner() == this)) {
- item->setPathes();
+ item->setPath();
}
}
}