20 #ifndef Tulip_GLMAINVIEW_H
21 #define Tulip_GLMAINVIEW_H
23 #include <tulip/ViewWidget.h>
24 #include <QtGui/QAction>
25 #include <QtGui/QMenu>
27 class QGraphicsProxyWidget;
30 class GlOverviewGraphicsItem;
31 class SceneConfigWidget;
32 class SceneLayersConfigWidget;
65 tlp::GlOverviewGraphicsItem* _overviewItem;
66 QGraphicsProxyWidget* _quickAccessBarItem;
68 QAction *_centerViewAction;
69 QAction *_forceRedrawAction;
73 tlp::QuickAccessBar* _quickAccessBar;
74 tlp::SceneConfigWidget* _sceneConfigurationWidget;
75 tlp::SceneLayersConfigWidget* _sceneLayersConfigurationWidget;
81 virtual QList<QWidget*> configurationWidgets()
const;
82 bool overviewVisible()
const;
83 QPixmap snapshot(
const QSize &outputSize=QSize());
99 virtual void refresh();
104 virtual void drawOverview(
bool generatePixmap=
true);
109 virtual void centerView();
114 void setOverviewVisible(
bool);
119 void applySettings();
124 void openSnapshotDialog();
127 virtual void glMainViewDrawn(
bool graphChanged);
128 virtual void sceneRectChanged(
const QRectF&);
129 void setQuickAccessBarVisible(
bool);
130 void fillContextMenu(QMenu *menu,
const QPointF &);
133 virtual void setupWidget();
134 bool quickAccessBarVisible()
const;
135 void assignNewGlMainWidget(
GlMainWidget *glMainWidget,
bool deleteOldGlMainWidget=
true);
137 tlp::GlOverviewGraphicsItem* overviewItem()
const;