#1981 RFT Plot. Disabled several commands

This commit is contained in:
Bjørn Erik Jensen
2017-10-10 11:18:35 +02:00
parent ac10f21597
commit 886c1ea256
10 changed files with 26 additions and 6 deletions

View File

@@ -28,6 +28,7 @@
#include "RimWellAllocationPlot.h"
#include "RimWellLogPlot.h"
#include "RimWellLogTrack.h"
#include "RimWellRftPlot.h"
#include "cafPdmObject.h"
#include "cafPdmUiItem.h"
@@ -119,7 +120,9 @@ bool RicCopyReferencesToClipboardFeature::isAnyCopyableObjectSelected()
bool RicCopyReferencesToClipboardFeature::isCopyOfObjectSupported(caf::PdmObject* pdmObject)
{
RimWellAllocationPlot* wellAllocPlot = nullptr;
RimWellRftPlot* rftPlot = nullptr;
pdmObject->firstAncestorOrThisOfType(wellAllocPlot);
pdmObject->firstAncestorOrThisOfType(rftPlot);
if (dynamic_cast<RimGeoMechView*>(pdmObject))
{
@@ -139,7 +142,7 @@ bool RicCopyReferencesToClipboardFeature::isCopyOfObjectSupported(caf::PdmObject
}
else if (dynamic_cast<RimPlotCurve*>(pdmObject))
{
return true;
if(!rftPlot) return true;
}
else if (dynamic_cast<RimSummaryCurveFilter*>(pdmObject))
{
@@ -147,11 +150,11 @@ bool RicCopyReferencesToClipboardFeature::isCopyOfObjectSupported(caf::PdmObject
}
else if (dynamic_cast<RimWellLogTrack*>(pdmObject))
{
if (!wellAllocPlot) return true;
if (!wellAllocPlot && !rftPlot) return true;
}
else if (dynamic_cast<RimWellLogPlot*>(pdmObject))
{
if (!wellAllocPlot) return true;
if (!wellAllocPlot && !rftPlot) return true;
}
return false;