X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/e5af659f87bcb199d6a5f10f09b311138351d0f3..e40a5399ec7887c2606f18575c809b0d05b09278:/GroupItem.h diff --git a/GroupItem.h b/GroupItem.h index 881180c..a7613e7 100644 --- a/GroupItem.h +++ b/GroupItem.h @@ -47,21 +47,25 @@ public: bool isGroupItem(); // others - void interfaceRenamed(); - void updateShape(); + void nameChanged(); + void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0); void load(QDomElement groupElement) throw(Exception); void save(QXmlStreamWriter& writer); -protected: - + void updateShape(); void updateMinimumSize(); // modify the minimum size bool updateGeometry(ChangeType type); + void updateBorderSpanItems(); + + void hoverMoveEvent(QGraphicsSceneHoverEvent *event); + void mousePressEvent(QGraphicsSceneMouseEvent *event); + void mouseMoveEvent(QGraphicsSceneMouseEvent *event); + void mouseReleaseEvent(QGraphicsSceneMouseEvent *event); + +protected: + - void mousePressEvent(QGraphicsSceneMouseEvent *event); - void mouseMoveEvent(QGraphicsSceneMouseEvent *event); - void mouseReleaseEvent(QGraphicsSceneMouseEvent *event); - void hoverMoveEvent(QGraphicsSceneHoverEvent *event); void contextMenuEvent(QGraphicsSceneContextMenuEvent *event); @@ -71,8 +75,8 @@ private: in the top scene */ BoxItem* parentItem; - QRectF rectTitle; - + QRectF rectTitle; + QPointF boxPoint; // the coordinates of the top-left corner of the box (without ifaces) InterfaceItem *isHoverInterface(QPointF point); };