#include <cpPlugins/QT/OpenFileDialog.h>
-
-#ifdef cpPlugins_QT4
-
-#include <cpPlugins/BaseObjects/Parameters.h>
+#include <cpPlugins/Pipeline/Parameters.h>
// -------------------------------------------------------------------------
cpPlugins::QT::OpenFileDialog::
// -------------------------------------------------------------------------
void cpPlugins::QT::OpenFileDialog::
SetParameters(
- cpPlugins::BaseObjects::Parameters* params, const std::string& name
+ cpPlugins::Pipeline::Parameters* params, const std::string& name
)
{
if( params == NULL )
} // fi
auto param_type = params->GetType( name );
if(
- param_type != cpPlugins::BaseObjects::Parameters::OpenFileName &&
- param_type != cpPlugins::BaseObjects::Parameters::OpenFileNameList
+ param_type != cpPlugins::Pipeline::Parameters::OpenFileName &&
+ param_type != cpPlugins::Pipeline::Parameters::OpenFileNameList
)
{
this->m_Parameters = NULL;
if( extensions != "" )
filters << extensions.c_str( );
filters << "Any file (*)";
- if( param_type == cpPlugins::BaseObjects::Parameters::OpenFileName )
+ if( param_type == cpPlugins::Pipeline::Parameters::OpenFileName )
this->setFileMode( QFileDialog::ExistingFile );
else
this->setFileMode( QFileDialog::ExistingFiles );
this->setNameFilters( filters );
this->setAcceptMode( QFileDialog::AcceptOpen );
- if( param_type == cpPlugins::BaseObjects::Parameters::OpenFileName )
+ if( param_type == cpPlugins::Pipeline::Parameters::OpenFileName )
{
auto file = this->m_Parameters->GetOpenFileName( this->m_Name );
if( file == "" )
{
auto files = this->selectedFiles( );
auto param_type = this->m_Parameters->GetType( this->m_Name );
- if( param_type == cpPlugins::BaseObjects::Parameters::OpenFileNameList )
+ if( param_type == cpPlugins::Pipeline::Parameters::OpenFileNameList )
{
this->m_Parameters->ClearOpenFileNameList( this->m_Name );
for( auto fIt = files.begin( ); fIt != files.end( ); ++fIt )
} // fi
}
-#endif // cpPlugins_QT4
-
// eof - $RCSfile$