Commit cce9f8e0 authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum
Browse files

[CHANGE] - now we have a nice default (first start) layout of the docks

parent 4e9e76fd
......@@ -192,13 +192,17 @@ void WMainWindow::setupGUI()
// add all docks
addDockWidget( Qt::RightDockWidgetArea, m_controlPanel->getModuleDock() );
// Diabeld Network Editor due to bug: #11
// Disabled Network Editor due to bug: #11
// addDockWidget( Qt::RightDockWidgetArea, m_networkEditor );
// tabifyDockWidget( m_networkEditor, m_controlPanel->getModuleDock() );
addDockWidget( Qt::RightDockWidgetArea, m_controlPanel->getColormapperDock() );
addDockWidget( Qt::RightDockWidgetArea, m_controlPanel->getRoiDock() );
// tabify those panels by default
tabifyDockWidget( m_controlPanel->getModuleDock(), m_controlPanel->getColormapperDock() );
tabifyDockWidget( m_controlPanel->getColormapperDock(), m_controlPanel->getRoiDock() );
m_controlPanel->getModuleDock()->raise();
addDockWidget( Qt::RightDockWidgetArea, m_controlPanel );
......@@ -208,6 +212,7 @@ void WMainWindow::setupGUI()
m_glDock->setDocumentMode( true );
setCentralWidget( m_glDock );
WQtGLDockWidget* mainGLDock = new WQtGLDockWidget( "main", "3D View", m_glDock );
mainGLDock->setMinimumWidth( 500 );
mainGLDock->getGLWidget()->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding );
m_mainGLWidget = mainGLDock->getGLWidget();
m_glDock->addDockWidget( Qt::RightDockWidgetArea, mainGLDock );
......
......@@ -45,6 +45,9 @@ WQtNavGLWidget::WQtNavGLWidget( QString viewTitle, QString dockTitle, QWidget* p
propertyWidgetMap.clear();
m_sliderTitle = QString( sliderTitle.c_str() );
setMinimumWidth( 200 );
setMaximumWidth( 300 );
m_scene = new WGEScene();
m_scene->setDataVariance( osg::Object::DYNAMIC );
getGLWidget()->getViewer()->getView()->requestContinuousUpdate( false );
......
......@@ -71,6 +71,7 @@ WQtControlPanel::WQtControlPanel( WMainWindow* parent )
setObjectName( "Control Panel Dock" );
m_mainWindow = parent;
setMinimumWidth( 300 );
m_panel = new QWidget( this );
m_moduleTreeWidget = new WQtTreeWidget( m_panel );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment