X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/d30c9cf675ad7141d1c8e31d2e72315267d45cf2..f311fbc3e1436bf248c54225f0743cfa671c4bd7:/GroupScene.h?ds=inline diff --git a/GroupScene.h b/GroupScene.h index 3078305..e7b42ec 100644 --- a/GroupScene.h +++ b/GroupScene.h @@ -51,7 +51,8 @@ public: inline QList getBlockItems() { return blockItems; } inline QList getConnectionItems() { return connectionItems; } inline QList getChildrenScene() { return childrenScene; } - inline GroupWidget* getGroupWindow() { return window; } + inline GroupScene* getParentScene() { return parentScene; } + inline GroupWidget* getGroupWidget() { return window; } inline int getId() { return id; } inline EditMode getEditionMode() { return editMode; } InterfaceItem* getSelectedInterface(int id); @@ -77,6 +78,8 @@ public: void removeConnectionItem(ConnectionItem* item); void removeGroupItem(); inline void addChildScene(GroupScene* child) { childrenScene.append(child); } + inline void removeChildScene(GroupScene* child) { childrenScene.removeAll(child); } + inline int getNbChildScene() { return childrenScene.size(); } void unselecteInterfaces(); QList getGroupAndBlocks(); @@ -94,7 +97,7 @@ public: private: Dispatcher *dispatcher; Parameters *params; - GroupScene* parentScene; // the parnet scene, =NULL for top scene + GroupScene* parentScene; // the parent scene, =NULL for top scene GroupWidget* window; // the GroupWindow that contains that scene int id; GroupItem *groupItem; // mandatory to be an instance of GroupItem.