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:
@@ -44,15 +44,16 @@
|
|||||||
#include <QFileInfo>
|
#include <QFileInfo>
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
|
|
||||||
CAF_CMD_SOURCE_INIT(RicSaveEclipseInputActiveVisibleCellsFeature, "RicSaveEclipseInputActiveVisibleCellsFeature");
|
|
||||||
CAF_CMD_SOURCE_INIT(RicSaveEclipseInputVisibleCellsFeature, "RicSaveEclipseInputVisibleCellsFeature");
|
CAF_CMD_SOURCE_INIT(RicSaveEclipseInputVisibleCellsFeature, "RicSaveEclipseInputVisibleCellsFeature");
|
||||||
|
CAF_CMD_SOURCE_INIT(RicSaveEclipseInputActiveVisibleCellsFeature, "RicSaveEclipseInputActiveVisibleCellsFeature");
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void executeCommand(RimEclipseView* view)
|
void executeCommand(RimEclipseView* view)
|
||||||
{
|
{
|
||||||
|
if (!view) return;
|
||||||
|
|
||||||
RicSaveEclipseInputVisibleCellsUi exportSettings;
|
RicSaveEclipseInputVisibleCellsUi exportSettings;
|
||||||
caf::PdmUiPropertyViewDialog propertyDialog(RiuMainWindow::instance(), &exportSettings, "Export FLUXNUM/MULTNUM", "");
|
caf::PdmUiPropertyViewDialog propertyDialog(RiuMainWindow::instance(), &exportSettings, "Export FLUXNUM/MULTNUM", "");
|
||||||
RicExportFeatureImpl::configureForExport(&propertyDialog);
|
RicExportFeatureImpl::configureForExport(&propertyDialog);
|
||||||
@@ -148,7 +149,7 @@ RimEclipseView* RicSaveEclipseInputVisibleCellsFeature::selectedView() const
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
bool RicSaveEclipseInputActiveVisibleCellsFeature::isCommandEnabled()
|
bool RicSaveEclipseInputActiveVisibleCellsFeature::isCommandEnabled()
|
||||||
{
|
{
|
||||||
return getEclipseActiveView() != nullptr;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -204,6 +204,7 @@ void RiuMainPlotWindow::createMenus()
|
|||||||
QMenu* exportMenu = fileMenu->addMenu("&Export");
|
QMenu* exportMenu = fileMenu->addMenu("&Export");
|
||||||
exportMenu->addAction(cmdFeatureMgr->action("RicSnapshotViewToFileFeature"));
|
exportMenu->addAction(cmdFeatureMgr->action("RicSnapshotViewToFileFeature"));
|
||||||
exportMenu->addAction(cmdFeatureMgr->action("RicSnapshotAllPlotsToFileFeature"));
|
exportMenu->addAction(cmdFeatureMgr->action("RicSnapshotAllPlotsToFileFeature"));
|
||||||
|
exportMenu->addAction(cmdFeatureMgr->action("RicSaveEclipseInputActiveVisibleCellsFeature"));
|
||||||
|
|
||||||
fileMenu->addSeparator();
|
fileMenu->addSeparator();
|
||||||
fileMenu->addAction(cmdFeatureMgr->action("RicSaveProjectFeature"));
|
fileMenu->addAction(cmdFeatureMgr->action("RicSaveProjectFeature"));
|
||||||
|
|||||||
@@ -374,6 +374,8 @@ void RiuMainWindow::createMenus()
|
|||||||
exportMenu->addAction(cmdFeatureMgr->action("RicSnapshotViewToFileFeature"));
|
exportMenu->addAction(cmdFeatureMgr->action("RicSnapshotViewToFileFeature"));
|
||||||
exportMenu->addAction(m_snapshotAllViewsToFile);
|
exportMenu->addAction(m_snapshotAllViewsToFile);
|
||||||
exportMenu->addAction(cmdFeatureMgr->action("RicExportMultipleSnapshotsFeature"));
|
exportMenu->addAction(cmdFeatureMgr->action("RicExportMultipleSnapshotsFeature"));
|
||||||
|
exportMenu->addSeparator();
|
||||||
|
exportMenu->addAction(cmdFeatureMgr->action("RicSaveEclipseInputActiveVisibleCellsFeature"));
|
||||||
|
|
||||||
fileMenu->addSeparator();
|
fileMenu->addSeparator();
|
||||||
fileMenu->addAction(cmdFeatureMgr->action("RicSaveProjectFeature"));
|
fileMenu->addAction(cmdFeatureMgr->action("RicSaveProjectFeature"));
|
||||||
|
|||||||
Reference in New Issue
Block a user