Add feature to disable current module

This commit is contained in:
jfmcarreira committed 2014-02-21 18:58:07 +00:00
1 parent 87cad865fe
commit 468d525b16
5 files changed
+28 -7

No files matched your search

+7
View File
@@ -115,6 +115,11 @@ bool SubWindowHandle::loadFile( const QString &fileName )
*/
Void SubWindowHandle::enableModule( PlaYUVerModuleIf* select_module )
{
if( m_pcCurrentModule == select_module )
{
disableModule();
return;
}
m_pcCurrentModule = select_module;
m_pcCurrentModule->create( m_pCurrStream->getFrame( m_pcCurrentModule->getModImage() ) );
refreshFrame();
@@ -122,6 +127,8 @@ Void SubWindowHandle::enableModule( PlaYUVerModuleIf* select_module )
Void SubWindowHandle::disableModule()
{
if( !m_pcCurrentModule )
return;
m_pcCurrentModule->destroy();
m_pcCurrentModule = NULL;
refreshFrame();