#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
- this->connect(
- this->m_UI->ActionOpen, SIGNAL( triggered( ) ),
- this, SLOT( _InteractiveLoadWorkspace( ) )
- );
- this->connect(
- this->m_UI->ActionSave, SIGNAL( triggered( ) ),
- this, SLOT( _InteractiveSaveWorkspace( ) )
- );
- // TODO: _QT_CONNECT_ACTION( Close );
- this->connect(
- this->m_UI->ActionLoadPluginFile, SIGNAL( triggered( ) ),
- this, SLOT( _InteractiveLoadPlugins( ) )
- );
- this->connect(
- this->m_UI->ActionLoadPluginDirectory, SIGNAL( triggered( ) ),
- this, SLOT( _InteractiveLoadPluginsFromPath( ) )
- );
- this->connect(
- this->m_UI->ActionShowPlugins, SIGNAL( triggered( ) ),
- this, SLOT( _ShowPlugins( ) )
- );
- this->connect(
- this->m_UI->ActionAddEnvironmentPath, SIGNAL( triggered( ) ),
- this, SLOT( _InteractiveAddEnviromentPaths( ) )
- );
+ 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 );
}
// -------------------------------------------------------------------------