mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
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:
@@ -33,7 +33,7 @@ CAF_CMD_SOURCE_INIT(RicDeleteOptionItemFeature, "RicDeleteOptionItemFeature");
|
||||
void RicDeleteOptionItemFeature::onActionTriggered(bool isChecked)
|
||||
{
|
||||
std::vector<RicCreateMultipleFracturesOptionItemUi*> optionItems;
|
||||
caf::SelectionManager::instance()->objectsByType(&optionItems, caf::SelectionManager::CURRENT);
|
||||
caf::SelectionManager::instance()->objectsByType(&optionItems, caf::SelectionManager::FIRST_LEVEL);
|
||||
|
||||
if (!optionItems.empty())
|
||||
{
|
||||
@@ -64,7 +64,7 @@ void RicDeleteOptionItemFeature::setupActionLook(QAction* actionToSetup)
|
||||
bool RicDeleteOptionItemFeature::isCommandEnabled()
|
||||
{
|
||||
std::vector<RicCreateMultipleFracturesOptionItemUi*> optionItems;
|
||||
caf::SelectionManager::instance()->objectsByType(&optionItems, caf::SelectionManager::CURRENT);
|
||||
caf::SelectionManager::instance()->objectsByType(&optionItems, caf::SelectionManager::FIRST_LEVEL);
|
||||
|
||||
return !optionItems.empty();
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ void RicNewOptionItemFeature::onActionTriggered(bool isChecked)
|
||||
|
||||
{
|
||||
std::vector<RicCreateMultipleFracturesOptionItemUi*> optionItems;
|
||||
caf::SelectionManager::instance()->objectsByType(&optionItems, caf::SelectionManager::CURRENT);
|
||||
caf::SelectionManager::instance()->objectsByType(&optionItems, caf::SelectionManager::FIRST_LEVEL);
|
||||
if (!optionItems.empty())
|
||||
{
|
||||
selectedOptionItem = optionItems.front();
|
||||
@@ -64,7 +64,7 @@ void RicNewOptionItemFeature::onActionTriggered(bool isChecked)
|
||||
}
|
||||
|
||||
std::vector<RiuCreateMultipleFractionsUi*> multipleFractions;
|
||||
caf::SelectionManager::instance()->objectsByType(&multipleFractions, caf::SelectionManager::CURRENT);
|
||||
caf::SelectionManager::instance()->objectsByType(&multipleFractions, caf::SelectionManager::FIRST_LEVEL);
|
||||
if (!multipleFractions.empty())
|
||||
{
|
||||
multipleFractionUi = multipleFractions[0];
|
||||
|
||||
@@ -32,7 +32,7 @@ bool RicDeleteWellPathAttributeFeature::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 )
|
||||
{
|
||||
@@ -49,7 +49,7 @@ bool RicDeleteWellPathAttributeFeature::isCommandEnabled()
|
||||
void RicDeleteWellPathAttributeFeature::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* wellPathAttributeCollection = nullptr;
|
||||
|
||||
@@ -31,7 +31,7 @@ CAF_CMD_SOURCE_INIT(RicDeleteWellPathTargetFeature, "RicDeleteWellPathTargetFeat
|
||||
bool RicDeleteWellPathTargetFeature::isCommandEnabled()
|
||||
{
|
||||
std::vector<RimWellPathTarget*> objects;
|
||||
caf::SelectionManager::instance()->objectsByType(&objects, caf::SelectionManager::CURRENT);
|
||||
caf::SelectionManager::instance()->objectsByType(&objects, caf::SelectionManager::FIRST_LEVEL);
|
||||
|
||||
if ( objects.size() > 0 )
|
||||
{
|
||||
@@ -47,7 +47,7 @@ bool RicDeleteWellPathTargetFeature::isCommandEnabled()
|
||||
void RicDeleteWellPathTargetFeature::onActionTriggered(bool isChecked)
|
||||
{
|
||||
std::vector<RimWellPathTarget*> targets;
|
||||
caf::SelectionManager::instance()->objectsByType(&targets, caf::SelectionManager::CURRENT);
|
||||
caf::SelectionManager::instance()->objectsByType(&targets, caf::SelectionManager::FIRST_LEVEL);
|
||||
|
||||
if (targets.size() > 0)
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -41,7 +41,7 @@ bool RicNewWellPathListTargetFeature::isCommandEnabled()
|
||||
}
|
||||
{
|
||||
std::vector<RimWellPathTarget*> 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 RicNewWellPathListTargetFeature::isCommandEnabled()
|
||||
void RicNewWellPathListTargetFeature::onActionTriggered(bool isChecked)
|
||||
{
|
||||
std::vector<RimWellPathTarget*> targets;
|
||||
caf::SelectionManager::instance()->objectsByType(&targets, caf::SelectionManager::CURRENT);
|
||||
caf::SelectionManager::instance()->objectsByType(&targets, caf::SelectionManager::FIRST_LEVEL);
|
||||
if (targets.size() > 0)
|
||||
{
|
||||
auto firstTarget = targets.front();
|
||||
|
||||
Reference in New Issue
Block a user