X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/f311fbc3e1436bf248c54225f0743cfa671c4bd7..d111eaf49741a0a79d372445f97c314a637e331e:/GroupBlock.cpp diff --git a/GroupBlock.cpp b/GroupBlock.cpp index 74ec197..7995e62 100644 --- a/GroupBlock.cpp +++ b/GroupBlock.cpp @@ -34,12 +34,17 @@ bool GroupBlock::isGroupBlock() { return true; } +bool GroupBlock::isTopGroupBlock() { + return topGroup; +} + void GroupBlock::setParent(AbstractBlock *_parent) { parent = _parent; if (parent != NULL) { topGroup = false; } } + void GroupBlock::removeAllBlocks() { foreach(AbstractBlock* block, blocks) { if (block->isGroupBlock()) { @@ -58,6 +63,15 @@ void GroupBlock::removeBlock(AbstractBlock* block) { delete block; } +AbstractBlock *GroupBlock::getFunctionalBlockByName(QString name) { + foreach(AbstractBlock* block, blocks) { + if (block->isFunctionalBlock()) { + if (block->getName() == name) return block; + } + } + return NULL; +} + void GroupBlock::parametersValidation(QList *checkedBlocks, QList *blocksToConfigure) { /*