int orientation = Parameters::West;
foreach(AbstractInterface *inter, refBlock->getInterfaces()){
-
+
+ /* NB: create InterfaceItem for every interfaces, even if they do not have a graphical representation
+ It will allow to save them in the XML project file and thus to create their equivalent
+ in the graph while the file is loaded.
+ */
InterfaceItem *item;
if(inter->getDirection() == AbstractInterface::Input){
orientation = Parameters::West;
orientation = Parameters::North;
}
item = new InterfaceItem(0.0 , orientation, (ConnectedInterface *)inter, this, params);
- interfaces.append(item);
- }
+ interfaces.append(item);
+ }
}
InterfaceItem* AbstractBoxItem::searchInterfaceByName(QString name) {