X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/8fb3c55ee009a11db5e1c08a4cfb286979412745..HEAD:/Dispatcher.h diff --git a/Dispatcher.h b/Dispatcher.h index cf14b6a..425c158 100644 --- a/Dispatcher.h +++ b/Dispatcher.h @@ -75,7 +75,7 @@ public: void setSceneCounter(Context context, int value); // testers // others - GroupWidget* createTopScene(Context context); + GroupWidget* createTopScene(Context context, double mainClock = 0.0); GroupWidget* createChildScene(Context context, GroupWidget* parentWidget, BoxItem* upperItemOfGroupItem = NULL); void destroyScene(Context context, GroupScene* scene); GroupWidget *addNewEmptyGroup(Context context, GroupScene *scene, bool show = true); @@ -94,7 +94,7 @@ public: /************************** * block ops *************************/ - BoxItem* addBlock(Context context, int idCategory, int idBlock, int idScene, QHash clkRstToGen ); + void addBlock(Context context, int idCategory, int idBlock, int idScene, QHash clkRstToGen ); void addClkRstGenBlock(Context context, double frequency); void removeBoxItem(Context context, BoxItem* item); void duplicateBoxItem(Context context, BoxItem* item); @@ -146,6 +146,10 @@ public: bool createConnection(Context context, InterfaceItem *iface1, InterfaceItem *iface2, bool visible = true); void removeAllBlockConnections(Context context, AbstractBoxItem *item); void removeConnection(Context context, ConnectionItem *conn); + void connectBoxItemClock(Context context, BoxItem* item, QString clkName, int idGen = 0) throw(Exception); + void connectBoxItemReset(Context context, BoxItem* item, QString rstName, int idGen = 0) throw(Exception); + void connectStimuliItemClock(Context context, StimuliItem* item, QString clkName, int idGen = 0) throw(Exception); + void connectStimuliItemReset(Context context, StimuliItem* item, QString rstName, int idGen = 0) throw(Exception); // analysis ops