X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/77e28a24d444098399304f0175b1aba43c83017f..a13795fc34cd1e74f94695d35253c3d00abec9bc:/Parameters.h?ds=inline diff --git a/Parameters.h b/Parameters.h index f03ca0a..8d2fc8c 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,14 +138,14 @@ 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) + double mainClock; // main clock freq (reported in graph->clocks(0)) - Graph* createGraph(); + Graph* initGraph(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 - ReferenceBlock* getHiddenReferenceBlock(QString blockName); // get a hidden block by name, i.e. in category 100 - FunctionalBlock* duplicateFunctionalBlock(FunctionalBlock* block); // adding a copy of a functional block to current group - + ReferenceBlock* getHiddenReferenceBlock(QString blockName); // get a hidden block by name, i.e. in category 100 void clear(); @@ -157,6 +162,8 @@ public : void loadImplementationsFromLib() throw(Exception); void saveImplementationsToLib() throw(Exception); + void loadSources() throw(Exception); + void addAvailableBlock(ReferenceBlock *block); void parametersValidation(); void connectionsValidation();