X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/8fb3c55ee009a11db5e1c08a4cfb286979412745..3fb762e7042d9b4a1cf78556ad9ed7f117cc53ba:/Graph.cpp?ds=sidebyside diff --git a/Graph.cpp b/Graph.cpp index 4b22691..8e55077 100644 --- a/Graph.cpp +++ b/Graph.cpp @@ -4,10 +4,8 @@ #include "FunctionalBlock.h" #include "SpecialBlock.h" -Graph::Graph(bool createTopGroupIface) { - topGroup = new GroupBlock(NULL, createTopGroupIface); - topGroup->setName("top group"); - groups.append(topGroup); +Graph::Graph() { + topGroup = NULL; } Graph::~Graph() { @@ -15,6 +13,12 @@ Graph::~Graph() { delete topGroup; } +void Graph::createTopGroup(bool createTopGroupIfaces) { + topGroup = new GroupBlock(NULL, createTopGroupIfaces); + topGroup->setName("top group"); + groups.append(topGroup); +} + QList Graph::getOutsideInterfaces() { return topGroup->getInterfaces(); }