EquationOfTimeWindow.cpp   EquationOfTimeWindow.cpp 
skipping to change at line 46 skipping to change at line 46
EquationOfTimeWindow::~EquationOfTimeWindow() EquationOfTimeWindow::~EquationOfTimeWindow()
{ {
delete ui; delete ui;
} }
void EquationOfTimeWindow::retranslate() void EquationOfTimeWindow::retranslate()
{ {
if (dialog) if (dialog)
{ {
ui->retranslateUi(dialog); ui->retranslateUi(dialog);
updateAboutText(); setAboutHtml();
} }
} }
void EquationOfTimeWindow::createDialogContent() void EquationOfTimeWindow::createDialogContent()
{ {
eq = GETSTELMODULE(EquationOfTime); eq = GETSTELMODULE(EquationOfTime);
ui->setupUi(dialog); ui->setupUi(dialog);
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 77 skipping to change at line 77
ui->spinBoxFontSize->setValue(eq->getFontSize()); ui->spinBoxFontSize->setValue(eq->getFontSize());
connect(ui->spinBoxFontSize, SIGNAL(valueChanged(int)), eq, SLOT(set FontSize(int))); connect(ui->spinBoxFontSize, SIGNAL(valueChanged(int)), eq, SLOT(set FontSize(int)));
ui->checkBoxShowButton->setChecked(eq->getFlagShowEOTButton()); ui->checkBoxShowButton->setChecked(eq->getFlagShowEOTButton());
connect(ui->checkBoxShowButton, SIGNAL(clicked(bool)), eq, SLOT(setF lagShowEOTButton(bool))); connect(ui->checkBoxShowButton, SIGNAL(clicked(bool)), eq, SLOT(setF lagShowEOTButton(bool)));
connect(ui->pushButtonSave, SIGNAL(clicked()), this, SLOT(saveEquati onOfTimeSettings())); connect(ui->pushButtonSave, SIGNAL(clicked()), this, SLOT(saveEquati onOfTimeSettings()));
connect(ui->pushButtonReset, SIGNAL(clicked()), this, SLOT(resetEqua tionOfTimeSettings())); connect(ui->pushButtonReset, SIGNAL(clicked()), this, SLOT(resetEqua tionOfTimeSettings()));
updateAboutText(); setAboutHtml();
} }
void EquationOfTimeWindow::updateAboutText() void EquationOfTimeWindow::setAboutHtml()
{ {
ui->labelTitle->setText(q_("Equation of Time plug-in")); QString html = "<html><head></head><body>";
QString version = QString(q_("Version %1")).arg(EQUATIONOFTIME_PLUGI html += "<h2>" + q_("Equation of Time plug-in") + "</h2><table width
N_VERSION); =\"90%\">";
ui->labelVersion->setText(version); html += "<tr width=\"30%\"><td><strong>" + q_("Version") + ":</stron
g></td><td>" + EQUATIONOFTIME_PLUGIN_VERSION + "</td></tr>";
html += "<tr><td><strong>" + q_("License") + ":</strong></td><td>" +
EQUATIONOFTIME_PLUGIN_LICENSE + "</td></tr>";
html += "<tr><td><strong>" + q_("Author") + ":</strong></td><td>Alex
ander Wolf &lt;alex.v.wolf@gmail.com&gt;</td></tr>";
html += "</table>";
html += "<p>" + q_("This plugin shows the solution of the equation o
f time.") + "</p>";
html += "<h3>" + q_("Links") + "</h3>";
html += "<p>" + QString(q_("Support is provided via the Launchpad we
bsite. Be sure to put \"%1\" in the subject when posting.")).arg("Equation
of Time plugin") + "</p>";
html += "<p><ul>";
// TRANSLATORS: The numbers contain the opening and closing tag of a
n HTML link
html += "<li>" + QString(q_("If you have a question, you can %1get a
n answer here%2").arg("<a href=\"https://answers.launchpad.net/stellarium\"
>")).arg("</a>") + "</li>";
// TRANSLATORS: The numbers contain the opening and closing tag of a
n HTML link
html += "<li>" + QString(q_("Bug reports can be made %1here%2.")).ar
g("<a href=\"https://bugs.launchpad.net/stellarium\">").arg("</a>") + "</li
>";
// TRANSLATORS: The numbers contain the opening and closing tag of a
n HTML link
html += "<li>" + q_("If you would like to make a feature request, yo
u can create a bug report, and set the severity to \"wishlist\".") + "</li>
";
// TRANSLATORS: The numbers contain the opening and closing tag of a
n HTML link
html += "<li>" + q_("If you want to read full information about this
plugin, its history and format of catalog, you can %1get info here%2.").ar
g("<a href=\"http://stellarium.org/wiki/index.php/Equation_of_Time_plugin\"
>").arg("</a>") + "</li>";
html += "</ul></p></body></html>";
StelGui* gui = dynamic_cast<StelGui*>(StelApp::getInstance().getGui(
));
if(gui!=Q_NULLPTR)
{
QString htmlStyleSheet(gui->getStelStyle().htmlStyleSheet);
ui->aboutTextBrowser->document()->setDefaultStyleSheet(htmlS
tyleSheet);
}
ui->aboutTextBrowser->setHtml(html);
} }
void EquationOfTimeWindow::saveEquationOfTimeSettings() void EquationOfTimeWindow::saveEquationOfTimeSettings()
{ {
eq->saveSettingsToConfig(); eq->saveSettingsToConfig();
} }
void EquationOfTimeWindow::resetEquationOfTimeSettings() void EquationOfTimeWindow::resetEquationOfTimeSettings()
{ {
eq->restoreDefaults(); eq->restoreDefaults();
 End of changes. 4 change blocks. 
7 lines changed or deleted 55 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/