X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/d30c9cf675ad7141d1c8e31d2e72315267d45cf2..0d3590739ff5a4ca9e87c052ac142f5d1d3a68ab:/Parameters.h diff --git a/Parameters.h b/Parameters.h index 69887a9..a152f1c 100644 --- a/Parameters.h +++ b/Parameters.h @@ -20,6 +20,7 @@ class GroupItem; class BoxItem; class InterfaceItem; class Graph; +class GroupWidget; #include "BlockImplementation.h" @@ -35,6 +36,13 @@ class Exception; using namespace std; using namespace Qt; +/*! + * \brief The Parameters class + * + * Parameters class represents the Model part of blast in MVC paradigm. + * It contains all data necessary to create a design: the graph of blocks, + * the scenes, ... + */ class Parameters { public : @@ -113,16 +121,15 @@ public : Graph* createGraph(); void destroyGraph(); - inline Graph* getGraph() { return graph; } - GroupBlock* addGroupBlock(); // adding an empty GroupBlock to the current group - FunctionalBlock* addFunctionalBlock(int idCategory, int idBlock); // adding a functional block to current group + inline Graph* getGraph() { return graph; } + ReferenceBlock* getReferenceBlock(int idCategory, int idBlock); // get the reference block from its category and index FunctionalBlock* duplicateFunctionalBlock(FunctionalBlock* block); // adding a copy of a functional block to current group void clear(); QDomElement openProjectFile(const QString& projectFileName) throw(Exception); - void loadProject(QDomElement root); + GroupWidget *loadProject(QDomElement root) throw(Exception); void loadBlastConfiguration(QString confFile) throw(Exception); void loadReferencesFromXml() throw(Exception);