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;
66 tlp::GlOverviewGraphicsItem* _overviewItem;
67 bool isOverviewVisible;
68 QGraphicsProxyWidget* _quickAccessBarItem;
70 QAction *_centerViewAction;
71 QAction *_forceRedrawAction;
75 tlp::QuickAccessBar* _quickAccessBar;
76 tlp::SceneConfigWidget* _sceneConfigurationWidget;
77 tlp::SceneLayersConfigWidget* _sceneLayersConfigurationWidget;
81 enum OverviewPosition {OVERVIEW_TOP_LEFT, OVERVIEW_TOP_RIGHT, OVERVIEW_BOTTOM_LEFT, OVERVIEW_BOTTOM_RIGHT};
86 virtual QList<QWidget*> configurationWidgets()
const;
87 bool overviewVisible()
const;
88 QPixmap snapshot(
const QSize &outputSize=QSize())
const;
89 void setOverviewPosition(
const OverviewPosition &position);
105 virtual void refresh();
110 virtual void drawOverview(
bool generatePixmap=
true);
115 virtual void centerView(
bool graphChanged =
false);
120 void setOverviewVisible(
bool);
125 void setViewOrtho(
bool);
130 void applySettings();
135 void openSnapshotDialog();
140 virtual void glMainViewDrawn(
bool graphChanged);
141 virtual void sceneRectChanged(
const QRectF&);
142 void setQuickAccessBarVisible(
bool);
143 void fillContextMenu(QMenu *menu,
const QPointF &);
146 virtual void setupWidget();
147 bool quickAccessBarVisible()
const;
148 void assignNewGlMainWidget(
GlMainWidget *glMainWidget,
bool deleteOldGlMainWidget=
true);
149 bool eventFilter(QObject* obj, QEvent* event);
151 tlp::GlOverviewGraphicsItem* overviewItem()
const;
153 OverviewPosition _overviewPosition;