(#499) Added a custom track delete feature

Added infrastructure needed to delete track from plot and plot
collection
This commit is contained in:
Magne Sjaastad
2015-09-21 15:55:55 +02:00
parent 4d42fd37f5
commit 2b7d7be3f1
9 changed files with 150 additions and 15 deletions

View File

@@ -49,20 +49,6 @@ bool RicDeleteItemFeature::isCommandEnabled()
caf::PdmChildArrayFieldHandle* childArrayFieldHandle = dynamic_cast<caf::PdmChildArrayFieldHandle*>(currentPdmObject->parentField());
if (!childArrayFieldHandle) return false;
if (dynamic_cast<RimWellLogPlotTrack*>(currentPdmObject))
{
RimWellLogPlotTrack* plotTrack = dynamic_cast<RimWellLogPlotTrack*>(currentPdmObject);
RimWellLogPlot* wellLogPlot;
plotTrack->firstAnchestorOrThisOfType(wellLogPlot);
if (wellLogPlot)
{
if (wellLogPlot->trackCount() < 2)
{
return false;
}
}
}
return true;
}