20 #ifndef Tulip_GLMAINVIEW_H
21 #define Tulip_GLMAINVIEW_H
23 #include <tulip/ViewWidget.h>
25 class QGraphicsProxyWidget;
30 class GlOverviewGraphicsItem;
31 class SceneConfigWidget;
32 class SceneLayersConfigWidget;
65 tlp::GlOverviewGraphicsItem* _overviewItem;
66 bool isOverviewVisible;
67 QGraphicsProxyWidget* _quickAccessBarItem;
69 QAction *_centerViewAction;
70 QAction *_forceRedrawAction;
74 tlp::QuickAccessBar* _quickAccessBar;
75 tlp::SceneConfigWidget* _sceneConfigurationWidget;
76 tlp::SceneLayersConfigWidget* _sceneLayersConfigurationWidget;
82 virtual QList<QWidget*> configurationWidgets()
const;
83 bool overviewVisible()
const;
84 QPixmap snapshot(
const QSize &outputSize=QSize())
const;
100 virtual void refresh();
105 virtual void drawOverview(
bool generatePixmap=
true);
110 virtual void centerView(
bool graphChanged =
false);
115 void setOverviewVisible(
bool);
120 void setViewOrtho(
bool);
125 void applySettings();
130 void openSnapshotDialog();
135 virtual void glMainViewDrawn(
bool graphChanged);
136 virtual void sceneRectChanged(
const QRectF&);
137 void setQuickAccessBarVisible(
bool);
138 void fillContextMenu(QMenu *menu,
const QPointF &);
141 virtual void setupWidget();
142 bool quickAccessBarVisible()
const;
143 void assignNewGlMainWidget(
GlMainWidget *glMainWidget,
bool deleteOldGlMainWidget=
true);
144 bool eventFilter(QObject* obj, QEvent* event);
146 tlp::GlOverviewGraphicsItem* overviewItem()
const;