18 #ifndef _GAZEBO_GRAPH_VIEW_HH_ 19 #define _GAZEBO_GRAPH_VIEW_HH_ 42 private:
void resizeEvent(QResizeEvent *_event);
47 private:
void scrollContentsBy(
int _dx,
int _dy);
51 private:
void contextMenuEvent(QContextMenuEvent *_event);
55 private:
void wheelEvent(QWheelEvent *_event);
59 private:
void mouseMoveEvent(QMouseEvent *_event);
63 private:
void mousePressEvent(QMouseEvent *_event);
67 private:
void mouseReleaseEvent(QMouseEvent *_event);
71 private:
void mouseDoubleClickEvent(QMouseEvent *_event);
75 private:
void keyPressEvent(QKeyEvent *_event);
89 private:
double viewScale;
Forward declarations for the common classes.
Definition: Animation.hh:33
void customContextMenuRequested(QString _id)
Qt signal emitted when a context menu event is triggered.
A view for the graph scene.
Definition: GraphView.hh:29
GraphView(QWidget *_parent=0)
Constructor.
QGraphicsItem * lastClickedItem
Store which item was clicked last.
Definition: GraphView.hh:86
void itemDoubleClicked(QString _id)
Qt signal emitted when an item is double clicked.
virtual ~GraphView()=default
Destructor.