mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#8463 Plotting : Add command line parameter to show 2D main window
This commit is contained in:
parent
40d59b7bdc
commit
b0470d38ee
@ -562,6 +562,12 @@ RiaApplication::ApplicationStatus RiaGuiApplication::handleArguments( gsl::not_n
|
|||||||
RicSummaryPlotFeatureImpl::createSummaryPlotsFromArgumentLine( cvfqt::Utils::toQStringList( o.values() ) );
|
RicSummaryPlotFeatureImpl::createSummaryPlotsFromArgumentLine( cvfqt::Utils::toQStringList( o.values() ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( cvf::Option o = progOpt->option( "openplotwindow" ) )
|
||||||
|
{
|
||||||
|
m_mainWindow->hide();
|
||||||
|
getOrCreateAndShowMainPlotWindow();
|
||||||
|
}
|
||||||
|
|
||||||
QString projectFileName;
|
QString projectFileName;
|
||||||
|
|
||||||
if ( progOpt->hasOption( "last" ) )
|
if ( progOpt->hasOption( "last" ) )
|
||||||
|
@ -143,6 +143,7 @@ bool RiaArgumentParser::parseArguments( cvf::ProgramOptions* progOpt )
|
|||||||
progOpt->registerOption( "generate", "[<outputFile>]", "Generate code or documentation", cvf::ProgramOptions::SINGLE_VALUE );
|
progOpt->registerOption( "generate", "[<outputFile>]", "Generate code or documentation", cvf::ProgramOptions::SINGLE_VALUE );
|
||||||
progOpt->registerOption( "ignoreArgs", "", "System command. Ignore all arguments. Mostly for testing purposes" );
|
progOpt->registerOption( "ignoreArgs", "", "System command. Ignore all arguments. Mostly for testing purposes" );
|
||||||
progOpt->registerOption( "version", "", "Display the application version string" );
|
progOpt->registerOption( "version", "", "Display the application version string" );
|
||||||
|
progOpt->registerOption( "openplotwindow", "", "Open the 2D plot window. By default, the 3D window is displayed." );
|
||||||
|
|
||||||
progOpt->setOptionPrefix( cvf::ProgramOptions::DOUBLE_DASH );
|
progOpt->setOptionPrefix( cvf::ProgramOptions::DOUBLE_DASH );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user