X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/d30c9cf675ad7141d1c8e31d2e72315267d45cf2..2019e5afdaf7fd0ad21607848710348bbc3be256:/Parameters.h?ds=inline diff --git a/Parameters.h b/Parameters.h index 69887a9..27dc08f 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 : @@ -85,6 +93,8 @@ public : // defaults for vhdl int wbDataWidth; int wbAddressWidth; + QString validityExtension; //! the string to add to ports to obtain the name of the associated validity port. + // defaults for scene elements int defaultBlockWidth; int defaultBlockHeight; @@ -113,16 +123,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);