#2580 Export Completion Data : Add command in File/Export menu

This commit is contained in:
Magne Sjaastad
2018-04-20 15:08:18 +02:00
parent 8a02fc3095
commit 1ff149c668
2 changed files with 29 additions and 4 deletions

View File

@@ -398,6 +398,7 @@ void RiuMainWindow::createMenus()
exportMenu->addAction(cmdFeatureMgr->action("RicExportMultipleSnapshotsFeature"));
exportMenu->addSeparator();
exportMenu->addAction(cmdFeatureMgr->action("RicSaveEclipseInputActiveVisibleCellsFeature"));
exportMenu->addAction(cmdFeatureMgr->action("RicExportCompletionsForVisibleWellPathsFeature"));
fileMenu->addSeparator();
fileMenu->addAction(cmdFeatureMgr->action("RicSaveProjectFeature"));
@@ -753,6 +754,10 @@ void RiuMainWindow::slotRefreshFileActions()
CVF_ASSERT(cmdFeatureMgr);
cmdFeatureMgr->action("RicWellPathsImportSsihubFeature")->setEnabled(projectFileExists);
QStringList commandIdList;
commandIdList << "RicExportCompletionsForVisibleWellPathsFeature";
cmdFeatureMgr->refreshStates(commandIdList);
}