AstroCalcDialog.cpp   AstroCalcDialog.cpp 
skipping to change at line 161 skipping to change at line 161
foreach (const PlanetP& planet, allPlanets) foreach (const PlanetP& planet, allPlanets)
{ {
if (planet->getPlanetType()!=Planet::isUNDEFINED && planet-> getEnglishName()!="Sun" && planet->getEnglishName()!=core->getCurrentPlanet ()->getEnglishName()) if (planet->getPlanetType()!=Planet::isUNDEFINED && planet-> getEnglishName()!="Sun" && planet->getEnglishName()!=core->getCurrentPlanet ()->getEnglishName())
{ {
StelUtils::rectToSphe(&ra,&dec,planet->getJ2000Equat orialPos(core)); StelUtils::rectToSphe(&ra,&dec,planet->getJ2000Equat orialPos(core));
ACTreeWidgetItem *treeItem = new ACTreeWidgetItem(ui ->planetaryPositionsTreeWidget); ACTreeWidgetItem *treeItem = new ACTreeWidgetItem(ui ->planetaryPositionsTreeWidget);
treeItem->setText(ColumnName, planet->getNameI18n()) ; treeItem->setText(ColumnName, planet->getNameI18n()) ;
treeItem->setText(ColumnRA, StelUtils::radToHmsStr(r a)); treeItem->setText(ColumnRA, StelUtils::radToHmsStr(r a));
treeItem->setTextAlignment(ColumnRA, Qt::AlignRight) ; treeItem->setTextAlignment(ColumnRA, Qt::AlignRight) ;
treeItem->setText(ColumnDec, StelUtils::radToHmsStr( dec)); treeItem->setText(ColumnDec, StelUtils::radToDmsStr( dec, true));
treeItem->setTextAlignment(ColumnDec, Qt::AlignRight ); treeItem->setTextAlignment(ColumnDec, Qt::AlignRight );
treeItem->setText(ColumnMagnitude, QString::number(p lanet->getVMagnitudeWithExtinction(core), 'f', 2)); treeItem->setText(ColumnMagnitude, QString::number(p lanet->getVMagnitudeWithExtinction(core), 'f', 2));
treeItem->setTextAlignment(ColumnMagnitude, Qt::Alig nRight); treeItem->setTextAlignment(ColumnMagnitude, Qt::Alig nRight);
treeItem->setText(ColumnType, q_(planet->getPlanetTy peString())); treeItem->setText(ColumnType, q_(planet->getPlanetTy peString()));
} }
} }
// adjust the column width // adjust the column width
for(int i = 0; i < ColumnCount; ++i) for(int i = 0; i < ColumnCount; ++i)
{ {
skipping to change at line 307 skipping to change at line 307
double JD = firstJD + i*currentStep; double JD = firstJD + i*currentStep;
core->setJD(JD); core->setJD(JD);
core->update(0); // force update to get new coordina tes core->update(0); // force update to get new coordina tes
StelUtils::rectToSphe(&ra,&dec,obj->getJ2000Equatori alPos(core)); StelUtils::rectToSphe(&ra,&dec,obj->getJ2000Equatori alPos(core));
ACTreeWidgetItem *treeItem = new ACTreeWidgetItem(ui ->ephemerisTreeWidget); ACTreeWidgetItem *treeItem = new ACTreeWidgetItem(ui ->ephemerisTreeWidget);
// local date and time // local date and time
treeItem->setText(EphemerisDate, StelUtils::jdToQDat eTime(JD + StelUtils::getGMTShiftFromQT(JD)/24).toString("yyyy-MM-dd hh:mm: ss")); treeItem->setText(EphemerisDate, StelUtils::jdToQDat eTime(JD + StelUtils::getGMTShiftFromQT(JD)/24).toString("yyyy-MM-dd hh:mm: ss"));
treeItem->setText(EphemerisJD, QString::number(JD, ' f', 5)); treeItem->setText(EphemerisJD, QString::number(JD, ' f', 5));
treeItem->setText(EphemerisRA, StelUtils::radToHmsSt r(ra)); treeItem->setText(EphemerisRA, StelUtils::radToHmsSt r(ra));
treeItem->setTextAlignment(EphemerisRA, Qt::AlignRig ht); treeItem->setTextAlignment(EphemerisRA, Qt::AlignRig ht);
treeItem->setText(EphemerisDec, StelUtils::radToHmsS tr(dec)); treeItem->setText(EphemerisDec, StelUtils::radToDmsS tr(dec, true));
treeItem->setTextAlignment(EphemerisDec, Qt::AlignRi ght); treeItem->setTextAlignment(EphemerisDec, Qt::AlignRi ght);
treeItem->setText(EphemerisMagnitude, QString::numbe r(obj->getVMagnitudeWithExtinction(core), 'f', 2)); treeItem->setText(EphemerisMagnitude, QString::numbe r(obj->getVMagnitudeWithExtinction(core), 'f', 2));
treeItem->setTextAlignment(EphemerisMagnitude, Qt::A lignRight); treeItem->setTextAlignment(EphemerisMagnitude, Qt::A lignRight);
} }
core->setJD(currentJD); // restore time core->setJD(currentJD); // restore time
} }
// adjust the column width // adjust the column width
for(int i = 0; i < EphemerisCount; ++i) for(int i = 0; i < EphemerisCount; ++i)
{ {
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 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/