#901 WLP: Added copy/paste of curves

This commit is contained in:
Magne Sjaastad
2016-11-22 08:48:11 +01:00
parent f688a89262
commit 402c629646
4 changed files with 185 additions and 3 deletions

View File

@@ -255,6 +255,8 @@ QStringList RimContextCommandBuilder::commandsFromSelection()
}
else if (dynamic_cast<RimWellLogTrack*>(uiItem))
{
commandIds << "RicPasteWellLogCurveFeature";
commandIds << "Separator";
commandIds << "RicNewWellLogCurveExtractionFeature";
commandIds << "RicNewWellLogFileCurveFeature";
commandIds << "Separator";
@@ -262,7 +264,7 @@ QStringList RimContextCommandBuilder::commandsFromSelection()
}
else if (dynamic_cast<RimWellLogCurve*>(uiItem))
{
//commandIds << "RicDeleteItemFeature";
commandIds << "RicPasteWellLogCurveFeature";
}
else if (dynamic_cast<RimSummaryPlot*>(uiItem))
{
@@ -376,8 +378,12 @@ QStringList RimContextCommandBuilder::commandsFromSelection()
}
else if (dynamic_cast<RimWellLogCurve*>(uiItem) ||
dynamic_cast<RimWellLogTrack*>(uiItem) ||
dynamic_cast<RimWellLogPlot*>(uiItem) ||
dynamic_cast<RimWellLogPlotCollection*>(uiItem))
dynamic_cast<RimWellLogPlot*>(uiItem))
{
commandIds << "RicCopyReferencesToClipboardFeature";
commandIds << "RicExportToLasFileFeature";
}
else if (dynamic_cast<RimWellLogPlotCollection*>(uiItem))
{
commandIds << "RicExportToLasFileFeature";
}