X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/1df76ccc8673a2760af17b88ebfba4bfd7f5c11d..e5af659f87bcb199d6a5f10f09b311138351d0f3:/AbstractBoxItem.cpp?ds=inline diff --git a/AbstractBoxItem.cpp b/AbstractBoxItem.cpp index a05247f..b76bf66 100644 --- a/AbstractBoxItem.cpp +++ b/AbstractBoxItem.cpp @@ -128,7 +128,11 @@ void AbstractBoxItem::initInterfaces() { 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; @@ -138,8 +142,8 @@ void AbstractBoxItem::initInterfaces() { orientation = Parameters::North; } item = new InterfaceItem(0.0 , orientation, (ConnectedInterface *)inter, this, params); - interfaces.append(item); - } + interfaces.append(item); + } } InterfaceItem* AbstractBoxItem::searchInterfaceByName(QString name) {