From e3d718d0084f4444fd3648c30fc79be0c3d3ff43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacob=20St=C3=B8ren?= Date: Fri, 18 Nov 2016 11:41:20 +0100 Subject: [PATCH] More context menu separators and adjustments --- .../RimContextCommandBuilder.cpp | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/ApplicationCode/ProjectDataModel/RimContextCommandBuilder.cpp b/ApplicationCode/ProjectDataModel/RimContextCommandBuilder.cpp index c258c23d39..3c2842c00d 100644 --- a/ApplicationCode/ProjectDataModel/RimContextCommandBuilder.cpp +++ b/ApplicationCode/ProjectDataModel/RimContextCommandBuilder.cpp @@ -105,6 +105,7 @@ QStringList RimContextCommandBuilder::commandsFromSelection() commandIds << "Separator"; commandIds << "RicNewViewFeature"; + commandIds << "Separator"; commandIds << "RicCopyReferencesToClipboardFeature"; //commandIds << "RicDeleteItemFeature"; //commandIds << "Separator"; @@ -114,6 +115,7 @@ QStringList RimContextCommandBuilder::commandsFromSelection() commandIds << "RicPasteEclipseViewsFeature"; commandIds << "Separator"; commandIds << "RicNewViewFeature"; + commandIds << "Separator"; commandIds << "RicCopyReferencesToClipboardFeature"; //commandIds << "RicDeleteItemFeature"; //commandIds << "Separator"; @@ -121,6 +123,7 @@ QStringList RimContextCommandBuilder::commandsFromSelection() else if (dynamic_cast(uiItem)) { commandIds << "RicPasteEclipseCasesFeature"; + commandIds << "Separator"; commandIds << "RicNewStatisticsCaseFeature"; } else if (dynamic_cast(uiItem)) @@ -139,6 +142,7 @@ QStringList RimContextCommandBuilder::commandsFromSelection() commandIds << "RicNewViewFeature"; commandIds << "RicEclipseCaseNewGroupFeature"; + commandIds << "Separator"; commandIds << "RicCopyReferencesToClipboardFeature"; commandIds << "Separator"; @@ -147,6 +151,7 @@ QStringList RimContextCommandBuilder::commandsFromSelection() else if (dynamic_cast(uiItem)) { commandIds << "RicPasteGeoMechViewsFeature"; + commandIds << "Separator"; commandIds << "RicNewViewFeature"; commandIds << "Separator"; @@ -154,8 +159,9 @@ QStringList RimContextCommandBuilder::commandsFromSelection() } else if (dynamic_cast(uiItem)) { - commandIds << "RicEclipseCaseNewGroupFeature"; commandIds << "RicPasteEclipseCasesFeature"; + commandIds << "Separator"; + commandIds << "RicEclipseCaseNewGroupFeature"; //commandIds << "RicDeleteItemFeature"; } else if (dynamic_cast(uiItem)) @@ -227,6 +233,7 @@ QStringList RimContextCommandBuilder::commandsFromSelection() else if (dynamic_cast(uiItem)) { commandIds << "RicEditScriptFeature"; + commandIds << "Separator"; commandIds << "RicNewScriptFeature"; commandIds << "Separator"; commandIds << "RicExecuteScriptFeature"; @@ -234,6 +241,7 @@ QStringList RimContextCommandBuilder::commandsFromSelection() else if (dynamic_cast(uiItem)) { commandIds << "RicNewScriptFeature"; + commandIds << "Separator"; commandIds << "RicAddScriptPathFeature"; commandIds << "RicRefreshScriptsFeature"; commandIds << "Separator"; @@ -257,8 +265,9 @@ QStringList RimContextCommandBuilder::commandsFromSelection() } else if (dynamic_cast(uiItem)) { - commandIds << "RicNewSummaryPlotFeature"; commandIds << "RicPasteSummaryPlotFeature"; + commandIds << "Separator"; + commandIds << "RicNewSummaryPlotFeature"; } else if (dynamic_cast(uiItem)) { @@ -286,6 +295,7 @@ QStringList RimContextCommandBuilder::commandsFromSelection() commandIds << "RicNewSummaryPlotFeature"; commandIds << "RicNewSummaryCurveFilterFeature"; commandIds << "RicNewSummaryCurveFeature"; + commandIds << "Separator"; commandIds << "RicCopyReferencesToClipboardFeature"; //commandIds << "RicDeleteItemFeature"; commandIds << "Separator"; @@ -297,6 +307,7 @@ QStringList RimContextCommandBuilder::commandsFromSelection() commandIds << "Separator"; commandIds << "RicNewSummaryCurveFilterFeature"; commandIds << "RicNewSummaryCurveFeature"; + commandIds << "Separator"; commandIds << "RicCopyReferencesToClipboardFeature"; //commandIds << "RicDeleteItemFeature"; commandIds << "Separator"; @@ -308,6 +319,7 @@ QStringList RimContextCommandBuilder::commandsFromSelection() commandIds << "Separator"; commandIds << "RicNewSummaryCurveFilterFeature"; commandIds << "RicNewSummaryCurveFeature"; + commandIds << "Separator"; commandIds << "RicCopyReferencesToClipboardFeature"; //commandIds << "RicDeleteItemFeature"; commandIds << "Separator"; @@ -354,10 +366,13 @@ QStringList RimContextCommandBuilder::commandsFromSelection() else if(dynamic_cast(uiItem)) { commandIds << "RicImportFormationNamesFeature"; + commandIds << "Separator"; commandIds << "RicReloadFormationNamesFeature"; //commandIds << "Separator"; //commandIds << "RicDeleteItemFeature"; } + + if (dynamic_cast(uiItem)) { commandIds << "Separator";