X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/08289b4fcdfc9478089ba586c05d74222bb1b12c..d30c9cf675ad7141d1c8e31d2e72315267d45cf2:/Dispatcher.h?ds=sidebyside diff --git a/Dispatcher.h b/Dispatcher.h index 4475518..fa77360 100644 --- a/Dispatcher.h +++ b/Dispatcher.h @@ -43,6 +43,7 @@ public: GroupWidget* createChildScene(GroupWidget* parentWidget, BoxItem* upperItemOfGroupItem = NULL); void showRaiseWindow(AbstractBoxItem *item); void showRstClkInter(AbstractBoxItem *item); + void addNewEmptyGroup(); void addNewFullGroup(); inline GroupWidget* getCurrentGroup() { return currentGroup; } @@ -50,8 +51,9 @@ public: bool isCurrentProject; public slots: - + QMap getAllGroupNames(); GroupScene* searchSceneById(int id); + GroupScene* searchSceneByName(QString name); BoxItem* searchBlockItemById(int id); GroupItem* searchGroupItemById(int id); InterfaceItem* searchInterfaceItemById(int id); @@ -59,7 +61,7 @@ public slots: void removeBlock(AbstractBoxItem* item); void duplicateBlock(BoxItem* item); void duplicateInterface(InterfaceItem* item); - void addBlock(int idCategory, int idBlock); + void addBlock(int idCategory, int idBlock, int idScene); ConnectionItem *addConnection(InterfaceItem *input, InterfaceItem *output); void removeAllBlockConnections(AbstractBoxItem *block); void removeConnection(ConnectionItem *conn); @@ -84,6 +86,8 @@ private: QList groupList; GroupWidget* currentGroup; GroupWidget *topGroup; + + static int sceneCounter; }; #endif // __DISPATCHER_H__