Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ bool RicDeleteCustomSegmentIntervalFeature::isCommandEnabled() const
//--------------------------------------------------------------------------------------------------
void RicDeleteCustomSegmentIntervalFeature::onActionTriggered( bool isChecked )
{
const auto intervals = caf::SelectionManager::instance()->objectsByType<RimCustomSegmentInterval>();
const auto intervals = caf::SelectionManager::instance()->objectsByType<RimCustomSegmentInterval>();
RimCustomSegmentIntervalCollection* intervalCollection = nullptr;

if ( !intervals.empty() )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ bool RicDeleteDiameterRoughnessIntervalFeature::isCommandEnabled() const
//--------------------------------------------------------------------------------------------------
void RicDeleteDiameterRoughnessIntervalFeature::onActionTriggered( bool isChecked )
{
const auto intervals = caf::SelectionManager::instance()->objectsByType<RimDiameterRoughnessInterval>();
const auto intervals = caf::SelectionManager::instance()->objectsByType<RimDiameterRoughnessInterval>();
RimDiameterRoughnessIntervalCollection* intervalCollection = nullptr;

if ( !intervals.empty() )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ CAF_CMD_SOURCE_INIT( RicDeleteOptionItemFeature, "RicDeleteOptionItemFeature" );
//--------------------------------------------------------------------------------------------------
void RicDeleteOptionItemFeature::onActionTriggered( bool isChecked )
{
const auto optionItems =
caf::SelectionManager::instance()->objectsByType<RicCreateMultipleFracturesOptionItemUi>();
const auto optionItems = caf::SelectionManager::instance()->objectsByType<RicCreateMultipleFracturesOptionItemUi>();

if ( !optionItems.empty() )
{
Expand Down Expand Up @@ -62,8 +61,7 @@ void RicDeleteOptionItemFeature::setupActionLook( QAction* actionToSetup )
//--------------------------------------------------------------------------------------------------
bool RicDeleteOptionItemFeature::isCommandEnabled() const
{
const auto optionItems =
caf::SelectionManager::instance()->objectsByType<RicCreateMultipleFracturesOptionItemUi>();
const auto optionItems = caf::SelectionManager::instance()->objectsByType<RicCreateMultipleFracturesOptionItemUi>();

return !optionItems.empty();
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ void RicNewOptionItemFeature::onActionTriggered( bool isChecked )
RicCreateMultipleFracturesOptionItemUi* selectedOptionItem = nullptr;

{
const auto optionItems =
caf::SelectionManager::instance()->objectsByType<RicCreateMultipleFracturesOptionItemUi>();
const auto optionItems = caf::SelectionManager::instance()->objectsByType<RicCreateMultipleFracturesOptionItemUi>();
if ( !optionItems.empty() )
{
selectedOptionItem = optionItems.front();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ bool RicDeleteWellPathAttributeFeature::isCommandEnabled() const
//--------------------------------------------------------------------------------------------------
void RicDeleteWellPathAttributeFeature::onActionTriggered( bool isChecked )
{
const auto attributes = caf::SelectionManager::instance()->objectsByType<RimWellPathAttribute>();
const auto attributes = caf::SelectionManager::instance()->objectsByType<RimWellPathAttribute>();
RimWellPathAttributeCollection* wellPathAttributeCollection = nullptr;
if ( !attributes.empty() )
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ bool RicNewWellPathAttributeFeature::isCommandEnabled() const
//--------------------------------------------------------------------------------------------------
void RicNewWellPathAttributeFeature::onActionTriggered( bool isChecked )
{
const auto attributes = caf::SelectionManager::instance()->objectsByType<RimWellPathAttribute>();
RimWellPathAttribute* attribute = nullptr;
const auto attributes = caf::SelectionManager::instance()->objectsByType<RimWellPathAttribute>();
RimWellPathAttribute* attribute = nullptr;
if ( attributes.size() == 1u )
{
auto attributeCollection = attributes[0]->firstAncestorOrThisOfTypeAsserted<RimWellPathAttributeCollection>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@ CmdExecuteCommand* CmdDeleteItemFeature::createExecuteCommand()
//--------------------------------------------------------------------------------------------------
bool CmdDeleteItemFeature::isCommandEnabled() const
{
caf::PdmObject* currentPdmObject =
dynamic_cast<caf::PdmObject*>( caf::SelectionManager::instance()->selectedItem() );
caf::PdmObject* currentPdmObject = dynamic_cast<caf::PdmObject*>( caf::SelectionManager::instance()->selectedItem() );
if ( !currentPdmObject ) return false;

caf::PdmChildArrayFieldHandle* childArrayFieldHandle =
Expand Down