CustomDeltaTEquationDialog.cpp   CustomDeltaTEquationDialog.cpp 
skipping to change at line 27 skipping to change at line 27
*/ */
#include "CustomDeltaTEquationDialog.hpp" #include "CustomDeltaTEquationDialog.hpp"
#include "ui_customDeltaTEquationDialog.h" #include "ui_customDeltaTEquationDialog.h"
#include "Dialog.hpp" #include "Dialog.hpp"
#include "StelApp.hpp" #include "StelApp.hpp"
#include "StelTranslator.hpp" #include "StelTranslator.hpp"
#include "StelObjectMgr.hpp" #include "StelObjectMgr.hpp"
#include <QDebug> CustomDeltaTEquationDialog::CustomDeltaTEquationDialog() : StelDialog("Cust
omDeltaTEquation")
CustomDeltaTEquationDialog::CustomDeltaTEquationDialog()
{ {
dialogName = "CustomDeltaTEquation";
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->getDeltaTCustomNDot(); ndot = core->getDeltaTCustomNDot();
year = core->getDeltaTCustomYear(); year = core->getDeltaTCustomYear();
coeff = core->getDeltaTCustomEquationCoefficients(); coeff = core->getDeltaTCustomEquationCoefficients();
} }
CustomDeltaTEquationDialog::~CustomDeltaTEquationDialog() CustomDeltaTEquationDialog::~CustomDeltaTEquationDialog()
skipping to change at line 61 skipping to change at line 58
ui->retranslateUi(dialog); ui->retranslateUi(dialog);
setDescription(); setDescription();
} }
} }
void CustomDeltaTEquationDialog::createDialogContent() void CustomDeltaTEquationDialog::createDialogContent()
{ {
ui->setupUi(dialog); ui->setupUi(dialog);
setDescription(); setDescription();
ui->labelNDot->setText(QString("%1:").arg(QChar(0x1E45))); ui->labelNDot->setText(QString("n%1:").arg(QChar(0x2032)));
ui->lineEditCoefficientA->setText(QString("%1").arg(coeff[0])); ui->lineEditCoefficientA->setText(QString("%1").arg(coeff[0]));
ui->lineEditCoefficientB->setText(QString("%1").arg(coeff[1])); ui->lineEditCoefficientB->setText(QString("%1").arg(coeff[1]));
ui->lineEditCoefficientC->setText(QString("%1").arg(coeff[2])); ui->lineEditCoefficientC->setText(QString("%1").arg(coeff[2]));
ui->lineEditYear->setText(QString("%1").arg(year)); ui->lineEditYear->setText(QString("%1").arg(year));
ui->lineEditNDot->setText(QString("%1").arg(ndot)); ui->lineEditNDot->setText(QString("%1").arg(ndot));
//Signals and slots //Signals and slots
connect(&StelApp::getInstance(), SIGNAL(languageChanged()), this, SL OT(retranslate())); connect(&StelApp::getInstance(), SIGNAL(languageChanged()), this, SL OT(retranslate()));
connect(ui->closeStelWindow, SIGNAL(clicked()), this, SLOT(close())) ; connect(ui->closeStelWindow, SIGNAL(clicked()), this, SLOT(close())) ;
skipping to change at line 139 skipping to change at line 136
core->setDeltaTCustomEquationCoefficients(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")));
QString tooltip = q_("Secular acceleration of the Moon");
ui->labelNDot->setToolTip(tooltip);
ui->lineEditNDot->setToolTip(tooltip);
} }
 End of changes. 4 change blocks. 
5 lines changed or deleted 6 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/