mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
First cut, command line options for batch processing
First cut implementation of command line oprions for batch proccessing. Added support for the follwoing new command line options: size, replacecase, replaceSourceCase and multiCaseSnapshots Reworked the entire command line processing code.
This commit is contained in:
@@ -805,7 +805,8 @@ void RiuMainWindow::slotOpenProject()
|
||||
void RiuMainWindow::slotOpenLastUsedProject()
|
||||
{
|
||||
RiaApplication* app = RiaApplication::instance();
|
||||
app->loadLastUsedProject();
|
||||
QString fileName = app->preferences()->lastUsedProjectFileName;
|
||||
app->loadProject(fileName);
|
||||
|
||||
}
|
||||
|
||||
@@ -1395,7 +1396,9 @@ void RiuMainWindow::slotSnapshotAllViewsToFile()
|
||||
{
|
||||
RiaApplication* app = RiaApplication::instance();
|
||||
|
||||
app->saveSnapshotForAllViews("snapshots");
|
||||
// Save images in snapshot catalog relative to project directory
|
||||
QString absolutePathToSnapshotDir = app->createAbsolutePathFromProjectRelativePath("snapshots");
|
||||
app->saveSnapshotForAllViews(absolutePathToSnapshotDir);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user