Save visibility of the side bar docks
This commit is contained in:
1 parent
db59d81f57
commit
49e9fcce46
3 files changed
+23
No files matched your search
@@ -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()
|
||||
|
||||
@@ -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 );
|
||||
|
||||
@@ -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() );
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user