X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/abbc64cf04a35ab3549d5c516f44c7c5921baa63..5ce5a13d19945d096272447daa2e242c0a01b9f0:/Parameters.h?ds=sidebyside diff --git a/Parameters.h b/Parameters.h index 8393a79..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 : @@ -104,6 +112,7 @@ public : /*************************************************** attributes that are specific for the current project ****************************************************/ + bool isCurrentProject; // true if a projet is currently open int sceneMode; // takes values from MODE_XXX CursorState cursorState; EditState editState; // takes values from EDIT_STATE_XXX @@ -112,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);