Added collection class for well log plots

This commit is contained in:
Pål Hagen
2015-08-28 10:42:57 +02:00
parent 75a34e605f
commit af9bbfdede
9 changed files with 163 additions and 42 deletions
@@ -565,7 +565,11 @@ void RimProject::actionsBasedOnSelection(QMenu& contextMenu)
std::vector<caf::PdmUiItem*> uiItems;
caf::SelectionManager::instance()->selectedItems(uiItems);
if (uiItems.size() > 1)
if (uiItems.size() == 0)
{
commandIds << "RicNewWellLogPlotFeature";
}
else if (uiItems.size() > 1)
{
commandIds << "RicCopyReferencesToClipboardFeature";
}
@@ -718,10 +722,6 @@ void RimProject::actionsBasedOnSelection(QMenu& contextMenu)
{
commandIds << "RicDeleteItemFeature";
}
else if (dynamic_cast<RimMainPlotCollection*>(uiItem))
{
commandIds << "RicNewWellLogPlotFeature";
}
if (dynamic_cast<RimManagedViewCollection*>(uiItem))
{