From: vsr Date: Mon, 17 Jan 2011 17:00:15 +0000 (+0000) Subject: Replace direct "Interface Applicative" usage by the function call X-Git-Tag: V6_3_0a1~94 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0d2e65f13a99d8a2c26747b46d20363a02f3d509;p=modules%2Fgui.git Replace direct "Interface Applicative" usage by the function call --- diff --git a/src/LightApp/LightApp_Study.cxx b/src/LightApp/LightApp_Study.cxx index ae8e174c4..aa1d15e84 100644 --- a/src/LightApp/LightApp_Study.cxx +++ b/src/LightApp/LightApp_Study.cxx @@ -458,7 +458,7 @@ void LightApp_Study::components( QStringList& comp ) const for( ; anIt!=aLast; anIt++ ) { LightApp_DataObject* obj = dynamic_cast( *anIt ); - if( obj && obj->entry()!="Interface Applicative" ) + if ( obj && obj->entry() != getVisualComponentName() ) comp.append( obj->entry() ); } } @@ -483,3 +483,12 @@ QString LightApp_Study::centry( const QString& comp ) const } return e; } + +/*! + \return a name of the component where visual parameters are stored +*/ +QString LightApp_Study::getVisualComponentName() const +{ + return "Interface Applicative"; +} + diff --git a/src/LightApp/LightApp_Study.h b/src/LightApp/LightApp_Study.h index c4ef9ce69..dae0c721a 100644 --- a/src/LightApp/LightApp_Study.h +++ b/src/LightApp/LightApp_Study.h @@ -71,6 +71,8 @@ public: virtual void components( QStringList& ) const; virtual QString centry( const QString& ) const; + virtual QString getVisualComponentName() const; + protected: virtual void saveModuleData ( QString theModuleName, QStringList theListOfFiles ); virtual void openModuleData ( QString theModuleName, QStringList& theListOfFiles );