X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/d43174d0eb3d293b3bb5fbe76662241134e74d0d..43fd94117de66d533ef9e58b2de85daa244da309:/GroupInterface.cpp diff --git a/GroupInterface.cpp b/GroupInterface.cpp index 14f8b43..1c10bff 100644 --- a/GroupInterface.cpp +++ b/GroupInterface.cpp @@ -2,18 +2,9 @@ #include "FunctionalInterface.h" #include "GroupBlock.h" -GroupInterface::GroupInterface(AbstractBlock* _owner, const QString& _name, int _direction, int _level) throw(Exception) : ConnectedInterface(_owner,_name,"expression","",_direction,AbstractInterface::Data,_level) { +GroupInterface::GroupInterface(AbstractBlock* _owner, const QString& _name, int _direction) throw(Exception) : ConnectedInterface(_owner,_name,"expression","",_direction,AbstractInterface::Data) { if (! _owner->isGroupBlock()) throw(Exception(BLOCK_INVALID_TYPE)); - /* If the owner group is the top group, then all its interfaces are at top level => force them to be top. - If not, force them to be basic - */ - if (((GroupBlock*)_owner)->isTop()) { - level = AbstractInterface::Top; - } - else { - level = AbstractInterface::Basic; - } connectedFrom = NULL; } @@ -22,11 +13,10 @@ bool GroupInterface::isGroupInterface() { } AbstractInterface *GroupInterface::clone() { - GroupInterface *inter = new GroupInterface(owner,name,direction,level); + GroupInterface *inter = new GroupInterface(owner,name,direction); inter->setWidth(width); inter->setDirection(direction); - inter->setPurpose(purpose); - inter->setLevel(level); + inter->setPurpose(purpose); inter->connectFrom(NULL); return inter;