From: rnv Date: Sat, 1 Nov 2008 12:56:37 +0000 (+0000) Subject: To show notebook variables in the Object Browser. X-Git-Tag: TG_DumpPython_Extension_1~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=aca82211c6624b26f07e097e238810bd86514a92;p=modules%2Fgui.git To show notebook variables in the Object Browser. --- diff --git a/src/SalomeApp/SalomeApp_DataObject.cxx b/src/SalomeApp/SalomeApp_DataObject.cxx index c78e28520..c1a292ddc 100644 --- a/src/SalomeApp/SalomeApp_DataObject.cxx +++ b/src/SalomeApp/SalomeApp_DataObject.cxx @@ -445,7 +445,21 @@ QString SalomeApp_DataObject::value( const _PTR(SObject)& obj ) const { _PTR(AttributeString) strAttr = attr; std::string str = strAttr->Value(); - val = QString( str.c_str() ); + QString aStrings = QString( str.c_str() ); + + //Special case to show NoteBook variables in the "Value" column of the OB + QStringList aStringList = aStrings.split(":"); + if(aStringList.size() > 0) { + int i = 0; + for (;iFindAttribute( attr, "AttributeInteger" ) ) {