caf: Rename of SelectionRole to SelectionLevel and

CURRENT to FIRST_LEVEL
Replace use of SelectionLevel enum as argument with int
This commit is contained in:
Jacob Støren
2018-08-21 15:49:44 +02:00
parent 0e92c1d594
commit 296854d749
18 changed files with 58 additions and 54 deletions

View File

@@ -41,7 +41,7 @@ bool RicNewWellPathAttributeFeature::isCommandEnabled()
}
{
std::vector<RimWellPathAttribute*> objects;
caf::SelectionManager::instance()->objectsByType(&objects, caf::SelectionManager::CURRENT);
caf::SelectionManager::instance()->objectsByType(&objects, caf::SelectionManager::FIRST_LEVEL);
if ( objects.size() > 0 )
{
@@ -58,7 +58,7 @@ bool RicNewWellPathAttributeFeature::isCommandEnabled()
void RicNewWellPathAttributeFeature::onActionTriggered(bool isChecked)
{
std::vector<RimWellPathAttribute*> attributes;
caf::SelectionManager::instance()->objectsByType(&attributes, caf::SelectionManager::CURRENT);
caf::SelectionManager::instance()->objectsByType(&attributes, caf::SelectionManager::FIRST_LEVEL);
if (attributes.size() > 0)
{
RimWellPathAttributeCollection* attributeCollection = nullptr;