X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/3bbc311e444c1ef9ac66dd6861fb0acb13ddb72a..6e2b3026c6a496e81642c373796bd39dad33d2a6:/Dispatcher.h?ds=sidebyside diff --git a/Dispatcher.h b/Dispatcher.h index 95e0183..538ee66 100644 --- a/Dispatcher.h +++ b/Dispatcher.h @@ -68,18 +68,20 @@ public slots: BoxItem* getBoxItemById(int id); GroupItem* getGroupItemById(int id); InterfaceItem* getInterfaceItemById(int id); - + // block ops - void addBlock(int idCategory, int idBlock, int idScene); + BoxItem* addBlock(int idCategory, int idBlock, int idScene); void removeBoxItem(BoxItem* item); void duplicateBoxItem(BoxItem* item); void renameFunctionalBlock(BoxItem* item); + void generateBlockVHDL(BoxItem* item); void renameGroupBlock(GroupItem* item); void renameSourceBlock(SourceItem* item); void removeSourceItem(SourceItem* item); void duplicateSourceItem(SourceItem* item); + // interface ops /*! * \brief connectInterToGroup @@ -90,17 +92,7 @@ public slots: * connect to group in the contextual menu. * Thus, parameter item is always owned by a BoxItem */ - void connectInterToGroup(InterfaceItem* item); - /*! - * \brief disconnectInterFromGroup - * \param item item is always owned by a BoxItem - * - * This method is called only when the user right clicks on an InterfaceItem (that belongs - * to a BoxItem and if it IS connected to an InterfaceItem of the GroupItem) and chooses - * disconnect from group in the contextual menu. - * Thus, parameter item is always owned by a BoxItem - */ - void disconnectInterFromGroup(InterfaceItem* item); + void connectInterToGroup(InterfaceItem* item); /*! * \brief removeFunctionalInterface * \param item item is always owned by a BoxItem @@ -122,13 +114,19 @@ public slots: void duplicateInterfaceItem(InterfaceItem* item); void showProperties(InterfaceItem *inter); void renameInterface(InterfaceItem* item); + void showPatterns(InterfaceItem* item); + void showModifier(InterfaceItem* item); + void removeModifier(InterfaceItem* item); // connection ops - bool createConnection(InterfaceItem *iface1, InterfaceItem *iface2); + bool createConnection(InterfaceItem *iface1, InterfaceItem *iface2, bool visible = true); void removeAllBlockConnections(AbstractBoxItem *item); void removeConnection(ConnectionItem *conn); + // analysis ops + void findGraphModifications(FunctionalBlock* block); // find modif so that block has compatible inputs + // others void showBlocksLibrary();