virtual ~GroupBlock();
// getters
-
+ inline QList<AbstractBlock*> getBlocks() { return blocks; }
// setters
void setParent(AbstractBlock *_parent);
// others
inline void addBlock(AbstractBlock* block) { blocks.append(block); }
void removeBlock(AbstractBlock* block);
+ void removeAllBlocks();
void parametersValidation(QList<AbstractBlock *> *checkedBlocks, QList<AbstractBlock*>* blocksToConfigure);
void addGenericParameter(QString name, QString type, QString value);
void removeGenericParameter(QString name);
private:
bool topGroup;
- QList<AbstractBlock*> blocks; // contains instances of FunctionalBlock or GroupBlock
+ QList<AbstractBlock*> blocks; // contains instances of FunctionalBlock or GroupBlock that are children of this group
};