mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4822 Countour Map Export: Add export to context menu in 3D view
This commit is contained in:
@@ -213,7 +213,9 @@ void RiuViewerCommands::displayContextMenu( QMouseEvent* event )
|
||||
}
|
||||
}
|
||||
|
||||
// Build menue
|
||||
// Build menus
|
||||
|
||||
caf::CmdFeatureManager::instance()->setCurrentContextMenuTargetWidget( m_viewer );
|
||||
|
||||
QMenu menu;
|
||||
caf::CmdFeatureMenuBuilder menuBuilder;
|
||||
@@ -548,6 +550,8 @@ void RiuViewerCommands::displayContextMenu( QMouseEvent* event )
|
||||
{
|
||||
}
|
||||
|
||||
menuBuilder << "RicExportContourMapToTextFeature";
|
||||
|
||||
menuBuilder.appendToMenu( &menu );
|
||||
|
||||
if ( !menu.isEmpty() )
|
||||
@@ -555,6 +559,8 @@ void RiuViewerCommands::displayContextMenu( QMouseEvent* event )
|
||||
menu.exec( event->globalPos() );
|
||||
}
|
||||
|
||||
caf::CmdFeatureManager::instance()->setCurrentContextMenuTargetWidget( nullptr );
|
||||
|
||||
// Delete items in temporary selection
|
||||
Riu3dSelectionManager::instance()->deleteAllItems( Riu3dSelectionManager::RUI_TEMPORARY );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user