X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/c85843afb9bd492b46d6fe87a8287157097483f5..8fb3c55ee009a11db5e1c08a4cfb286979412745:/Parameters.h diff --git a/Parameters.h b/Parameters.h index f03ca0a..a541ee6 100644 --- a/Parameters.h +++ b/Parameters.h @@ -24,6 +24,7 @@ class Graph; class GroupWidget; #include "BlockImplementation.h" +#include "ExternalResource.h" #include "Exception.h" class Exception; @@ -82,6 +83,7 @@ public : // others static QString normalizeName(const QString& name); + QList searchResourceByName(const QString& name); /*************************************************** attributes that are general to the application @@ -89,8 +91,11 @@ public : BlockLibraryTree* categoryTree; QList refPathes; QList implPathes; + QList sourcePathes; QList availableBlocks; QList availableImplementations; + QList availableResources; + ReferenceBlock* delayRef; BlockImplementation* delayImpl; @@ -133,8 +138,10 @@ public : QString projectPath; QString projectName; QString projectFile; // equals to projectPath/projectName.xml + bool autoConnMainClk; // true if auto-connection to main clock (i.e. ext_clk) + QList clocks; // clocks[0] is the main clock. - Graph* createGraph(); + Graph* createGraph(bool createTopGroupIfaces = true); void destroyGraph(); inline Graph* getGraph() { return graph; } ReferenceBlock* getReferenceBlock(int idCategory, int idBlock); // get the reference block from its category and index @@ -157,6 +164,8 @@ public : void loadImplementationsFromLib() throw(Exception); void saveImplementationsToLib() throw(Exception); + void loadSources() throw(Exception); + void addAvailableBlock(ReferenceBlock *block); void parametersValidation(); void connectionsValidation();