(#446) Added feature "Set master view" to context menu in 3D and in project tree

This commit is contained in:
Magne Sjaastad
2015-09-16 15:13:56 +02:00
parent 4c781b12be
commit f1e11780ce
5 changed files with 175 additions and 6 deletions

View File

@@ -666,17 +666,16 @@ void RimProject::actionsBasedOnSelection(QMenu& contextMenu)
commandIds << "RicNewViewFeature";
commandIds << "RicCopyReferencesToClipboardFeature";
commandIds << "RicPasteGeoMechViewsFeature";
commandIds << "Separator";
commandIds << "RicDeleteItemFeature";
commandIds << "Separator";
}
else if (dynamic_cast<RimEclipseView*>(uiItem))
{
commandIds << "RicNewViewFeature";
commandIds << "RicCopyReferencesToClipboardFeature";
commandIds << "RicPasteEclipseViewsFeature";
commandIds << "Separator";
commandIds << "RicDeleteItemFeature";
commandIds << "Separator";
}
else if (dynamic_cast<RimCaseCollection*>(uiItem))
{
@@ -685,9 +684,6 @@ void RimProject::actionsBasedOnSelection(QMenu& contextMenu)
}
else if (dynamic_cast<RimEclipseStatisticsCase*>(uiItem))
{
//menu.addAction(QString("New View"), this, SLOT(slotAddView()));
//menu.addAction(QString("Compute"), this, SLOT(slotComputeStatistics()));
//menu.addAction(QString("Close"), this, SLOT(slotCloseCase()));
commandIds << "RicNewViewFeature";
commandIds << "RicComputeStatisticsFeature";
commandIds << "RicCloseCaseFeature";
@@ -829,6 +825,11 @@ void RimProject::actionsBasedOnSelection(QMenu& contextMenu)
{
commandIds << "RicAddWellLogToPlotFeature";
}
if (dynamic_cast<RimView*>(uiItem))
{
commandIds << "RicSetMasterViewFeature";
}
}
if (RicToggleItemsFeatureImpl::isToggleCommandsAvailable())