diff --git a/source/app/PlaYUVerSettings.cpp b/source/app/PlaYUVerSettings.cpp index f01f241..8e82d68 100755 --- a/source/app/PlaYUVerSettings.cpp +++ b/source/app/PlaYUVerSettings.cpp @@ -73,6 +73,18 @@ Void PlaYUVerSettings::setSelectedTool( Int tool ) m_settings.setValue( "MainWindow/SelectedTool", tool ); } +Void PlaYUVerSettings::setDockVisibility( Bool statusStreamProperties, Bool statusFrameProperties ) +{ + m_settings.setValue( "Dock/StreamProperties", statusStreamProperties ); + m_settings.setValue( "Dock/FrameProperties", statusFrameProperties ); +} + +Void PlaYUVerSettings::getDockVisibility( Bool& statusStreamProperties, Bool& statusFrameProperties ) +{ + statusStreamProperties = m_settings.value( "Dock/StreamProperties", true ).toBool(); + statusFrameProperties = m_settings.value( "Dock/FrameProperties", true ).toBool(); +} + // - - - - - - - - - - - - PLaying Settings - - - - - - - - - - - - - - - - Bool PlaYUVerSettings::getRepeat() diff --git a/source/app/PlaYUVerSettings.h b/source/app/PlaYUVerSettings.h index bb7f98c..889ef5c 100755 --- a/source/app/PlaYUVerSettings.h +++ b/source/app/PlaYUVerSettings.h @@ -56,6 +56,9 @@ public: Bool getVideoLock(); Void setPlayingSettings( Bool repeat, Bool lock ); + Void setDockVisibility( Bool statusStreamProperties, Bool statusFrameProperties ); + Void getDockVisibility( Bool& statusStreamProperties, Bool& statusFrameProperties ); + // - - - - - - - - - - - - Grid Settings - - - - - - - - - - - - - - - GridManager::Style gridStyle(); Void setGridStyle( GridManager::Style v ); diff --git a/source/app/plaYUVerApp.cpp b/source/app/plaYUVerApp.cpp index d38b9be..ed4ed0c 100644 --- a/source/app/plaYUVerApp.cpp +++ b/source/app/plaYUVerApp.cpp @@ -1186,6 +1186,13 @@ Void plaYUVerApp::readSettings() setAllSubWindowTool(); m_arrayActions[VIDEO_LOOP_ACT]->setChecked( settings.getRepeat() ); m_arrayActions[VIDEO_LOCK_ACT]->setChecked( settings.getVideoLock() ); + Bool visibleStreamProp, visibleFrameProp; + settings.getDockVisibility( visibleStreamProp, visibleFrameProp ); + if( !visibleStreamProp ) + m_arraySideBars[STREAM_SIDEBAR]->close(); + if( !visibleFrameProp ) + m_arraySideBars[FRAME_SIDEBAR]->close(); + } Void plaYUVerApp::writeSettings() @@ -1195,6 +1202,7 @@ Void plaYUVerApp::writeSettings() settings.setMainWindowSize( size() ); settings.setLastOpenPath( m_cLastOpenPath ); settings.setSelectedTool( ( Int )m_appTool ); + settings.setDockVisibility( m_pcStreamProperties->isVisible(), m_pcFrameProperties->isVisible() ); settings.setPlayingSettings( m_arrayActions[VIDEO_LOOP_ACT]->isChecked(), m_arrayActions[VIDEO_LOCK_ACT]->isChecked() ); }