X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/f311fbc3e1436bf248c54225f0743cfa671c4bd7..4cf57e6db08da791233d75237f62e74bc88dd427:/Parameters.h diff --git a/Parameters.h b/Parameters.h index 7f14814..8a71cfb 100644 --- a/Parameters.h +++ b/Parameters.h @@ -16,10 +16,12 @@ class ReferenceBlock; class GroupBlock; class FunctionalBlock; class GroupScene; +class AbstractBoxItem; class GroupItem; class BoxItem; class InterfaceItem; class Graph; +class GroupWidget; #include "BlockImplementation.h" @@ -84,7 +86,8 @@ public : QList implPathes; QList availableBlocks; QList availableImplementations; - + ReferenceBlock* delayRef; + BlockImplementation* delayImpl; QString refLib; QString implLib; @@ -92,6 +95,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; @@ -117,6 +122,7 @@ public : EditState editState; // takes values from EDIT_STATE_XXX bool unsaveModif; bool isRstClkShown; + QMap blockToItem; // allow to retrieve a box item from a functionnal block Graph* createGraph(); void destroyGraph(); @@ -128,12 +134,13 @@ public : 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); void loadReferencesFromLib() throw(Exception); void saveReferencesToLib() throw(Exception); + void createDelayBlock(); void loadImplementationsFromXml() throw(Exception); void loadImplementationsFromLib() throw(Exception); @@ -150,6 +157,8 @@ public : ReferenceBlock* searchBlockByXml(QString xmlName); ReferenceBlock* searchBlockByMd5(QString sumMd5); + BoxItem* searchFunctionalBlock(AbstractBlock* block); + void save(QString confFile); @@ -166,6 +175,7 @@ private: GroupScene* searchSceneById(int id, GroupScene* scene); BoxItem* searchBlockItemById(int id, GroupScene* scene); + BoxItem* searchFunctionalBlockRecur(AbstractBlock* block, GroupScene* scene); GroupItem* searchGroupItemById(int id, GroupScene* scene); InterfaceItem* searchInterfaceItemById(int id, GroupScene *scene);