#4262 Tidy up well path menus

This commit is contained in:
Gaute Lindkvist
2019-04-08 11:04:21 +02:00
parent dbac2d71c8
commit 4e10aa8ffa
17 changed files with 176 additions and 114 deletions

View File

@@ -84,7 +84,7 @@ RiuWellPathSelectionItem* RicNewFishbonesSubsAtMeasuredDepthFeature::wellPathSel
void RicNewFishbonesSubsAtMeasuredDepthFeature::setupActionLook(QAction* actionToSetup)
{
actionToSetup->setIcon(QIcon(":/FishBoneGroup16x16.png"));
actionToSetup->setText("New Fishbones");
actionToSetup->setText("Create Fishbones at this Depth");
}
//--------------------------------------------------------------------------------------------------

View File

@@ -30,6 +30,7 @@
#include "RimFishbonesMultipleSubs.h"
#include "Rim3dView.h"
#include "RimWellPathCollection.h"
#include "RimWellPathCompletions.h"
#include "RiuMainWindow.h"
@@ -112,6 +113,11 @@ RimFishbonesCollection* RicNewFishbonesSubsFeature::selectedFishbonesCollection(
{
return wellPaths[0]->fishbonesCollection();
}
RimWellPathCompletions* completions = caf::SelectionManager::instance()->selectedItemOfType<RimWellPathCompletions>();
if (completions)
{
return completions->fishbonesCollection();
}
}
return objToFind;
@@ -123,7 +129,7 @@ RimFishbonesCollection* RicNewFishbonesSubsFeature::selectedFishbonesCollection(
void RicNewFishbonesSubsFeature::setupActionLook(QAction* actionToSetup)
{
actionToSetup->setIcon(QIcon(":/FishBoneGroup16x16.png"));
actionToSetup->setText("New Fishbones");
actionToSetup->setText("Create Fishbones");
}
//--------------------------------------------------------------------------------------------------

View File

@@ -84,7 +84,7 @@ RiuWellPathSelectionItem* RicNewPerforationIntervalAtMeasuredDepthFeature::wellP
void RicNewPerforationIntervalAtMeasuredDepthFeature::setupActionLook(QAction* actionToSetup)
{
actionToSetup->setIcon(QIcon(":/PerforationIntervals16x16.png"));
actionToSetup->setText("New Perforation Interval");
actionToSetup->setText("Create Perforation Interval at this Depth");
}
//--------------------------------------------------------------------------------------------------

View File

@@ -26,6 +26,7 @@
#include "RimPerforationInterval.h"
#include "RimPerforationCollection.h"
#include "RimWellPathCollection.h"
#include "RimWellPathCompletions.h"
#include "cafSelectionManager.h"
@@ -75,7 +76,7 @@ void RicNewPerforationIntervalFeature::onActionTriggered(bool isChecked)
void RicNewPerforationIntervalFeature::setupActionLook(QAction* actionToSetup)
{
actionToSetup->setIcon(QIcon(":/PerforationInterval16x16.png"));
actionToSetup->setText("New Perforation Interval");
actionToSetup->setText("Create Perforation Interval");
}
//--------------------------------------------------------------------------------------------------
@@ -101,6 +102,11 @@ RimPerforationCollection* RicNewPerforationIntervalFeature::selectedPerforationC
{
return wellPaths[0]->perforationIntervalCollection();
}
RimWellPathCompletions* completions = caf::SelectionManager::instance()->selectedItemOfType<RimWellPathCompletions>();
if (completions)
{
return completions->perforationCollection();
}
}
return objToFind;

View File

@@ -65,5 +65,5 @@ void RicNewValveFeature::onActionTriggered(bool isChecked)
void RicNewValveFeature::setupActionLook(QAction* actionToSetup)
{
actionToSetup->setIcon(QIcon(":/ICDValve16x16.png"));
actionToSetup->setText("New Valve");
actionToSetup->setText("Create Valve");
}