CustomDeltaTEquationDialog.cpp   CustomDeltaTEquationDialog.cpp 
skipping to change at line 35 skipping to change at line 35
#include "StelObjectMgr.hpp" #include "StelObjectMgr.hpp"
#include <QDebug> #include <QDebug>
CustomDeltaTEquationDialog::CustomDeltaTEquationDialog() CustomDeltaTEquationDialog::CustomDeltaTEquationDialog()
{ {
ui = new Ui_CustomDeltaTEquationDialogForm; ui = new Ui_CustomDeltaTEquationDialogForm;
conf = StelApp::getInstance().getSettings(); conf = StelApp::getInstance().getSettings();
core = StelApp::getInstance().getCore(); core = StelApp::getInstance().getCore();
ndot = core->getCustomNDot(); ndot = core->getDeltaTCustomNDot();
year = core->getCustomYear(); year = core->getDeltaTCustomYear();
coeff = core->getCustomEquationCoefficients(); coeff = core->getDeltaTCustomEquationCoefficients();
} }
CustomDeltaTEquationDialog::~CustomDeltaTEquationDialog() CustomDeltaTEquationDialog::~CustomDeltaTEquationDialog()
{ {
delete ui; delete ui;
ui=NULL; ui=NULL;
} }
void CustomDeltaTEquationDialog::retranslate() void CustomDeltaTEquationDialog::retranslate()
{ {
skipping to change at line 99 skipping to change at line 99
conf->setValue("year", year); conf->setValue("year", year);
conf->setValue("ndot", ndot); conf->setValue("ndot", ndot);
conf->setValue("coefficients", QString("%1,%2,%3").arg(coeff[0]).arg (coeff[1]).arg(coeff[2])); conf->setValue("coefficients", QString("%1,%2,%3").arg(coeff[0]).arg (coeff[1]).arg(coeff[2]));
conf->endGroup(); conf->endGroup();
} }
void CustomDeltaTEquationDialog::setNDot(const QString& v) void CustomDeltaTEquationDialog::setNDot(const QString& v)
{ {
ndot = v.toFloat(); ndot = v.toFloat();
core->setCustomNDot(ndot); core->setDeltaTCustomNDot(ndot);
saveSettings(); saveSettings();
} }
void CustomDeltaTEquationDialog::setYear(const QString& v) void CustomDeltaTEquationDialog::setYear(const QString& v)
{ {
year = v.toFloat(); year = v.toFloat();
core->setCustomYear(year); core->setDeltaTCustomYear(year);
saveSettings(); saveSettings();
} }
void CustomDeltaTEquationDialog::setCoeffA(const QString& v) void CustomDeltaTEquationDialog::setCoeffA(const QString& v)
{ {
coeff[0] = v.toFloat(); coeff[0] = v.toFloat();
core->setCustomEquationCoefficients(coeff); core->setDeltaTCustomEquationCoefficients(coeff);
saveSettings(); saveSettings();
} }
void CustomDeltaTEquationDialog::setCoeffB(const QString& v) void CustomDeltaTEquationDialog::setCoeffB(const QString& v)
{ {
coeff[1] = v.toFloat(); coeff[1] = v.toFloat();
core->setCustomEquationCoefficients(coeff); core->setDeltaTCustomEquationCoefficients(coeff);
saveSettings(); saveSettings();
} }
void CustomDeltaTEquationDialog::setCoeffC(const QString& v) void CustomDeltaTEquationDialog::setCoeffC(const QString& v)
{ {
coeff[2] = v.toFloat(); coeff[2] = v.toFloat();
core->setCustomEquationCoefficients(coeff); core->setDeltaTCustomEquationCoefficients(coeff);
saveSettings(); saveSettings();
} }
void CustomDeltaTEquationDialog::setDescription() const void CustomDeltaTEquationDialog::setDescription() const
{ {
ui->stelWindowTitle->setText(q_("Custom equation for %1T").arg(QChar (0x0394))); ui->stelWindowTitle->setText(q_("Custom equation for %1T").arg(QChar (0x0394)));
ui->labelDescription->setText(q_("A typical equation for calculation of %1T looks like:").arg(QChar(0x0394))); ui->labelDescription->setText(q_("A typical equation for calculation of %1T looks like:").arg(QChar(0x0394)));
ui->labelEquation->setText(QString("<strong>%1T = a + b%2u + c%3u%4, </strong>").arg(QChar(0x0394)).arg(QChar(0x00B7)).arg(QChar(0x00B7)).arg(QC har(0x00B2))); ui->labelEquation->setText(QString("<strong>%1T = a + b%2u + c%3u%4, </strong>").arg(QChar(0x0394)).arg(QChar(0x00B7)).arg(QChar(0x00B7)).arg(QC har(0x00B2)));
ui->labelSubEquation->setText(QString("%1 <em>u = (%2 - y)/100</em>" ).arg(q_("where")).arg(q_("year"))); ui->labelSubEquation->setText(QString("%1 <em>u = (%2 - y)/100</em>" ).arg(q_("where")).arg(q_("year")));
} }
 End of changes. 6 change blocks. 
8 lines changed or deleted 8 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/