CLIProcessor.cpp   CLIProcessor.cpp 
skipping to change at line 151 skipping to change at line 151
{ {
qCritical() << "ERROR while checking command line options: " << e.what(); qCritical() << "ERROR while checking command line options: " << e.what();
exit(0); exit(0);
} }
// Will be -1 if option is not found, in which case we don't change anything. // Will be -1 if option is not found, in which case we don't change anything.
if (fullScreen==1) if (fullScreen==1)
confSettings->setValue("video/fullscreen", true); confSettings->setValue("video/fullscreen", true);
else if (fullScreen==0) else if (fullScreen==0)
confSettings->setValue("video/fullscreen", false); confSettings->setValue("video/fullscreen", false);
if (!landscapeId.isEmpty()) confSettings->setValue("init_location/la if (!landscapeId.isEmpty()) confSettings->setValue("location_run_onc
ndscape_name", landscapeId); e/landscape_name", landscapeId);
if (!homePlanet.isEmpty()) confSettings->setValue("init_location/hom if (!homePlanet.isEmpty()) confSettings->setValue("location_run_once
e_planet", homePlanet); /home_planet", homePlanet);
if (altitude!=-1) confSettings->setValue("init_location/altitude", a if (altitude!=-1) confSettings->setValue("location_run_once/altitude
ltitude); ", altitude);
if (!longitude.isEmpty()) if (!longitude.isEmpty()) confSettings->setValue("location_run_once/
{ longitude", StelUtils::getDecAngle(longitude)); // Store longitude in radia
QRegExp longLatRx("[\\-+]?\\d+d\\d+\\'\\d+(\\.\\d+)?\""); n
if (longLatRx.exactMatch(longitude)) if (!latitude.isEmpty()) confSettings->setValue("location_run_once/l
confSettings->setValue("init_location/longitude", lo atitude", StelUtils::getDecAngle(latitude)); // Store latitude in radian
ngitude);
else
qWarning() << "WARNING: --longitude argument has unr
ecognised format";
}
if (!latitude.isEmpty())
{
QRegExp longLatRx("[\\-+]?\\d+d\\d+\\'\\d+(\\.\\d+)?\"");
if (longLatRx.exactMatch(latitude))
confSettings->setValue("init_location/latitude", lat
itude);
else
qWarning() << "WARNING: --latitude argument has unre
cognised format";
}
if (!skyDate.isEmpty() || !skyTime.isEmpty()) if (!skyDate.isEmpty() || !skyTime.isEmpty())
{ {
// Get the Julian date for the start of the current day // Get the Julian date for the start of the current day
// and the extra necessary for the time of day as separate // and the extra necessary for the time of day as separate
// components. Then if the --sky-date and/or --sky-time fla gs // components. Then if the --sky-date and/or --sky-time fla gs
// are set we over-ride the component, and finally add them to // are set we over-ride the component, and finally add them to
// get the full julian date and set that. // get the full julian date and set that.
// First, lets determine the Julian day number and the part for the time of day // First, lets determine the Julian day number and the part for the time of day
 End of changes. 1 change blocks. 
26 lines changed or deleted 11 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/