// -------------------------------------------------------------------------
cpBaseQtApplication::MainWindow::
-MainWindow(
- int argc, char* argv[],
- QWidget* parent
- )
+MainWindow( int argc, char* argv[], QWidget* parent )
: Superclass( parent ),
m_LastSaveFileName( "" ),
m_BaseWindowTitle( "cpBaseQtApplication" ),
m_Viewer( NULL )
{
this->m_RunPath = QDir( "." ).canonicalPath( ).toStdString( );
- this->m_Plugins = TPlugins::New( );
- try
- {
- this->m_Plugins->GuessEnvironment( this->m_RunPath );
- this->m_Plugins->GuessPlugins( );
- }
- catch( std::exception& err )
- {
- QMessageBox::critical( this, "Error guessing plugins.", err.what( ) );
-
- } // yrt
+ this->m_Loader.GuessEnvironment( this->m_RunPath );
+ this->m_Loader.SaveEnvironment( this->m_RunPath );
this->_clearWorkspace( );
}
{
try
{
- this->m_Plugins->LoadPluginsFile( filename );
+ this->m_Loader.Register( filename );
if( this->m_Navigator != NULL )
this->m_Navigator->Update( );
}
{
try
{
- this->m_Plugins->LoadPluginsDirectory( path );
- this->m_Plugins->SaveEnvironment( this->m_RunPath );
+ this->m_Loader.RegisterFromDirectory( path );
+ this->m_Loader.SaveEnvironment( this->m_RunPath );
if( this->m_Navigator != NULL )
this->m_Navigator->Update( );
}