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

Private GIT Repository
changed sources to stimulis
[blast.git] / GroupItem.h
index 137ff03f4723c5b07d1ec6816c270f363da5b288..a7613e7c941461083f6135aea108b1388436c4ff 100644 (file)
@@ -47,20 +47,25 @@ public:
   bool isGroupItem();
 
   // others  
-  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);
 
 
@@ -70,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);
 };