Improve modules interface. Add a variable to mark the module category

and type. change some function in the plaYUVerApp to fix modules
disabling when closing a sub window
This commit is contained in:
2014-03-22 15:51:23 +00:00
parent 06b80cee03
commit b4979106b9
7 changed files with 63 additions and 26 deletions
+6
View File
@@ -57,6 +57,11 @@ SubWindowHandle::SubWindowHandle( QWidget * parent ) :
SubWindowHandle::~SubWindowHandle()
{
delete m_cViewArea;
if( !m_pcCurrentModule )
return;
m_pcCurrentModule->m_pcAction->setChecked( false );
m_pcCurrentModule->destroy();
m_pcCurrentModule = NULL;
}
bool SubWindowHandle::loadFile( const QString &fileName )
@@ -129,6 +134,7 @@ Void SubWindowHandle::disableModule()
{
if( !m_pcCurrentModule )
return;
m_pcCurrentModule->destroy();
m_pcCurrentModule = NULL;
refreshFrame();