std::list<std::string> aParams;
int n = theParameters.length();
for( int i=0; i<n; i++ )
- aParams.push_back( theParameters[i].in() );
+ {
+ std::string aParam = CORBA::string_dup( theParameters[i] );
+ aParams.push_back( aParam );
+
+ SALOME::Parameter_ptr aParamPtr = theNotebook->GetParameter( aParam.c_str() );
+ if( !CORBA::is_nil( aParamPtr ) )
+ theNotebook->AddDependency( _this(), aParamPtr );
+ }
myBaseImpl->SetParameters( aParams );
}
// SALOME GUI includes
#include <SalomeApp_Tools.h>
#include <SalomeApp_IntSpinBox.h>
+#include <SalomeApp_Notebook.h>
#include <QtxComboBox.h>
// Qt includes
//the function will be checked with old conversion mode, so that it may occurs
//unexpected errors for user
- /* ouv: temporarily disabled
- h->SetParameters(aVariablesList.join(":").toLatin1().constData());
- */
+ // temporal workaround
+ StdMeshersGUI_NbSegmentsCreator* that = const_cast<StdMeshersGUI_NbSegmentsCreator*>( this );
+ that->getNotebook()->setParameters( h, aVariablesList );
}
catch(const SALOME::SALOME_Exception& ex)
{