mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 15:10:22 -05:00
RicImportGridAndSummaryEnsembleFeature: Add feature for importing grid and summary ensembles
- Add RicImportGridAndSummaryEnsembleFeature with icon and menu/toolbar registration - Register in main window toolbar, import menu (both windows) - Add feature to plot window Standard toolbar - Wire up post-import view and plot creation - Skip grid/summary ensemble creation when no files of that type are found - Keep focus in plot window when no grid ensembles are created
This commit is contained in:
1 parent
5b07323ac8
commit
fd27722991
15 files changed
+223
-16
No files matched your search
@@ -594,6 +594,8 @@ void RiuMainWindow::createToolBars()
|
||||
QToolBar* toolbar = addToolBar( tr( "Standard" ) );
|
||||
toolbar->setObjectName( toolbar->windowTitle() );
|
||||
toolbar->addAction( cmdFeatureMgr->action( "RicImportEclipseCaseFeature" ) );
|
||||
toolbar->addAction( cmdFeatureMgr->action( "RicImportGridAndSummaryEnsembleFeature" ) );
|
||||
toolbar->addSeparator();
|
||||
toolbar->addAction( cmdFeatureMgr->action( "RicOpenProjectFeature" ) );
|
||||
toolbar->addAction( cmdFeatureMgr->action( "RicSaveProjectFeature" ) );
|
||||
}
|
||||
|
||||
@@ -123,6 +123,9 @@ void RiuMenuBarBuildTools::addImportMenuWithActions( QObject* parent, QMenu* men
|
||||
QMenu* importRoffMenu = importMenu->addMenu( QIcon( ":/Case48x48.png" ), "Roff Grid Models" );
|
||||
importRoffMenu->addAction( cmdFeatureMgr->action( "RicImportRoffCaseFeature" ) );
|
||||
|
||||
importMenu->addSeparator();
|
||||
importMenu->addAction( cmdFeatureMgr->action( "RicImportGridAndSummaryEnsembleFeature" ) );
|
||||
|
||||
importMenu->addSeparator();
|
||||
QMenu* importSummaryMenu = importMenu->addMenu( QIcon( ":/SummaryCase.svg" ), "Summary Cases" );
|
||||
importSummaryMenu->addAction( cmdFeatureMgr->action( "RicImportSummaryCaseFeature" ) );
|
||||
|
||||
@@ -393,7 +393,9 @@ QStringList RiuPlotMainWindow::toolbarCommandIds( const QString& toolbarName )
|
||||
{
|
||||
commandIds << "RicImportEclipseCaseFeature";
|
||||
commandIds << "RicImportSummaryCaseFeature";
|
||||
commandIds << "RicImportGridAndSummaryEnsembleFeature";
|
||||
commandIds << "RicImportEnsembleFeature";
|
||||
commandIds << "Separator";
|
||||
commandIds << "RicOpenProjectFeature";
|
||||
commandIds << "RicSaveProjectFeature";
|
||||
}
|
||||
@@ -440,7 +442,14 @@ void RiuPlotMainWindow::createToolBars()
|
||||
QStringList toolbarCommands = toolbarCommandIds( toolbarName );
|
||||
for ( QString s : toolbarCommands )
|
||||
{
|
||||
toolbar->addAction( cmdFeatureMgr->action( s ) );
|
||||
if ( s.compare( "separator", Qt::CaseInsensitive ) == 0 )
|
||||
{
|
||||
toolbar->addSeparator();
|
||||
}
|
||||
else
|
||||
{
|
||||
toolbar->addAction( cmdFeatureMgr->action( s ) );
|
||||
}
|
||||
}
|
||||
if ( toolbarName == "View" )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user