23 #include <tulip/tulipconf.h>
24 #include <tulip/View.h>
52 QSet<QGraphicsItem *> _items;
53 QGraphicsView *_graphicsView;
54 QWidget *_centralWidget;
55 QGraphicsItem *_centralWidgetItem;
57 void refreshItemsParenthood();
67 QGraphicsView *graphicsView()
const override;
69 virtual void graphicsViewResized(
int ,
int ) {}
76 void setupUi()
override;
93 void graphDeleted(
Graph *parentGraph)
override;
103 virtual void setupWidget() = 0;
109 void addToScene(QGraphicsItem *item);
115 void removeFromScene(QGraphicsItem *item);
124 void setCentralWidget(QWidget *,
bool deleteOldCentralWidget =
true);
130 QGraphicsItem *centralItem()
const override;
132 QPixmap snapshot(
const QSize &outputSize = QSize())
const override;
136 #endif // VIEWWIDGET_H