21 #ifndef GLMAINWIDGETGRAPHICSITEM_H
22 #define GLMAINWIDGETGRAPHICSITEM_H
32 #include <QtGui/QGraphicsObject>
33 #include <tulip/tulipconf.h>
41 class TLP_QT_SCOPE GlMainWidgetGraphicsItem :
public QGraphicsObject {
45 virtual ~GlMainWidgetGraphicsItem();
47 void paint(QPainter *painter,
const QStyleOptionGraphicsItem *option, QWidget *widget);
49 QRectF boundingRect()
const;
51 void resize(
int width,
int height);
53 void setRedrawNeeded(
bool redrawNeeded) {
54 this->_redrawNeeded=redrawNeeded;
61 bool eventFilter(QObject *, QEvent *evt);
65 void widgetPainted(
bool redraw);
68 void keyPressEvent(QKeyEvent *event);
69 void keyReleaseEvent(QKeyEvent *event);
70 void wheelEvent(QGraphicsSceneWheelEvent *event);
71 void mouseMoveEvent(QGraphicsSceneMouseEvent *event);
72 void mousePressEvent(QGraphicsSceneMouseEvent *event);
73 void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
74 void hoverMoveEvent(QGraphicsSceneHoverEvent * event);
75 void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event);
76 void contextMenuEvent(QGraphicsSceneContextMenuEvent * event);
77 void dragEnterEvent(QGraphicsSceneDragDropEvent *event);
78 void dragLeaveEvent(QGraphicsSceneDragDropEvent *event);
79 void dragMoveEvent(QGraphicsSceneDragDropEvent *event);
80 void dropEvent(QGraphicsSceneDragDropEvent *event);
83 void glMainWidgetDraw(GlMainWidget *,
bool);
84 void glMainWidgetRedraw(GlMainWidget *);
95 #endif // GLMAINWIDGETGRAPHICSITEM_H