]> AND Private Git Repository - blast.git/blobdiff - Dispatcher.h
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
correcting bugs but still exsitings
[blast.git] / Dispatcher.h
index 4475518c5cc96e66b4b5365291abd9ce8430061c..fa773600d4e7356a9368838c3768811750126a1d 100644 (file)
@@ -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<int, QString> 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<GroupWidget*> groupList;
   GroupWidget* currentGroup;
   GroupWidget *topGroup;
+
+  static int sceneCounter;
 };
 
 #endif // __DISPATCHER_H__