mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2210 Add "Export Visible Cells as FLUXNUM/MULTNUM" to file->export
This commit is contained in:
parent
9979f49a7f
commit
170c00c88a
@ -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;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -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"));
|
||||
|
@ -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"));
|
||||
|
Loading…
Reference in New Issue
Block a user