- BoxItem* createBlockItem(AbstractBlock* block);
- void addBlockItem(BoxItem* item);
- void removeBlockItem(BoxItem* item);
- void createConnectionItem(InterfaceItem* iface1, InterfaceItem* iface2);
+
+ // BoxItem related
+ 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);