From bf502e004503cb2e92a16b8eeca9dc44c5f8bbc7 Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 10 Jan 2005 09:07:45 +0000 Subject: [PATCH] Improve use case browser: use case items are colored by blue to differ them from Object Browser items --- src/SALOMEGUI/QAD_ObjectBrowser.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SALOMEGUI/QAD_ObjectBrowser.cxx b/src/SALOMEGUI/QAD_ObjectBrowser.cxx index 2ddb2c92a..8dbcba9f0 100644 --- a/src/SALOMEGUI/QAD_ObjectBrowser.cxx +++ b/src/SALOMEGUI/QAD_ObjectBrowser.cxx @@ -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 { -- 2.39.2