Supernova.cpp   Supernova.cpp 
skipping to change at line 74 skipping to change at line 74
distance = map.value("distance").toDouble(); distance = map.value("distance").toDouble();
initialized = true; initialized = true;
} }
Supernova::~Supernova() Supernova::~Supernova()
{ {
// //
} }
QVariantMap Supernova::getMap(void) QVariantMap Supernova::getMap(void) const
{ {
QVariantMap map; QVariantMap map;
map["designation"] = designation; map["designation"] = designation;
map["sntype"] = sntype; map["sntype"] = sntype;
map["maxMagnitude"] = maxMagnitude; map["maxMagnitude"] = maxMagnitude;
map["peakJD"] = peakJD; map["peakJD"] = peakJD;
map["snra"] = snra; map["snra"] = snra;
map["snde"] = snde; map["snde"] = snde;
map["note"] = note; map["note"] = note;
map["distance"] = distance; map["distance"] = distance;
skipping to change at line 158 skipping to change at line 158
{ {
//TRANSLATORS: Unit of measure for distance - Light Years //TRANSLATORS: Unit of measure for distance - Light Years
oss << q_("Distance: %1 ly").arg(distance*1000) << " <br>"; oss << q_("Distance: %1 ly").arg(distance*1000) << " <br>";
} }
} }
postProcessInfoString(str, flags); postProcessInfoString(str, flags);
return str; return str;
} }
QVariantMap Supernova::getInfoMap(const StelCore *core) const
{
QVariantMap map = StelObject::getInfoMap(core);
map["sntype"] = sntype;
map["max-magnitude"] = maxMagnitude;
map["peakJD"] = peakJD;
map["note"] = note;
map["distance"] = distance;
return map;
}
Vec3f Supernova::getInfoColor(void) const Vec3f Supernova::getInfoColor(void) const
{ {
return Vec3f(1.0, 1.0, 1.0); return Vec3f(1.0, 1.0, 1.0);
} }
float Supernova::getVMagnitude(const StelCore* core) const float Supernova::getVMagnitude(const StelCore* core) const
{ {
double vmag = 20; double vmag = 20;
double currentJD = core->getJDE(); // GZ JDfix for 0.14. I hope the JD in the list is JDE? (Usually difference should be negligible) double currentJD = core->getJDE(); // GZ JDfix for 0.14. I hope the JD in the list is JDE? (Usually difference should be negligible)
double deltaJD = qAbs(peakJD-currentJD); double deltaJD = qAbs(peakJD-currentJD);
 End of changes. 2 change blocks. 
1 lines changed or deleted 14 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/