21 #ifndef GLMAINWIDGETGRAPHICSITEM_H
22 #define GLMAINWIDGETGRAPHICSITEM_H
32 #include <QGraphicsObject>
35 #include <tulip/tulipconf.h>
40 class TLP_QT_SCOPE GlMainWidgetGraphicsItem :
public QGraphicsObject {
44 virtual ~GlMainWidgetGraphicsItem();
46 void paint(QPainter *painter,
const QStyleOptionGraphicsItem *option, QWidget *widget);
48 QRectF boundingRect()
const;
50 void resize(
int width,
int height);
52 void setRedrawNeeded(
bool redrawNeeded) {
53 this->_redrawNeeded=redrawNeeded;
60 bool eventFilter(QObject *, QEvent *evt);
64 void widgetPainted(
bool redraw);
67 void keyPressEvent(QKeyEvent *event);
68 void keyReleaseEvent(QKeyEvent *event);
69 void wheelEvent(QGraphicsSceneWheelEvent *event);
70 void mouseMoveEvent(QGraphicsSceneMouseEvent *event);
71 void mousePressEvent(QGraphicsSceneMouseEvent *event);
72 void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
73 void hoverMoveEvent(QGraphicsSceneHoverEvent * event);
74 void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event);
75 void contextMenuEvent(QGraphicsSceneContextMenuEvent * event);
76 void dragEnterEvent(QGraphicsSceneDragDropEvent *event);
77 void dragLeaveEvent(QGraphicsSceneDragDropEvent *event);
78 void dragMoveEvent(QGraphicsSceneDragDropEvent *event);
79 void dropEvent(QGraphicsSceneDragDropEvent *event);
82 void glMainWidgetDraw(GlMainWidget *,
bool);
83 void glMainWidgetRedraw(GlMainWidget *);
94 #endif // GLMAINWIDGETGRAPHICSITEM_H