#include <cpBaseQtApplication/MainWindow.h>
#include <cpBaseQtApplication/Plugins/Navigator.h>
+#include <cpBaseQtApplication/Pipeline/Canvas.h>
#include <QDir>
#include <QFileDialog>
)
: Superclass( parent ),
m_LastSaveFileName( "" ),
+ m_SingleWorkspace( false ),
+ m_BaseWindowTitle( "cpBaseQtApplication" ),
m_Canvas( NULL ),
m_Navigator( NULL ),
m_Viewer( NULL )
{
auto wIt = this->m_Workspaces.find( name );
if( wIt == this->m_Workspaces.end( ) )
+ {
+ if( this->m_SingleWorkspace )
+ this->m_Workspaces.clear( );
this->m_Workspaces[ name ] = TWorkspace::New( );
+ this->setWindowTitle( ( this->m_BaseWindowTitle + name ).c_str( ) );
+
+ } // fi
}
// -------------------------------------------------------------------------
{
this->_addWorkspace( fname );
this->m_Workspaces[ fname ]->Load( fname );
+ if( this->m_Canvas != NULL )
+ this->m_Canvas->setWorkspace( this->m_Workspaces[ fname ] );
}
catch( std::exception& err )
{