X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpBaseQtApplication%2FMainWindow.cxx;h=37b18aa56168693a98df86b999010b239002e2db;hb=2fed0327528e671e32cc7151cb65ebd769c053e6;hp=bfe8b5b9d4b5b9943b3e36080dbd4b7c543529a9;hpb=8d542556415c0f37a325b1641bb51b2bc284a115;p=cpPlugins.git diff --git a/lib/cpBaseQtApplication/MainWindow.cxx b/lib/cpBaseQtApplication/MainWindow.cxx index bfe8b5b..37b18aa 100644 --- a/lib/cpBaseQtApplication/MainWindow.cxx +++ b/lib/cpBaseQtApplication/MainWindow.cxx @@ -1,6 +1,8 @@ #include #include #include +#include +#include #include #include @@ -223,6 +225,8 @@ _addWorkspace( const std::string& name ) if( this->m_SingleWorkspace ) this->m_Workspaces.clear( ); this->m_Workspaces[ name ] = TWorkspace::New( ); + if( this->m_Canvas != NULL ) + this->m_Canvas->setWorkspace( this->m_Workspaces[ name ] ); this->setWindowTitle( ( this->m_BaseWindowTitle + name ).c_str( ) ); } // fi @@ -388,4 +392,21 @@ _loadWorkspace( ) this->_loadWorkspace( dlg.selectedFiles( ).begin( )->toStdString( ) ); } +// ------------------------------------------------------------------------- +void cpBaseQtApplication::MainWindow:: +_actorsProperties( ) +{ + auto data = + dynamic_cast< cpExtensions::QT::ActorsWidgetInterface* >( + this->m_Viewer + ); + if( data != NULL ) + { + auto dlg = new cpExtensions::QT::ConfigurationChooser( this ); + dlg->setData( data ); + dlg->exec( ); + + } // fi +} + // eof - $RCSfile$