(#361) Refactored "On" as a start on the toggle commands

This commit is contained in:
Jacob Støren
2015-08-18 10:51:13 +02:00
parent 4606a3de8b
commit eadf1ca300
8 changed files with 331 additions and 1 deletions

View File

@@ -44,6 +44,7 @@
#include <QDir>
#include "cafCmdFeature.h"
#include "ToggleCommands\RicToggleItemsFeatureImpl.h"
CAF_PDM_SOURCE_INIT(RimProject, "ResInsightProject");
@@ -649,6 +650,13 @@ void RimProject::actionsBasedOnSelection(QMenu& contextMenu)
}
}
if (RicToggleItemsFeatureImpl::isToggleCommandsAvailable())
{
commandIds << "Separator";
commandIds << "RicToggleItemsOnFeature";
}
caf::CmdFeatureManager* commandManager = caf::CmdFeatureManager::instance();
for (int i = 0; i < commandIds.size(); i++)
{