- if( this->m_ActiveParameters != NULL )
- this->m_ActiveParameters->close( );
- this->m_ActiveParameters = new QWidget( NULL );
- this->m_ActiveParameters->setWindowFlags( Qt::FramelessWindowHint );
- this->m_ActiveParameters->setWindowFlags( Qt::WindowTitleHint );
-
- QGridLayout* gridLayout = new QGridLayout( this->m_ActiveParameters );
- QVBoxLayout* verticalLayout = new QVBoxLayout( );
-
- // Put values
- QLabel* title = new QLabel( this->m_ActiveParameters );
- title->setText( this->m_ActivePlugin->GetClassName( ).c_str( ) );
- verticalLayout->addWidget( title );
-
- TParameters::const_iterator pIt = parameters.begin( );
- for( ; pIt != parameters.end( ); ++pIt )
- {
- std::string par_name = pIt->first;
- std::string par_type = pIt->second.first;
- std::string par_value = pIt->second.second;
-
- if( par_type == "double" )
- {
- QHBoxLayout* horizontalLayout = new QHBoxLayout( );
- QLabel* label = new QLabel( this->m_ActiveParameters );
- label->setText( QString( par_name.c_str( ) ) );
- horizontalLayout->addWidget( label );
-
- QDoubleSpinBox* v_double =
- new QDoubleSpinBox( this->m_ActiveParameters );
- v_double->setDecimals( 3 );
- v_double->setMinimum( -( std::numeric_limits< double >::max( ) ) );
- v_double->setMaximum( std::numeric_limits< double >::max( ) );
- v_double->setValue( std::atof( par_value.c_str( ) ) );
- v_double->setObjectName( QString( par_name.c_str( ) ) );
- horizontalLayout->addWidget( v_double );
- verticalLayout->addLayout( horizontalLayout );
-
- } // fi
-
- } // rof
- gridLayout->addLayout( verticalLayout, 0, 0, 1, 1 );
-
- // Infere plugin type
- TParameters::const_iterator seedIt = parameters.find( "Seed" );
- TParameters::const_iterator radiusIt = parameters.find( "Radius" );
- TParameters::const_iterator endIt = parameters.end( );
- if( seedIt == endIt && radiusIt == endIt )
- this->m_ActivePluginType = Self::GlobalPluginType;
- else if( seedIt != endIt && radiusIt == endIt )
- this->m_ActivePluginType = Self::DoubleClickPluginType;
- else if( seedIt != endIt && radiusIt != endIt )
- this->m_ActivePluginType = Self::SpherePluginType;
- else
- this->m_ActivePluginType = Self::NonePluginType;
-
- QMetaObject::connectSlotsByName( this->m_ActiveParameters );
- this->m_ActiveParameters->show( );
-
- return( false );
+// if( this->m_ActiveParameters != NULL )
+// this->m_ActiveParameters->close( );
+// this->m_ActiveParameters = new QWidget( NULL );
+// this->m_ActiveParameters->setWindowFlags( Qt::FramelessWindowHint );
+// this->m_ActiveParameters->setWindowFlags( Qt::WindowTitleHint );
+
+// QGridLayout* gridLayout = new QGridLayout( this->m_ActiveParameters );
+// QVBoxLayout* verticalLayout = new QVBoxLayout( );
+
+// // Put values
+// QLabel* title = new QLabel( this->m_ActiveParameters );
+// title->setText( this->m_ActivePlugin->GetClassName( ).c_str( ) );
+// verticalLayout->addWidget( title );
+
+// TParameters::const_iterator pIt = parameters.begin( );
+// for( ; pIt != parameters.end( ); ++pIt )
+// {
+// std::string par_name = pIt->first;
+// std::string par_type = pIt->second.first;
+// std::string par_value = pIt->second.second;
+
+// if( par_type == "double" )
+// {
+// QHBoxLayout* horizontalLayout = new QHBoxLayout( );
+// QLabel* label = new QLabel( this->m_ActiveParameters );
+// label->setText( QString( par_name.c_str( ) ) );
+// horizontalLayout->addWidget( label );
+
+// QDoubleSpinBox* v_double =
+// new QDoubleSpinBox( this->m_ActiveParameters );
+// v_double->setDecimals( 3 );
+// v_double->setMinimum( -( std::numeric_limits< double >::max( ) ) );
+// v_double->setMaximum( std::numeric_limits< double >::max( ) );
+// v_double->setValue( std::atof( par_value.c_str( ) ) );
+// v_double->setObjectName( QString( par_name.c_str( ) ) );
+// horizontalLayout->addWidget( v_double );
+// verticalLayout->addLayout( horizontalLayout );
+
+// } // fi
+
+// } // rof
+// gridLayout->addLayout( verticalLayout, 0, 0, 1, 1 );
+
+// // Infere plugin type
+// TParameters::const_iterator seedIt = parameters.find( "Seed" );
+// TParameters::const_iterator radiusIt = parameters.find( "Radius" );
+// TParameters::const_iterator endIt = parameters.end( );
+// if( seedIt == endIt && radiusIt == endIt )
+// this->m_ActivePluginType = Self::GlobalPluginType;
+// else if( seedIt != endIt && radiusIt == endIt )
+// this->m_ActivePluginType = Self::DoubleClickPluginType;
+// else if( seedIt != endIt && radiusIt != endIt )
+// this->m_ActivePluginType = Self::SpherePluginType;
+// else
+// this->m_ActivePluginType = Self::NonePluginType;
+
+// QMetaObject::connectSlotsByName( this->m_ActiveParameters );
+// this->m_ActiveParameters->show( );
+
+// return( false );