Commit d82778f5 authored by Frédéric Larue's avatar Frédéric Larue

ExportInterface::parameters() function renamed to declareParameters() and is...

ExportInterface::parameters() function renamed to declareParameters() and is not set to purely virtual anymore.
parent 407cdb27
......@@ -1554,7 +1554,7 @@ void UIMainWindow::launchExport( ExportInterface *exportPlugIn,
dlg.setOption(QFileDialog::DontUseNativeDialog, true);
m_CurrentExportParams = new UIParamSet( "Export options", this );
exportPlugIn->parameters( id, *m_CurrentExportParams );
exportPlugIn->declareParameters( id, *m_CurrentExportParams );
if( !m_CurrentExportParams->IsEmpty() )
if( QGridLayout *l = dynamic_cast<QGridLayout*>(dlg.layout()) )
......
......@@ -51,7 +51,7 @@ public:
/** Type identifiers of the data that can be managed by this export plugin. */
virtual void acceptedDataTypes( int id, QVector<QString> &types ) const = 0;
/** UI components that will be used to provide some options for the export. */
virtual void parameters( int id, UIParamSet &params ) = 0;
virtual void declareParameters( int id, UIParamSet &params ) {}
/** Core function that effectively performs the export (multi files version). */
virtual bool saveMultiFiles( int id, const QString &pathOrFilename, const QString &fileExtension, QVector< QList<GenericUIData*> > &items, UIParamSet &params, UIContext &context ) { return true; }
/** Core function that effectively performs the export (single file version). */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment