#2210 Add "Export Visible Cells as FLUXNUM/MULTNUM" to file->export

This commit is contained in:
Rebecca Cox 2017-12-13 15:15:26 +01:00
parent 9979f49a7f
commit 170c00c88a
3 changed files with 7 additions and 3 deletions

View File

@ -44,15 +44,16 @@
#include <QFileInfo>
#include <QMessageBox>
CAF_CMD_SOURCE_INIT(RicSaveEclipseInputActiveVisibleCellsFeature, "RicSaveEclipseInputActiveVisibleCellsFeature");
CAF_CMD_SOURCE_INIT(RicSaveEclipseInputVisibleCellsFeature, "RicSaveEclipseInputVisibleCellsFeature");
CAF_CMD_SOURCE_INIT(RicSaveEclipseInputActiveVisibleCellsFeature, "RicSaveEclipseInputActiveVisibleCellsFeature");
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void executeCommand(RimEclipseView* view)
{
if (!view) return;
RicSaveEclipseInputVisibleCellsUi exportSettings;
caf::PdmUiPropertyViewDialog propertyDialog(RiuMainWindow::instance(), &exportSettings, "Export FLUXNUM/MULTNUM", "");
RicExportFeatureImpl::configureForExport(&propertyDialog);
@ -148,7 +149,7 @@ RimEclipseView* RicSaveEclipseInputVisibleCellsFeature::selectedView() const
//--------------------------------------------------------------------------------------------------
bool RicSaveEclipseInputActiveVisibleCellsFeature::isCommandEnabled()
{
return getEclipseActiveView() != nullptr;
return true;
}
//--------------------------------------------------------------------------------------------------

View File

@ -204,6 +204,7 @@ void RiuMainPlotWindow::createMenus()
QMenu* exportMenu = fileMenu->addMenu("&Export");
exportMenu->addAction(cmdFeatureMgr->action("RicSnapshotViewToFileFeature"));
exportMenu->addAction(cmdFeatureMgr->action("RicSnapshotAllPlotsToFileFeature"));
exportMenu->addAction(cmdFeatureMgr->action("RicSaveEclipseInputActiveVisibleCellsFeature"));
fileMenu->addSeparator();
fileMenu->addAction(cmdFeatureMgr->action("RicSaveProjectFeature"));

View File

@ -374,6 +374,8 @@ void RiuMainWindow::createMenus()
exportMenu->addAction(cmdFeatureMgr->action("RicSnapshotViewToFileFeature"));
exportMenu->addAction(m_snapshotAllViewsToFile);
exportMenu->addAction(cmdFeatureMgr->action("RicExportMultipleSnapshotsFeature"));
exportMenu->addSeparator();
exportMenu->addAction(cmdFeatureMgr->action("RicSaveEclipseInputActiveVisibleCellsFeature"));
fileMenu->addSeparator();
fileMenu->addAction(cmdFeatureMgr->action("RicSaveProjectFeature"));