App_cpPipelineEditor( int argc, char* argv[], QWidget* parent )
: QMainWindow( parent ),
m_UI( new Ui::App_cpPipelineEditor ),
- m_Workspace( NULL )
+ m_Workspace( NULL ),
+ m_PluginsPath( "." )
{
this->m_UI->setupUi( this );
QFileInfo info( argv[ 0 ] );
if( info.exists( ) )
{
- std::string path = info.canonicalPath( ).toStdString( );
- if( !( this->m_Plugins->LoadDefaultConfiguration( path ) ) )
- if( this->m_Plugins->LoadFromFolder( path, false ) )
- if( !( this->m_Plugins->SaveDefaultConfiguration( path ) ) )
+ this->m_PluginsPath = info.canonicalPath( ).toStdString( );
+ if( !( this->m_Plugins->LoadDefaultConfiguration( this->m_PluginsPath ) ) )
+ if( this->m_Plugins->LoadFromFolder( this->m_PluginsPath, false ) )
+ if( !( this->m_Plugins->SaveDefaultConfiguration( this->m_PluginsPath ) ) )
QMessageBox::critical(
this,
"Error creating default plugins configuration",
);
// Update view
+ this->m_Plugins->SaveDefaultConfiguration( this->m_PluginsPath );
this->_UpdateLoadedPlugins( );
}
);
// Update view
+ this->m_Plugins->SaveDefaultConfiguration( this->m_PluginsPath );
this->_UpdateLoadedPlugins( );
}
delete this->m_Workspace;
this->m_Workspace = new cpPlugins::Interface::Workspace( );
this->m_Workspace->SetPlugins( this->m_Plugins );
+ this->m_Workspace->AddInteractor( this->m_UI->Viewer->GetInteractor( 0 ) );
+ this->m_Workspace->AddInteractor( this->m_UI->Viewer->GetInteractor( 1 ) );
+ this->m_Workspace->AddInteractor( this->m_UI->Viewer->GetInteractor( 2 ) );
+ this->m_Workspace->AddInteractor( this->m_UI->Viewer->GetInteractor( 3 ) );
std::string err = this->m_Workspace->LoadWorkspace( fname );
if( err != "" )
{