- this->_Configure(
- this->m_UI->LoadedPlugins,
- this->m_UI->Viewer,
- this->m_UI->Canvas->editor( )
- );
-
- // Connect actions to slots
- this->connect(
- this->m_UI->ActionBackgroundMPR, SIGNAL( triggered( ) ),
- this, SLOT( _ActionBackgroundMPR( ) )
- );
- this->connect(
- this->m_UI->ActionBackground3D, SIGNAL( triggered( ) ),
- this, SLOT( _ActionBackground3D( ) )
- );
- this->connect(
- this->m_UI->ButtonLoadPluginsFile, SIGNAL( clicked( ) ),
- this, SLOT( _InteractiveLoadPlugins( ) )
- );
- this->connect(
- this->m_UI->ButtonLoadPluginsPath, SIGNAL( clicked( ) ),
- this, SLOT( _InteractiveLoadPluginsFromPath( ) )
- );
- this->connect(
- this->m_UI->ActionOpenWorkspace, SIGNAL( triggered( ) ),
- this, SLOT( _InteractiveLoadWorkspace( ) )
- );
- this->connect(
- this->m_UI->ActionSaveWorkspace, SIGNAL( triggered( ) ),
- this, SLOT( _InteractiveSaveWorkspace( ) )
- );
- this->connect(
- this->m_UI->Canvas->editor( ),
- SIGNAL( execFilter( const std::string& ) ),
- this,
- SLOT( _ExecFilter( const std::string& ) )
- );
- this->connect(
- this->m_UI->Canvas->editor( ),
- SIGNAL( showFilterOutput( const std::string&, const std::string& ) ),
- this,
- SLOT( _ShowFilterOutput( const std::string&, const std::string& ) )
- );
- this->connect(
- this->m_UI->Canvas->editor( ),
- SIGNAL( hideFilterOutput( const std::string&, const std::string& ) ),
- this,
- SLOT( _HideFilterOutput( const std::string&, const std::string& ) )
- );
- this->connect(
- this->m_UI->Canvas->editor( ),
- SIGNAL( visualPropertiesFilterOutput( const std::string&, const std::string& ) ),
- this,
- SLOT( _PropertiesFilterOutput( const std::string&, const std::string& ) )
- );
+ this->setCanvas( this->m_UI->Canvas );
+ this->setNavigator( this->m_UI->Navigator );
+ this->m_UI->Navigator->Update( );
+
+ // Connect slots <-> signals
+ cpBaseQtApplication_ConnectAction( actionLoadDirectory, _loadPluginsFromPath );
+ cpBaseQtApplication_ConnectAction( actionLoadLibrary, _loadPlugins );
+
+ // Load command-line given workspace (if any)
+ if( argc > 1 )
+ {
+ this->_loadWorkspace( argv[ 1 ] );
+ this->m_ActiveWS = argv[ 1 ];
+ }
+ else
+ this->_addWorkspace( this->m_ActiveWS );
+ /* TODO
+ this->m_UI->Canvas->setWorkspace( this->workspace( this->m_ActiveWS ) );
+ this->setWindowTitle(
+ (
+ std::string( "PipelineEditor - " ) +
+ this->m_ActiveWS
+ ).c_str( )
+ );
+ */
+
+ /* TODO
+ this->connect(
+ this->m_UI->actionOpenWorkspace, SIGNAL( triggered( ) ),
+ this, SLOT( _slotOpenWorkspace( ) )
+ );
+ this->connect(
+ this->m_UI->actionSaveWorkspace, SIGNAL( triggered( ) ),
+ this, SLOT( _slotSaveWorkspace( ) )
+ );
+ this->connect(
+ this->m_UI->actionSaveWorkspaceAs, SIGNAL( triggered( ) ),
+ this, SLOT( _slotSaveWorkspaceAs( ) )
+ );
+ this->connect(
+ this->m_UI->actionActorsProperties, SIGNAL( triggered( ) ),
+ this, SLOT( _slotActorsProperties( ) )
+ );
+ this->m_UI->Canvas->connectOutputPortSlot(
+ this, SLOT( _slotView( const std::string&, bool ) )
+ );
+ */
+
+
+ // Associate qt-based objects