CLIProcessor.cpp   CLIProcessor.cpp 
skipping to change at line 53 skipping to change at line 53
if (argsGetOption(argList, "-h", "--help")) if (argsGetOption(argList, "-h", "--help"))
{ {
// Get the basename of binary // Get the basename of binary
QString binName = argList.at(0); QString binName = argList.at(0);
binName.remove(QRegExp("^.*[/\\\\]")); binName.remove(QRegExp("^.*[/\\\\]"));
std::cout << "Usage:\n" std::cout << "Usage:\n"
<< " " << " "
<< qPrintable(binName) << " [options]\n\n" << qPrintable(binName) << " [options]\n\n"
<< "Options:\n" << "Options:\n"
<< "--version (or -v) : Print program name a << "--version (or -v) : Print program name a
nd version and exit.\n" nd version and exit.\n"
<< "--help (or -h) : This cruft.\n" << "--help (or -h) : This cruft.\n"
<< "--config-file (or -c) : Use an alternative n << "--config-file (or -c) : Use an alternative n
ame for the config file\n" ame for the config file\n"
<< "--user-dir (or -u) : Use an alternative u << "--user-dir (or -u) : Use an alternative u
ser data directory\n" ser data directory\n"
<< "--verbose : Even more diagnostic
output in logfile \n"
<< " (esp. multimedia han
dling)\n"
<< "--compat33 (or -C) : Request OpenGL 3.3 C
ompatibility Profile\n"
<< " May help for certain
driver configurations. Mac?\n"
<< "--fix-text (or -t) : May fix text renderi
ng problems\n"
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
<< "--angle-mode (or -a) : Use ANGLE as OpenGL ES2 rendering engine (autodetect driver)\n" << "--angle-mode (or -a) : Use ANGLE as OpenGL ES2 rendering engine (autodetect driver)\n"
<< "--angle-d3d9 (or -9) : Force use Direct3D 9 for ANGLE OpenGL ES2 rendering engine\n" << "--angle-d3d9 (or -9) : Force use Direct3D 9 for ANGLE OpenGL ES2 rendering engine\n"
<< "--angle-d3d11 : Force use Direct3D 1 1 for ANGLE OpenGL ES2 rendering engine\n" << "--angle-d3d11 : Force use Direct3D 1 1 for ANGLE OpenGL ES2 rendering engine\n"
<< "--angle-warp : Force use the Direct 3D 11 software rasterizer for ANGLE OpenGL ES2 rendering engine\n" << "--angle-warp : Force use the Direct 3D 11 software rasterizer for ANGLE OpenGL ES2 rendering engine\n"
<< "--mesa-mode (or -m) : Use MESA as software OpenGL rendering engine\n" << "--mesa-mode (or -m) : Use MESA as software OpenGL rendering engine\n"
<< "--safe-mode (or -s) : Synonymous to --mesa -mode \n" << "--safe-mode (or -s) : Synonymous to --mesa -mode \n"
#endif #endif
<< "--dump-opengl-details (or -d) : dump informati on about OpenGL support to logfile.\n" << "--dump-opengl-details (or -d) : dump informati on about OpenGL support to logfile.\n"
<< " Use this is you have graphics problems\n" << " Use this is you have graphics problems\n"
<< " and want to send a b ug report\n" << " and want to send a b ug report\n"
<< "--full-screen (or -f) : With argument \"yes\ << "--full-screen (or -f) : With argument \"yes\
" or \"no\" over-rides\n" " or \"no\" over-rides\n"
<< " the full screen sett << " the full screen sett
ing in the config file\n" ing in the config file\n"
<< "--screenshot-dir : Specify directory to << "--screenshot-dir : Specify directory to
save screenshots\n" save screenshots\n"
<< "--startup-script : Specify name of star << "--startup-script : Specify name of star
tup script\n" tup script\n"
<< "--home-planet : Specify observer pla << "--home-planet : Specify observer pla
net (English name)\n" net (English name)\n"
<< "--altitude : Specify observer alt << "--altitude : Specify observer alt
itude in meters\n" itude in meters\n"
<< "--longitude : Specify longitude, e << "--longitude : Specify longitude, e
.g. +53d58\\'16.65\\\"\n" .g. +53d58\\'16.65\\\"\n"
<< "--latitude : Specify latitude, e. << "--latitude : Specify latitude, e.
g. -1d4\\'27.48\\\"\n" g. -1d4\\'27.48\\\"\n"
<< "--list-landscapes : Print a list of vali d landscape IDs\n" << "--list-landscapes : Print a list of vali d landscape IDs\n"
<< "--landscape : Start using landscap e whose ID (dir name)\n" << "--landscape : Start using landscap e whose ID (dir name)\n"
<< " is passed as paramet er to option\n" << " is passed as paramet er to option\n"
<< "--sky-date : Specify sky date in format yyyymmdd\n" << "--sky-date : Specify sky date in format yyyymmdd\n"
<< "--sky-time : Specify sky time in format hh:mm:ss\n" << "--sky-time : Specify sky time in format hh:mm:ss\n"
<< "--fov : Specify the field of view (degrees)\n" << "--fov : Specify the field of view (degrees)\n"
<< "--projection-type : Specify projection t ype, e.g. stereographic\n" << "--projection-type : Specify projection t ype, e.g. stereographic\n"
<< "--restore-defaults : Delete existing conf ig.ini and use defaults\n" << "--restore-defaults : Delete existing conf ig.ini and use defaults\n"
<< "--multires-image : With filename / URL argument, specify a\n" << "--multires-image : With filename / URL argument, specify a\n"
<< " multi-resolution ima ge to load\n"; << " multi-resolution ima ge to load\n";
exit(0); exit(0);
} }
if (argsGetOption(argList, "", "--verbose"))
{
qApp->setProperty("verbose", true);
}
if (argsGetOption(argList, "-C", "--compat33"))
{
qApp->setProperty("onetime_compat33", true);
}
if (argsGetOption(argList, "-t", "--fix-text"))
{
qApp->setProperty("text_texture", true); // Will be observed
in StelPainter::drawText()
}
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
if (argsGetOption(argList, "-s", "--safe-mode")) if (argsGetOption(argList, "-s", "--safe-mode"))
{ {
qApp->setProperty("onetime_mesa_mode", true); qApp->setProperty("onetime_mesa_mode", true);
} }
if (argsGetOption(argList, "-a", "--angle-mode")) if (argsGetOption(argList, "-a", "--angle-mode"))
{ {
qApp->setProperty("onetime_angle_mode", true); qApp->setProperty("onetime_angle_mode", true);
} }
if (argsGetOption(argList, "-9", "--angle-d3d9")) if (argsGetOption(argList, "-9", "--angle-d3d9"))
 End of changes. 3 change blocks. 
23 lines changed or deleted 46 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/