#include <appli/PipelineEditor/PipelineEditorMainWindow.h>
#include <appli/PipelineEditor/ui_PipelineEditorMainWindow.h>
-#include <QMessageBox>
-
-// -------------------------------------------------------------------------
-#define _QT_CONNECT_ACTION( ACTION ) \
- this->connect( \
- this->m_UI->Action##ACTION, SIGNAL( triggered( ) ), \
- this, SLOT( _Action##ACTION( ) ) \
- )
-
// -------------------------------------------------------------------------
PipelineEditorMainWindow::
PipelineEditorMainWindow(
{
// Basic UI configuration
this->m_UI->setupUi( this );
- this->UpdateEnvironment( );
- this->_Configure(
- this->m_UI->Plugins, this->m_UI->MPR, this->m_UI->Canvas->editor( )
+ this->_configure(
+ this->m_UI->Navigator,
+ this->m_UI->MPR,
+ this->m_UI->Canvas->editor( )
);
// Slots <-> signals
- _QT_CONNECT_ACTION( Open );
- _QT_CONNECT_ACTION( Save );
- _QT_CONNECT_ACTION( Close );
- _QT_CONNECT_ACTION( LoadPluginFile );
- _QT_CONNECT_ACTION( LoadPluginDirectory );
- _QT_CONNECT_ACTION( ShowPlugins );
+ cpBaseQtApplication_ConnectAction( ActionOpen, _loadWorkspace );
+ cpBaseQtApplication_ConnectAction( ActionSave, _saveWorkspace );
+ cpBaseQtApplication_ConnectAction( ActionShowPlugins, _showPlugins );
+ cpBaseQtApplication_ConnectAction( ActionAddEnvironmentPath, _addEnvironmentPaths );
+ cpBaseQtApplication_ConnectAction( ActionLoadPluginFile, _loadPlugins );
+ cpBaseQtApplication_ConnectAction( ActionLoadPluginDirectory, _loadPluginsFromPath );
+ cpBaseQtApplication_ConnectAction( ActionActorsProperties, _actorsProperties );
}
// -------------------------------------------------------------------------
delete this->m_UI;
}
-// -------------------------------------------------------------------------
-void PipelineEditorMainWindow::
-_ActionOpen( )
-{
- this->_InteractiveLoadWorkspace( );
-}
-
-// -------------------------------------------------------------------------
-void PipelineEditorMainWindow::
-_ActionSave( )
-{
- this->_InteractiveSaveWorkspace( );
-}
-
-// -------------------------------------------------------------------------
-void PipelineEditorMainWindow::
-_ActionClose( )
-{
-}
-
-// -------------------------------------------------------------------------
-void PipelineEditorMainWindow::
-_ActionLoadPluginFile( )
-{
- this->_InteractiveLoadPlugins( );
-}
-
-// -------------------------------------------------------------------------
-void PipelineEditorMainWindow::
-_ActionLoadPluginDirectory( )
-{
- this->_InteractiveLoadPluginsFromPath( );
-}
-
-// -------------------------------------------------------------------------
-void PipelineEditorMainWindow::
-_ActionShowPlugins( )
-{
- this->_ShowPlugins( );
-}
-
// eof - $RCSfile$