From 80bb255fab608426882928cd62f08a17fc571382 Mon Sep 17 00:00:00 2001 From: ouv Date: Wed, 2 Dec 2009 14:39:07 +0000 Subject: [PATCH] Debug --- src/SalomeApp/SalomeApp_Notebook.cxx | 10 ++++++++-- src/SalomeApp/SalomeApp_Notebook.h | 2 ++ 2 files changed, 10 insertions(+), 2 deletions(-) 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: -- 2.39.2