#1842 RFT Plot. Command enabling criteria. Minor refactoring

This commit is contained in:
Bjørn Erik Jensen
2017-10-05 16:25:04 +02:00
parent d283e3aa8c
commit b6c74ee559
7 changed files with 123 additions and 136 deletions

View File

@@ -89,6 +89,7 @@
#include <vector>
#include <QMenu>
#include "RimRftPlotCollection.h"
//--------------------------------------------------------------------------------------------------
///
@@ -264,6 +265,10 @@ QStringList RimContextCommandBuilder::commandsFromSelection()
commandIds << "Separator";
commandIds << "RicNewWellLogPlotFeature";
}
else if (dynamic_cast<RimRftPlotCollection*>(uiItem))
{
commandIds << "RicNewRftPlotFeature";
}
else if (dynamic_cast<RimSummaryPlotCollection*>(uiItem))
{
commandIds << "RicPasteSummaryPlotFeature";