mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
New feature: delete unchecked subitems (#9010)
* New feature: delete unchecked subitems
This commit is contained in:
@@ -64,6 +64,14 @@ void RimWellPathFractureCollection::addFracture( RimWellPathFracture* fracture )
|
||||
m_fractures.push_back( fracture );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellPathFractureCollection::removeFracture( RimWellPathFracture* fracture )
|
||||
{
|
||||
m_fractures.removeChild( fracture );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -43,6 +43,7 @@ public:
|
||||
|
||||
bool hasFractures() const;
|
||||
void addFracture( RimWellPathFracture* fracture );
|
||||
void removeFracture( RimWellPathFracture* fracture );
|
||||
void deleteFractures();
|
||||
|
||||
std::vector<RimWellPathFracture*> allFractures() const;
|
||||
|
||||
@@ -1305,6 +1305,7 @@ caf::CmdFeatureMenuBuilder RimContextCommandBuilder::commandsFromSelection()
|
||||
if ( caf::CmdFeatureManager::instance()->getCommandFeature( "RicDeleteSubItemsFeature" )->canFeatureBeExecuted() )
|
||||
{
|
||||
menuBuilder << "Separator";
|
||||
menuBuilder << "RicDeleteUncheckedSubItemsFeature";
|
||||
menuBuilder << "RicDeleteSubItemsFeature";
|
||||
}
|
||||
|
||||
|
||||
@@ -83,6 +83,15 @@ void RimSummaryMultiPlotCollection::addSummaryMultiPlot( RimSummaryMultiPlot* pl
|
||||
plot->duplicatePlot.connect( this, &RimSummaryMultiPlotCollection::onDuplicatePlot );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimSummaryMultiPlotCollection::removePlotNoUpdate( RimSummaryMultiPlot* plot )
|
||||
{
|
||||
if ( plot == nullptr ) return;
|
||||
m_summaryMultiPlots().removeChild( plot );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -48,6 +48,7 @@ public:
|
||||
void addSummaryMultiPlot( RimSummaryMultiPlot* plot );
|
||||
void summaryPlotItemInfos( QList<caf::PdmOptionItemInfo>* optionInfos ) const;
|
||||
void duplicatePlot( RimSummaryMultiPlot* plotToDuplicate );
|
||||
void removePlotNoUpdate( RimSummaryMultiPlot* plotToRemove );
|
||||
|
||||
void updateSummaryNameHasChanged();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user