]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Improve use case browser: use case items are colored by blue to differ them from...
authorvsr <vsr@opencascade.com>
Mon, 10 Jan 2005 09:07:45 +0000 (09:07 +0000)
committervsr <vsr@opencascade.com>
Mon, 10 Jan 2005 09:07:45 +0000 (09:07 +0000)
src/SALOMEGUI/QAD_ObjectBrowser.cxx

index 2ddb2c92a6fce17da4e9c8937f98c32dd268d4f0..8dbcba9f0d6b94e5fec3c78812ecb2fec4ca7f91 100644 (file)
@@ -1069,6 +1069,7 @@ void QAD_ObjectBrowser::UpdateUCItem( SALOMEDS::SObject_var UCObject, QAD_Object
 
   SALOMEDS::UseCaseBuilder_var               UCBuilder = myStudy->GetUseCaseBuilder();
   SALOMEDS::SObject_var                      SOCurrent = UCBuilder->GetCurrentObject();
+  bool                                       isUseCase = UCBuilder->IsUseCase( UCObject );
 
   QAD_ObjectBrowserItem* UCSubItem = 0;
   if ( myUseCaseMap.contains( UCEntry ) && myUseCaseMap[ UCEntry ].count() > 0 )
@@ -1120,7 +1121,7 @@ void QAD_ObjectBrowser::UpdateUCItem( SALOMEDS::SObject_var UCObject, QAD_Object
       aName = SALOMEDS::AttributeName::_narrow( anAttr );
       aString = aName->Value();
       if ( !UCSubItem ) {
-       UCSubItem = AddItem( UCItem, aString.in(), UCEntry, ior, 0, "", valueString );
+       UCSubItem = AddItem( UCItem, aString.in(), UCEntry, ior, isUseCase ? 1 : 0, "", valueString );
        myUseCaseMap[ UCEntry ].append( UCSubItem );
       }
       else {