From 397544e1a9e92664e892257a61766d2108b1c892 Mon Sep 17 00:00:00 2001 From: ouv Date: Wed, 16 Dec 2009 09:24:39 +0000 Subject: [PATCH] Debug --- src/Notebook/SALOME_Notebook.cxx | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/src/Notebook/SALOME_Notebook.cxx b/src/Notebook/SALOME_Notebook.cxx index fee2f5378..1382c8467 100644 --- a/src/Notebook/SALOME_Notebook.cxx +++ b/src/Notebook/SALOME_Notebook.cxx @@ -27,6 +27,7 @@ #include #include #include +#include #include std::string arg( const std::string& theStr, const std::string& theArg1 ) @@ -967,6 +968,8 @@ void SALOME_Notebook::ParseDependencies( FILE* theFile, const std::string& theFi char* SALOME_Notebook::DumpPython() { + Kernel_Utils::Localizer loc; + std::string aRes; aRes = "from salome_notebook import *\n\n"; @@ -1161,7 +1164,24 @@ SALOME::StringArray* SALOME_Notebook::GetParameters( const char* theParamName ) SALOME::StringArray* SALOME_Notebook::GetAttributeParameters( const char* theStringAttribute ) { - return NULL; + std::list aRes; + SALOME_EvalExpr expr; + std::vector aParts = split( theStringAttribute, "|", false ), anItems; + for( int i=0, n=aParts.size(); i aParams = expr.parser()->parameters(); + std::list::const_iterator it = aParams.begin(), last = aParams.end(); + for( ; it!=last; it++ ) + if( find( aRes.begin(), aRes.end(), *it ) == aRes.end() ) + aRes.push_back( *it ); + } + } + aRes.sort(); + return GenerateList( aRes ); } int SALOME_Notebook::GetNewId() -- 2.39.2