Nova.cpp   Nova.cpp 
skipping to change at line 83 skipping to change at line 83
distance = map.value("distance").toDouble(); distance = map.value("distance").toDouble();
initialized = true; initialized = true;
} }
Nova::~Nova() Nova::~Nova()
{ {
// //
} }
QVariantMap Nova::getMap(void) QVariantMap Nova::getMap(void) const
{ {
QVariantMap map; QVariantMap map;
map["designation"] = designation; map["designation"] = designation;
map["name"] = novaName; map["name"] = novaName;
map["type"] = novaType; map["type"] = novaType;
map["maxMagnitude"] = maxMagnitude; map["maxMagnitude"] = maxMagnitude;
map["minMagnitude"] = minMagnitude; map["minMagnitude"] = minMagnitude;
map["peakJD"] = peakJD; map["peakJD"] = peakJD;
map["m2"] = m2; map["m2"] = m2;
map["m3"] = m3; map["m3"] = m3;
skipping to change at line 164 skipping to change at line 164
{ {
//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 Nova::getInfoMap(const StelCore *core) const
{
QVariantMap map = StelObject::getInfoMap(core);
map["designation"] = designation;
map["name"] = novaName;
map["nova-type"] = novaType;
map["max-magnitude"] = maxMagnitude;
map["min-magnitude"] = minMagnitude;
map["peakJD"] = peakJD;
map["m2"] = m2;
map["m3"] = m3;
map["m6"] = m6;
map["m9"] = m9;
map["distance"] = distance;
return map;
}
Vec3f Nova::getInfoColor(void) const Vec3f Nova::getInfoColor(void) const
{ {
return Vec3f(1.0, 1.0, 1.0); return Vec3f(1.0, 1.0, 1.0);
} }
float Nova::getVMagnitude(const StelCore* core) const float Nova::getVMagnitude(const StelCore* core) const
{ {
// OK, start from minimal brightness // OK, start from minimal brightness
double vmag = minMagnitude; double vmag = minMagnitude;
double currentJD = core->getJDE(); double currentJD = core->getJDE();
 End of changes. 2 change blocks. 
1 lines changed or deleted 20 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/