1
//---------------------------------------------------------------------------
3
// Project: OpenWalnut ( http://www.openwalnut.org )
5
// Copyright 2009 OpenWalnut Community, BSV@Uni-Leipzig and CNCF@MPI-CBS
6
// For more information see http://www.openwalnut.org/copying
8
// This file is part of OpenWalnut.
10
// OpenWalnut is free software: you can redistribute it and/or modify
11
// it under the terms of the GNU Lesser General Public License as published by
12
// the Free Software Foundation, either version 3 of the License, or
13
// (at your option) any later version.
15
// OpenWalnut is distributed in the hope that it will be useful,
16
// but WITHOUT ANY WARRANTY; without even the implied warranty of
17
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
// GNU Lesser General Public License for more details.
20
// You should have received a copy of the GNU Lesser General Public License
21
// along with OpenWalnut. If not, see <http://www.gnu.org/licenses/>.
23
//---------------------------------------------------------------------------
25
#ifndef WQTGLDOCKWIDGET_H
26
#define WQTGLDOCKWIDGET_H
28
#include <QtGui/QDockWidget>
29
#include <QtGui/QVBoxLayout>
31
#include "core/graphicsEngine/WGECamera.h"
33
#include "WQtGLWidget.h"
36
* Dock widget containing only a GLWidget.
38
class WQtGLDockWidget : public QDockWidget
46
* \param viewTitle Title will be used as view title
47
* \param dockTitle The title of the dock widget.
48
* \param parent The widget that manages this widget
49
* \param projectionMode The projection mode used in the GL widget.
50
* \param shareWidget this widget will share OpenGL display lists and texture objects with shareWidget
52
WQtGLDockWidget( QString viewTitle, QString dockTitle, QWidget* parent, WGECamera::ProjectionMode projectionMode = WGECamera::ORTHOGRAPHIC,
53
const QWidget* shareWidget = 0 );
58
virtual ~WQtGLDockWidget();
61
* Gets the contained GL widget instance.
63
* \return pointer to GL widget
65
boost::shared_ptr< WQtGLWidget > getGLWidget() const;
69
* Layout of this widget. Use this to extend the dock width other widgets (i.e. PropWidgets).
71
QVBoxLayout* m_layout;
74
* The panel widget using m_layout.
80
* If the dock widget changes its visibility.
82
* \param visible if true, the dock is visible
84
void handleVisibilityChange( bool visible );
90
boost::shared_ptr<WQtGLWidget> m_glWidget;
93
#endif // WQTGLDOCKWIDGET_H