X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/1b7818e18ed7bcf3464e307b97c6e0e6d72cc69b..bc5d59217a24b25c1b913bec4a41dd026d02720c:/GroupScene.h diff --git a/GroupScene.h b/GroupScene.h index bcaa799..10a5a90 100644 --- a/GroupScene.h +++ b/GroupScene.h @@ -12,7 +12,7 @@ class GroupWidget; class GroupItem; #include "BoxItem.h" class BoxItem; -class SourceItem; +class StimuliItem; class AbstractBoxItem; class ConnectionItem; class InterfaceItem; @@ -54,7 +54,7 @@ public: // attributes getters inline GroupItem* getGroupItem() {return groupItem;} inline QList getBoxItems() { return boxItems; } - inline QList getSourceItems() { return sourceItems; } + inline QList getSourceItems() { return stimuliItems; } inline QList getConnectionItems() { return connectionItems; } inline QList getChildrenScene() { return childrenScene; } inline GroupScene* getParentScene() { return parentScene; } @@ -76,9 +76,10 @@ public: // others // BoxItem related - BoxItem* createBoxItem(AbstractBlock* block, BoxItem::Position hPos = Center, BoxItem::Position vPos = Center, AbstractBoxItem::LockType lock = AbstractBoxItem::NoLock, BoxItem::SpanType span = BoxItem::NoSpan); //! create a new BoxItem and place it at the center of the scene + BoxItem* createBoxItem(AbstractBlock* block, BoxItem::Position position = BoxItem::Free, int lock = AbstractBoxItem::NoLock, BoxItem::SpanType span = BoxItem::NoSpan); //! create a new BoxItem and place it at the center of the scene void addBoxItem(BoxItem* item); //! add an already configured BoxItem in the scene. void removeBoxItem(BoxItem* item); + BoxItem* searchBoxItemByName(QString name); // ConnectionItem related void createConnectionItem(InterfaceItem* iface1, InterfaceItem* iface2, bool visible = true); @@ -89,10 +90,10 @@ public: // GroupItem related void removeGroupItem(); - // SourceItem related - SourceItem* createSourceItem(AbstractBlock* block); //! create a new SourceItem and place it around the group item - void addSourceItem(SourceItem* item); //! add an already configured SourceItem in the scene. - void removeSourceItem(SourceItem* item); + // StimuliItem related + StimuliItem* createStimuliItem(AbstractBlock* block); //! create a new SourceItem and place it around the group item + void addStimuliItem(StimuliItem* item); //! add an already configured SourceItem in the scene. + void removeStimuliItem(StimuliItem* item); // child scenes related inline void addChildScene(GroupScene* child) { childrenScene.append(child); } @@ -118,7 +119,7 @@ private: GroupItem *groupItem; //! for convenience, the group item is directly accessible via this attribute QList connectionItems; //! for convenience, connections are directly accessible via this attribute QList boxItems; //! for convenience, box items are directly accessible via this attribute - QList sourceItems; //! for convenience, box items are directly accessible via this attribute. Only usefull for top scene + QList stimuliItems; //! for convenience, box items are directly accessible via this attribute. Only usefull for top scene QList childrenScene;//! for convenience, children scenes are directly accessible via this attribute bool topScene; EditMode editMode;