23 #include <tulip/tulipconf.h> 24 #include <tulip/View.h> 46 QSet<QGraphicsItem *> _items;
47 QGraphicsView* _graphicsView;
48 QWidget* _centralWidget;
49 QGraphicsItem* _centralWidgetItem;
51 void refreshItemsParenthood();
61 virtual QGraphicsView* graphicsView()
const;
62 #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)) 63 virtual void resetGraphicsScene() { }
71 virtual void setupUi();
87 virtual void graphDeleted(
Graph *parentGraph);
95 virtual void setupWidget()=0;
101 void addToScene(QGraphicsItem* item);
107 void removeFromScene(QGraphicsItem* item);
114 void setCentralWidget(QWidget*,
bool deleteOldCentralWidget=
true);
120 virtual QGraphicsItem* centralItem()
const;
122 QPixmap snapshot(
const QSize &outputSize=QSize())
const;
127 #endif // VIEWWIDGET_H
Interactor provides a way to handle user inputs over a view. Basically, The interactor class is an ov...
View plugins provide a way to dynamically add to a Tulip plateform various ways to visualize a graph...