8 #ifndef GUI_GRAPH_VIEW_H_
9 #define GUI_GRAPH_VIEW_H_
12 #include <QGraphicsView>
14 #include <QWheelEvent>
19 #include <QRubberBand>
27 #include "graph_scene.h"
28 #include "node_widget.h"
70 void fitInView(QRectF scene, Qt::AspectRatioMode aspectRatio);
82 std::vector<NodeWidget*> prev_marked_nodes;
85 QSlider* zoom_slider_;
91 QRubberBand* rubberBand;
94 QPoint rubberBandOrigin;
138 void zoomIn(
int level = 1);
void resizeEvent(QResizeEvent *)
Definition: graph_view.cc:209
void zoomIn(int level=1)
Definition: graph_view.cc:78
std::vector< NodeWidget * > get_prev_marked()
Definition: graph_view.cc:198
void mouseMoveEvent(QMouseEvent *event)
Definition: graph_view.cc:136
void reset_prev_marked()
Definition: graph_view.cc:186
void itemDoubleClicked(QGraphicsItem *item)
QRectF visibleRect()
Definition: graph_view.cc:203
void mouseDoubleClickEvent(QMouseEvent *event)
Definition: graph_view.cc:167
void wheelEvent(QWheelEvent *event)
Definition: graph_view.cc:46
void set_zoom_level(uint value)
Definition: graph_view.cc:88
Definition: graph_scene.h:24
Definition: graph_view.h:30
void onCustomContextMenu(const QPoint &point)
Definition: graph_view.cc:177
void mouseReleaseEvent(QMouseEvent *event)
Definition: graph_view.cc:144
GraphView(QWidget *parent=0)
Definition: graph_view.cc:3
void itemCtrlClicked(QGraphicsItem *item)
void item_selected_in_graph(std::string name, bool first)
void right_click_menu(const QPoint &point, std::string name)
void zoomOut(int level=1)
Definition: graph_view.cc:83
void setupView()
Definition: graph_view.cc:13
void mousePressEvent(QMouseEvent *event)
Definition: graph_view.cc:93