MinorPlanet.cpp   MinorPlanet.cpp 
skipping to change at line 135 skipping to change at line 135
nameI18 = englishName; nameI18 = englishName;
flagLabels = true; flagLabels = true;
} }
MinorPlanet::~MinorPlanet() MinorPlanet::~MinorPlanet()
{ {
//Do nothing for the moment //Do nothing for the moment
} }
void MinorPlanet::setSemiMajorAxis(double value)
{
semiMajorAxis = value;
}
void MinorPlanet::setMinorPlanetNumber(int number) void MinorPlanet::setMinorPlanetNumber(int number)
{ {
if (minorPlanetNumber) if (minorPlanetNumber)
return; return;
minorPlanetNumber = number; minorPlanetNumber = number;
} }
void MinorPlanet::setAbsoluteMagnitudeAndSlope(double magnitude, double slo pe) void MinorPlanet::setAbsoluteMagnitudeAndSlope(double magnitude, double slo pe)
{ {
skipping to change at line 238 skipping to change at line 243
} }
else else
{ {
// xgettext:no-c-format // xgettext:no-c-format
oss << q_("Distance: %1AU").arg(distanceAu, 0, 'f', 8); oss << q_("Distance: %1AU").arg(distanceAu, 0, 'f', 8);
} }
oss << "<br>"; oss << "<br>";
} }
if (flags&Size) if (flags&Size)
oss << q_("Apparent diameter: %1").arg(StelUtils::radToDmsSt oss << q_("Apparent diameter: %1").arg(StelUtils::radToDmsSt
r(2.*getAngularSize(core)*M_PI/180., true)); r(2.*getAngularSize(core)*M_PI/180., true)) << "<br>";
// If semi-major axis not zero then calculate and display orbital pe
riod for asteroid in days
if ((flags&Extra1) && (semiMajorAxis>0))
oss << q_("Orbital period: %1 days").arg(QString::number(Ste
lUtils::calculateOrbitalPeriod(semiMajorAxis), 'f', 0)) << "<br>";
//This doesn't work, even if setOpenExternalLinks(true) is used in I nfoPanel //This doesn't work, even if setOpenExternalLinks(true) is used in I nfoPanel
/* /*
if (flags&Extra1) if (flags&Extra1)
oss << QString("<br><a href=\"http://ssd.jpl.nasa.gov/sbdb.c gi?sstr=%1\">JPL Small-Body Database Browser</a>").arg( (minorPlanetNumber) ? QString::number(minorPlanetNumber) : englishName ); oss << QString("<br><a href=\"http://ssd.jpl.nasa.gov/sbdb.c gi?sstr=%1\">JPL Small-Body Database Browser</a>").arg( (minorPlanetNumber) ? QString::number(minorPlanetNumber) : englishName );
*/ */
postProcessInfoString(str, flags); postProcessInfoString(str, flags);
return str; return str;
 End of changes. 2 change blocks. 
2 lines changed or deleted 13 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/