DateTimeDialog.cpp   DateTimeDialog.cpp 
skipping to change at line 105 skipping to change at line 105
{ {
if (dialog) if (dialog)
ui->retranslateUi(dialog); ui->retranslateUi(dialog);
} }
void DateTimeDialog::styleChanged() void DateTimeDialog::styleChanged()
{ {
// Nothing for now // Nothing for now
} }
void DateTimeDialog::close()
{
ui->dateTimeBox->setFocus();
StelDialog::close();
}
/************************************************************************ /************************************************************************
year slider or dial changed year slider or dial changed
************************************************************************/ ************************************************************************/
void DateTimeDialog::yearChanged(int newyear) void DateTimeDialog::yearChanged(int newyear)
{ {
if ( year != newyear ) { if ( year != newyear ) {
valid( newyear, month, day, hour, minute, second ); valid( newyear, month, day, hour, minute, second );
} }
} }
skipping to change at line 160 skipping to change at line 166
jd -= (StelApp::getInstance().getLocaleMgr().getGMTShift(jd)/24.0); // lo cal tz -> UTC jd -= (StelApp::getInstance().getLocaleMgr().getGMTShift(jd)/24.0); // lo cal tz -> UTC
return jd; return jd;
} }
void DateTimeDialog::pushToWidgets() void DateTimeDialog::pushToWidgets()
{ {
ui->spinner_year->setValue(year); ui->spinner_year->setValue(year);
ui->spinner_month->setValue(month); ui->spinner_month->setValue(month);
ui->spinner_day->setValue(day); ui->spinner_day->setValue(day);
ui->spinner_hour->setValue(hour); ui->spinner_hour->setValue(hour);
ui->spinner_minute->setValue(minute); if (!ui->spinner_minute->hasFocus() || (ui->spinner_minute->value() == -1
ui->spinner_second->setValue(second); ) || (ui->spinner_minute->value() == 60))
ui->spinner_minute->setValue(minute);
if (!ui->spinner_second->hasFocus() || (ui->spinner_second->value() == -1
) || (ui->spinner_second->value() == 60))
ui->spinner_second->setValue(second);
} }
/************************************************************************ /************************************************************************
Send newJd to spinner_* Send newJd to spinner_*
************************************************************************/ ************************************************************************/
void DateTimeDialog::setDateTime(double newJd) void DateTimeDialog::setDateTime(double newJd)
{ {
newJd += (StelApp::getInstance().getLocaleMgr().getGMTShift(newJd)/2 4.0); // UTC -> local tz newJd += (StelApp::getInstance().getLocaleMgr().getGMTShift(newJd)/2 4.0); // UTC -> local tz
StelUtils::getDateFromJulianDay(newJd, &year, &month, &day); StelUtils::getDateFromJulianDay(newJd, &year, &month, &day);
StelUtils::getTimeFromJulianDay(newJd, &hour, &minute, &second); StelUtils::getTimeFromJulianDay(newJd, &hour, &minute, &second);
 End of changes. 2 change blocks. 
2 lines changed or deleted 12 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/