Commit 58f7d337 authored by Alexander Wiebel's avatar Alexander Wiebel
Browse files

[CHANGE] use some more of the nice dock widget features

parent b9c0d387
......@@ -99,6 +99,7 @@ void WMainWindow::setupGUI()
if( !( WPreferences::getPreference( "qt4gui.hideAxial", &hideWidget ) && hideWidget) )
{
m_navAxial = boost::shared_ptr< WQtNavGLWidget >( new WQtNavGLWidget( "axial", this, 160, "axialPos" ) );
m_navAxial->setFeatures( QDockWidget::AllDockWidgetFeatures );
addDockWidget( Qt::LeftDockWidgetArea, m_navAxial.get() );
connect( m_navAxial.get(), SIGNAL( navSliderValueChanged( QString, int ) ),
&m_propertyManager, SLOT( slotIntChanged( QString, int ) ) );
......@@ -106,6 +107,7 @@ void WMainWindow::setupGUI()
if( !( WPreferences::getPreference( "qt4gui.hideCoronal", &hideWidget ) && hideWidget) )
{
m_navCoronal = boost::shared_ptr< WQtNavGLWidget >( new WQtNavGLWidget( "coronal", this, 200, "coronalPos" ) );
m_navCoronal->setFeatures( QDockWidget::AllDockWidgetFeatures );
addDockWidget( Qt::LeftDockWidgetArea, m_navCoronal.get() );
connect( m_navCoronal.get(), SIGNAL( navSliderValueChanged( QString, int ) ),
&m_propertyManager, SLOT( slotIntChanged( QString, int ) ) );
......@@ -113,6 +115,7 @@ void WMainWindow::setupGUI()
if( !( WPreferences::getPreference( "qt4gui.hideSagittal", &hideWidget ) && hideWidget) )
{
m_navSagittal = boost::shared_ptr< WQtNavGLWidget >( new WQtNavGLWidget( "sagittal", this, 160, "sagittalPos" ) );
m_navSagittal->setFeatures( QDockWidget::AllDockWidgetFeatures );
addDockWidget( Qt::LeftDockWidgetArea, m_navSagittal.get() );
connect( m_navSagittal.get(), SIGNAL( navSliderValueChanged( QString, int ) ),
&m_propertyManager, SLOT( slotIntChanged( QString, int ) ) );
......@@ -139,6 +142,7 @@ void WMainWindow::setupGUI()
setupCompatiblesToolBar();
m_datasetBrowser = new WQtDatasetBrowser( this );
m_datasetBrowser->setFeatures( QDockWidget::AllDockWidgetFeatures );
addDockWidget( Qt::RightDockWidgetArea, m_datasetBrowser );
m_datasetBrowser->addSubject( "Default Subject" );
......
......@@ -51,7 +51,7 @@
WQtDatasetBrowser::WQtDatasetBrowser( WMainWindow* parent )
: QDockWidget( parent )
: QDockWidget( "Dataset Browser", parent )
{
m_mainWindow = parent;
......
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