-// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2022 CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
entries.insert( entry );
- setObjectInfo( num, OI_Entry, entry );
- setObjectInfo( num, OI_Reference, sowner->entry() != entry );
+ setObjectInfo( num, OI_Entry, entry );
+ setObjectInfo( num, OI_Reference, sowner->entry() != entry );
+ setObjectInfo( num, OI_RefEntry, sowner->entry() );
if ( processOwner( sowner ) )
num++;
QString e = entry( idx );
if ( !e.isEmpty() ) {
if ( p == "isVisible" ) {
- QString mod_name = app->moduleTitle( myStudy->componentDataType( e ) );
- LightApp_Displayer* d = LightApp_Displayer::FindDisplayer( mod_name, false );
+ QString mname = myStudy->componentDataType( e );
+ LightApp_Displayer* d = LightApp_Displayer::FindDisplayer( mname, false );
// false in last parameter means that now we doesn't load module, if it isn't loaded
bool vis = false;
vis = LightApp_Displayer().IsDisplayed( e );
v = vis;
}
- else if ( p == "component" || p == "displayer" )
- v = myStudy->componentDataType( e );
+ else if ( p == "component" )
+ v = myStudy->componentDataType( e );
+ else if ( p == "displayer" )
+ v = LightApp_Application::moduleDisplayer( myStudy->componentDataType( e ) );
else if ( p == "isComponent" )
v = myStudy->isComponent( e );
else if ( p == "isReference" )
v = isReference( idx );
else if ( p == "canBeDisplayed" ) {
- QString mod_name = app->moduleTitle( myStudy->componentDataType( e ) );
- LightApp_Displayer* d = LightApp_Displayer::FindDisplayer( mod_name, false );
+ QString mname = myStudy->componentDataType( e ) ;
+ LightApp_Displayer* d = LightApp_Displayer::FindDisplayer( mname, false );
// false in last parameter means that now we doesn't load module, if it isn't loaded
if ( d )