Change video lock read/write setting and add all sequences when it is enable. check if file exists before loading it

This commit is contained in:
jfmcarreira committed 2014-12-09 18:13:59 +00:00
1 parent a55893db93
commit fc5e4147f3
3 files changed
+18 -10

No files matched your search

+1 -6
View File
@@ -93,14 +93,9 @@ Bool Settings::getRepeat()
{
return m_settings.value( "Playing/Repeat", false ).toBool();
}
Bool Settings::getVideoLock()
{
return m_settings.value( "Playing/VideoLock", false ).toBool();
}
Void Settings::setPlayingSettings( Bool repeat, Bool lock )
Void Settings::setPlayingSettings( Bool repeat)
{
m_settings.setValue( "Playing/Repeat", repeat );
m_settings.setValue( "Playing/VideoLock", lock );
}
Void Settings::setRecentFileList( PlaYUVerStreamInfoVector recentFileList )
+1 -2
View File
@@ -54,8 +54,7 @@ public:
Void setSelectedTool( Int);
Bool getRepeat();
Bool getVideoLock();
Void setPlayingSettings( Bool repeat, Bool lock );
Void setPlayingSettings( Bool repeat );
Void setDockVisibility( Bool statusStreamProperties, Bool statusFrameProperties, Bool statusQualityMeasurement );
Void getDockVisibility( Bool& statusStreamProperties, Bool& statusFrameProperties, Bool& statusQualityMeasurement );
+16 -2
View File
@@ -155,6 +155,11 @@ Void plaYUVerApp::closeEvent( QCloseEvent *event )
Void plaYUVerApp::loadFile( QString fileName, PlaYUVerStreamInfo* pStreamInfo )
{
if( !QFileInfo( fileName ).exists() )
{
statusBar()->showMessage( "File do not exists!" );
}
SubWindowHandle *interfaceChild = plaYUVerApp::findSubWindow( mdiArea, fileName );
if( interfaceChild )
{
@@ -637,6 +642,7 @@ Void plaYUVerApp::stop()
}
}
m_arrayActions[PLAY_ACT]->setIcon( style()->standardIcon( QStyle::SP_MediaPlay ) );
m_arrayActions[VIDEO_LOCK_ACT]->setChecked( false );
updateTotalFrameNum();
}
@@ -763,6 +769,14 @@ Void plaYUVerApp::lockButtonEvent()
{
if( m_acPlayingSubWindows.size() > 1 )
m_acPlayingSubWindows.clear();
SubWindowHandle *subWindow;
for( Int i = 0; i < mdiArea->subWindowList().size(); i++ )
{
subWindow = qobject_cast<SubWindowHandle *>( mdiArea->subWindowList().at( i ) );
if( !subWindow->getIsModule() )
m_acPlayingSubWindows.append( subWindow );
}
}
}
updateCurrFrameNum();
@@ -1511,7 +1525,7 @@ Void plaYUVerApp::readSettings()
//m_appTool = ( ViewArea::eTool )settings.getSelectedTool();
//setAllSubWindowTool();
m_arrayActions[VIDEO_LOOP_ACT]->setChecked( settings.getRepeat() );
m_arrayActions[VIDEO_LOCK_ACT]->setChecked( settings.getVideoLock() );
m_arrayActions[VIDEO_LOCK_ACT]->setChecked( false );
m_aRecentFileStreamInfo = settings.getRecentFileList();
updateRecentFileActions();
@@ -1536,7 +1550,7 @@ Void plaYUVerApp::writeSettings()
settings.setSelectedTool( ( Int )m_appTool );
settings.setRecentFileList( m_aRecentFileStreamInfo );
settings.setDockVisibility( m_pcStreamProperties->isVisible(), m_pcFrameProperties->isVisible(), m_pcQualityMeasurement->isVisible() );
settings.setPlayingSettings( m_arrayActions[VIDEO_LOOP_ACT]->isChecked(), m_arrayActions[VIDEO_LOCK_ACT]->isChecked() );
settings.setPlayingSettings( m_arrayActions[VIDEO_LOOP_ACT]->isChecked() );
}
} // NAMESPACE