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:
sigurdp
2013-12-04 12:04:42 +01:00
parent 192f4bba59
commit 0656b5254f
6 changed files with 759 additions and 104 deletions

View File

@@ -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);
}
//--------------------------------------------------------------------------------------------------