X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/756baf5c8eaf003e8271dab9c395de2b0e704857..2bdaa0aa3fab52f0808f60d9bbdabcd56d0efae9:/Parameters.h diff --git a/Parameters.h b/Parameters.h index ccd24ff..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; @@ -78,14 +79,23 @@ public : inline void setCursorState(CursorState state) { cursorState = state; } inline void setDispatcher(Dispatcher* _dispatcher) { dispatcher = _dispatcher;} + // testers + + // others + static QString normalizeName(const QString& name); + QList searchResourceByName(const QString& name); + /*************************************************** attributes that are general to the application ***************************************************/ BlockLibraryTree* categoryTree; QList refPathes; QList implPathes; + QList sourcePathes; QList availableBlocks; QList availableImplementations; + QList availableResources; + ReferenceBlock* delayRef; BlockImplementation* delayImpl; @@ -125,8 +135,13 @@ public : bool unsaveModif; bool isRstClkShown; QMap blockToItem; // allow to retrieve a box item from a functionnal block + 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 @@ -149,6 +164,8 @@ public : void loadImplementationsFromLib() throw(Exception); void saveImplementationsToLib() throw(Exception); + void loadSources() throw(Exception); + void addAvailableBlock(ReferenceBlock *block); void parametersValidation(); void connectionsValidation(); @@ -165,7 +182,7 @@ public : void save(QString confFile); - QString projectPath; + private: Graph* graph; // the graph model of blocks