Creation of the function ModulesHandle::applyModuleIf and minor changes in the modules
This commit is contained in:
1 parent
dc1827946f
commit
851c2ffb13
6 files changed
+35
-8
No files matched your search
@@ -96,16 +96,36 @@ SubWindowHandle* ModulesHandle::toggleSelectedModuleIf()
|
||||
else
|
||||
{
|
||||
pcSubWindow->enableModule( currModuleIf );
|
||||
currModuleIf->m_pcDisplaySubWindow = pcSubWindow;
|
||||
}
|
||||
currModuleIf->m_pcSubWindow = pcSubWindow;
|
||||
}
|
||||
else
|
||||
{
|
||||
QCoreApplication::processEvents();
|
||||
destroyModuleIf( currModuleIf );
|
||||
}
|
||||
return interfaceChild;
|
||||
}
|
||||
|
||||
PlaYUVerFrame* ModulesHandle::applyModuleIf( PlaYUVerModuleIf *pcCurrModuleIf )
|
||||
{
|
||||
PlaYUVerFrame* processedFrame;
|
||||
|
||||
switch( pcCurrModuleIf->m_cModuleDef.m_uiNumberOfFrames )
|
||||
{
|
||||
case MODULE_REQUIRES_ONE_FRAME:
|
||||
processedFrame = pcCurrModuleIf->process( pcCurrModuleIf->m_pcSubWindow->getCurrFrame() );
|
||||
break;
|
||||
case MODULE_REQUIRES_TWO_FRAMES:
|
||||
break;
|
||||
case MODULE_REQUIRES_THREE_FRAMES:
|
||||
break;
|
||||
}
|
||||
pcCurrModuleIf->m_pcDisplaySubWindow->setCurrFrame( processedFrame );
|
||||
return processedFrame;
|
||||
}
|
||||
|
||||
Void ModulesHandle::destroyModuleIf( PlaYUVerModuleIf *pcCurrModuleIf )
|
||||
{
|
||||
pcCurrModuleIf->m_pcAction->setChecked( false );
|
||||
@@ -140,7 +160,7 @@ QMenu* ModulesHandle::createMenus( QMenuBar *MainAppMenuBar )
|
||||
|
||||
m_pcModulesMenu = MainAppMenuBar->addMenu( "&Modules" );
|
||||
|
||||
//m_arrayModulesActions.resize( m_uiModulesCount );
|
||||
//m_arrayModulesActions.resize( m_uiModulesCount );
|
||||
|
||||
for( Int i = 0; i < m_pcPlaYUVerModules.size(); i++ )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user