X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=plugins%2FIO%2FMeshWriter.cxx;h=8bb075ea75dea28c4cd1a37b7c954db182a2c7cb;hb=9b11582dc5062474361432e46838c4e790c21f10;hp=986eebbfbc0c2c0a3335052682810b2fbe830755;hpb=9d315ac836e5fe246a8c987681085ee19898affc;p=cpPlugins.git diff --git a/plugins/IO/MeshWriter.cxx b/plugins/IO/MeshWriter.cxx index 986eebb..8bb075e 100644 --- a/plugins/IO/MeshWriter.cxx +++ b/plugins/IO/MeshWriter.cxx @@ -1,9 +1,32 @@ #include #include +#include #include #include +#ifdef cpPlugins_QT4 +# include +#endif // cpPlugins_QT4 + +// ------------------------------------------------------------------------- +QDialog* cpPluginsIO::MeshWriter:: +CreateQDialog( ) +{ +#ifdef cpPlugins_QT4 + cpPlugins::QT::SaveFileDialog* dlg = NULL; + if( QApplication::instance( ) != NULL ) + { + dlg = new cpPlugins::QT::SaveFileDialog( ); + dlg->SetParameters( &( this->m_Parameters ), "FileName" ); + + } // fi + return( dlg ); +#else // cpPlugins_QT4 + return( NULL ); +#endif // cpPlugins_QT4 +} + // ------------------------------------------------------------------------- cpPluginsIO::MeshWriter:: MeshWriter( ) @@ -13,7 +36,7 @@ MeshWriter( ) this->_ConfigureInput< _TMesh >( "Input", true, false ); this->m_Parameters.Clear( ); - this->m_Parameters.ConfigureAsSaveFileName( "FileName" ); + this->m_Parameters.ConfigureAsSaveFileName( "FileName", "" ); this->m_Parameters.SetAcceptedFileExtensions( "FileName", "Mesh files (*.vtk)"