34 #ifndef NODEGRAPHICSITEM_H
35 #define NODEGRAPHICSITEM_H
44 #include <QtGui/QGraphicsSceneContextMenuEvent>
45 #include <QtGui/QWidget>
46 #include <QtGui/QMenu>
53 class ConnectionGraphicsItem;
98 static const int ItemWidth = 60;
103 static const int ItemBaseHeight = 44;
108 static const int ItemPinRowHeight = 12;
140 void setEnabled (
bool enabled );
149 void paint ( QPainter *painter,
const QStyleOptionGraphicsItem *option, QWidget *widget = 0 );
156 Node * getNode ()
const;
173 void bringToFront ();
194 void removeConnectionItems ();
222 void setSelected (
bool selected );
261 void connectionRequested (
Node *sourceNode,
Node *targetNode );
268 void nodeGraphicsItemMoved (
const QPointF &pos );
277 void mousePressEvent ( QGraphicsSceneMouseEvent *event );
284 void mouseReleaseEvent ( QGraphicsSceneMouseEvent *event );
291 void contextMenuEvent ( QGraphicsSceneContextMenuEvent *event );
296 QVariant itemChange ( GraphicsItemChange change,
const QVariant& value );
349 void connectByNameClicked ();
356 void updatePinDisplayMode ( QAction *action );