this->m_PluginsPath = info.canonicalPath( ).toStdString( );
this->_LoadPluginsFromPath( this->m_PluginsPath );
}
- else
+ /*
+ else
this->_UpdateLoadedPlugins( );
+ */
} // fi
+ QDir exec_dir( "." );
+ if( exec_dir.exists( ) )
+ this->_LoadPluginsFromPath( exec_dir.canonicalPath( ).toStdString( ) );
/* TODO
this->m_Interface = new cpPlugins::Interface( );
{
try
{
- this->m_Interface.LoadPluginFile( fIt->toStdString( ) );
+ this->m_Interface.LoadPluginFile(
+ ( dir.absolutePath( ) + QDir::separator( ) + *fIt ).toStdString( )
+ );
}
- catch( ... )
+ catch( std::exception& err )
{
// Just ignore un-loadable libraries
- }
+ } // yrt
- } // yrt
+ } // rof
this->_UpdateLoadedPlugins( );
}
"Error loading default plugins",
"No plugins loaded: remember to load some!!!"
);
+ this->_UnBlock( );
return;
} // fi
}
else if( mdata != NULL )
{
+ if( this->m_UI->Viewer->AddData( mdata, data_name ) )
+ {
+ this->m_UI->Viewer->SetDataColor( data_name, 1, 0, 0 );
+ this->_Block( );
+ this->m_UI->Viewer->ShowData( data_name );
+ this->_UnBlock( );
+
+ } // fi
}
else
QMessageBox::critical(