mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2036. WellLogFile close command
This commit is contained in:
@@ -574,6 +574,14 @@ QStringList RimContextCommandBuilder::commandsFromSelection()
|
||||
commandIds << "RicWellPathDeleteFeature";
|
||||
}
|
||||
|
||||
if (caf::CmdFeatureManager::instance()->getCommandFeature("RicWellLogFileCloseFeature")->canFeatureBeExecuted())
|
||||
{
|
||||
// Special delete command for Well paths
|
||||
// Placed here to fit context menu location of general delete feature
|
||||
commandIds << "Separator";
|
||||
commandIds << "RicWellLogFileCloseFeature";
|
||||
}
|
||||
|
||||
if ( caf::CmdFeatureManager::instance()->getCommandFeature("RicCloseCaseFeature")->canFeatureBeExecuted() )
|
||||
{
|
||||
commandIds << "Separator";
|
||||
|
||||
@@ -650,6 +650,21 @@ void RimWellPath::addWellLogFile(RimWellLogFile* logFileInfo)
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellPath::removeWellLogFile(const RimWellLogFile* logFileInfo)
|
||||
{
|
||||
for (int i = 0; i < m_wellLogFiles.size(); i++)
|
||||
{
|
||||
if (m_wellLogFiles[i] == logFileInfo)
|
||||
{
|
||||
m_wellLogFiles.erase(i);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -65,6 +65,7 @@ public:
|
||||
virtual ~RimWellPath();
|
||||
|
||||
void addWellLogFile(RimWellLogFile* logFileInfo);
|
||||
void removeWellLogFile(const RimWellLogFile* logFileInfo);
|
||||
|
||||
virtual caf::PdmFieldHandle* userDescriptionField();
|
||||
virtual caf::PdmFieldHandle* objectToggleField();
|
||||
|
||||
Reference in New Issue
Block a user