Add program options --output and --hidden and implement PDF as export format

This commit is contained in:
wmayer
2012-03-31 13:25:01 +02:00
parent d3ffc1e5af
commit 76b5c9da7f
10 changed files with 94 additions and 15 deletions

View File

@@ -1620,9 +1620,15 @@ void Application::runApplication(void)
logo->setFrameShape(QFrame::NoFrame);
}
}
bool hidden = false;
it = cfg.find("StartHidden");
if (it != cfg.end()) {
hidden = true;
}
// show splasher while initializing the GUI
mw.startSplasher();
if (!hidden)
mw.startSplasher();
// running the GUI init script
try {
@@ -1656,8 +1662,10 @@ void Application::runApplication(void)
app.activateWorkbench(start.c_str());
// show the main window
Base::Console().Log("Init: Showing main window\n");
mw.loadWindowSettings();
if (!hidden) {
Base::Console().Log("Init: Showing main window\n");
mw.loadWindowSettings();
}
//initialize spaceball.
mainApp.initSpaceball(&mw);