mirror of
https://github.com/OPM/ResInsight.git
synced 2026-09-03 20:53:13 -05:00
@@ -29,20 +29,8 @@ void RiaOptionItemFactory::appendOptionItemFromViewNameAndCaseName( Rim3dView*
|
|||||||
{
|
{
|
||||||
if ( !view || !optionItems ) return;
|
if ( !view || !optionItems ) return;
|
||||||
|
|
||||||
QString caseName;
|
|
||||||
|
|
||||||
RimCase* rimCase = nullptr;
|
QString displayName = view->autoName();
|
||||||
view->firstAncestorOrThisOfType( rimCase );
|
|
||||||
if ( rimCase )
|
|
||||||
{
|
|
||||||
caseName = rimCase->caseUserDescription();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
caseName = "<Unnamed case>";
|
|
||||||
}
|
|
||||||
|
|
||||||
QString displayName = caseName + " : " + view->name();
|
|
||||||
|
|
||||||
caf::QIconProvider iconProvider = view->uiCapability()->uiIconProvider();
|
caf::QIconProvider iconProvider = view->uiCapability()->uiIconProvider();
|
||||||
|
|
||||||
|
|||||||
@@ -219,6 +219,14 @@ QString Rim3dView::name() const
|
|||||||
return m_nameConfig->customName();
|
return m_nameConfig->customName();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
QString Rim3dView::autoName() const
|
||||||
|
{
|
||||||
|
return m_nameConfig->name();
|
||||||
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -109,6 +109,7 @@ public:
|
|||||||
|
|
||||||
void setName( const QString& name );
|
void setName( const QString& name );
|
||||||
QString name() const;
|
QString name() const;
|
||||||
|
QString autoName() const;
|
||||||
|
|
||||||
// Implementation of RiuViewerToViewInterface
|
// Implementation of RiuViewerToViewInterface
|
||||||
cvf::Color3f backgroundColor() const override
|
cvf::Color3f backgroundColor() const override
|
||||||
|
|||||||
Reference in New Issue
Block a user