#include #include #include // ------------------------------------------------------------------------- #define _QT_CONNECT_ACTION( ACTION ) \ this->connect( \ this->m_UI->Action##ACTION, SIGNAL( triggered( ) ), \ this, SLOT( _Action##ACTION( ) ) \ ) // ------------------------------------------------------------------------- PipelineEditorMainWindow:: PipelineEditorMainWindow( int argc, char* argv[], QApplication* app, QWidget* parent ) : Superclass( argc, argv, app, parent ), m_UI( new Ui::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( ) ); // 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 ); } // ------------------------------------------------------------------------- PipelineEditorMainWindow:: ~PipelineEditorMainWindow( ) { 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$