From: ouv Date: Wed, 2 Dec 2009 14:39:07 +0000 (+0000) Subject: Debug X-Git-Tag: PHASE_17_Part1_V1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=80bb255fab608426882928cd62f08a17fc571382;p=modules%2Fgui.git Debug --- diff --git a/src/SalomeApp/SalomeApp_Notebook.cxx b/src/SalomeApp/SalomeApp_Notebook.cxx index bd391a5f0..1a1c5ca83 100644 --- a/src/SalomeApp/SalomeApp_Notebook.cxx +++ b/src/SalomeApp/SalomeApp_Notebook.cxx @@ -116,7 +116,7 @@ QVariant SalomeApp_Notebook::calculate( const QString& theExpr ) } } myTmp->SetExpression( theExpr.toLatin1().constData() ); - myTmp->Update( myNotebook._retn() ); + myTmp->Update( SALOME::Notebook::_duplicate( myNotebook ) ); return convert( myTmp ); } @@ -223,7 +223,13 @@ void SalomeApp_Notebook::setParameters( SALOME::ParameterizedObject_ptr theObjec i++; } - theObject->SetParameters( myNotebook._retn(), aParams ); + theObject->SetParameters( SALOME::Notebook::_duplicate( myNotebook ), aParams ); +} + +QString SalomeApp_Notebook::getParameters( const QString& theComponent, const QString& theEntry ) +{ + return QString( myNotebook->GetParameters( theComponent.toLatin1().constData(), + theEntry.toLatin1().constData() ) ); } char* SalomeApp_Notebook::dump() diff --git a/src/SalomeApp/SalomeApp_Notebook.h b/src/SalomeApp/SalomeApp_Notebook.h index 01aa156b6..2d4e12b78 100644 --- a/src/SalomeApp/SalomeApp_Notebook.h +++ b/src/SalomeApp/SalomeApp_Notebook.h @@ -66,6 +66,8 @@ public: void setParameters( SALOME::ParameterizedObject_ptr theObject, QList theSpinList ); void setParameters( SALOME::ParameterizedObject_ptr theObject, const QStringList& theParameters ); + QString getParameters( const QString& theComponent, const QString& theEntry ); + char* dump(); protected: