FOVWindow.cpp   FOVWindow.cpp 
skipping to change at line 46 skipping to change at line 46
FOVWindow::~FOVWindow() FOVWindow::~FOVWindow()
{ {
delete ui; delete ui;
} }
void FOVWindow::retranslate() void FOVWindow::retranslate()
{ {
if (dialog) if (dialog)
{ {
ui->retranslateUi(dialog); ui->retranslateUi(dialog);
updateAboutText(); setAboutHtml();
} }
} }
void FOVWindow::createDialogContent() void FOVWindow::createDialogContent()
{ {
fov = GETSTELMODULE(FOV); fov = GETSTELMODULE(FOV);
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 75 skipping to change at line 75
connect(ui->doubleSpinBoxFOV4, SIGNAL(valueChanged(double)), this, S LOT(updateFOV4(double))); connect(ui->doubleSpinBoxFOV4, SIGNAL(valueChanged(double)), this, S LOT(updateFOV4(double)));
connect(ui->doubleSpinBoxFOV5, SIGNAL(valueChanged(double)), this, S LOT(updateFOV5(double))); connect(ui->doubleSpinBoxFOV5, SIGNAL(valueChanged(double)), this, S LOT(updateFOV5(double)));
connect(ui->doubleSpinBoxFOV6, SIGNAL(valueChanged(double)), this, S LOT(updateFOV6(double))); connect(ui->doubleSpinBoxFOV6, SIGNAL(valueChanged(double)), this, S LOT(updateFOV6(double)));
connect(ui->doubleSpinBoxFOV7, SIGNAL(valueChanged(double)), this, S LOT(updateFOV7(double))); connect(ui->doubleSpinBoxFOV7, SIGNAL(valueChanged(double)), this, S LOT(updateFOV7(double)));
connect(ui->doubleSpinBoxFOV8, SIGNAL(valueChanged(double)), this, S LOT(updateFOV8(double))); connect(ui->doubleSpinBoxFOV8, SIGNAL(valueChanged(double)), this, S LOT(updateFOV8(double)));
connect(ui->doubleSpinBoxFOV9, SIGNAL(valueChanged(double)), this, S LOT(updateFOV9(double))); connect(ui->doubleSpinBoxFOV9, SIGNAL(valueChanged(double)), this, S LOT(updateFOV9(double)));
connect(ui->pushButtonSave, SIGNAL(clicked()), this, SLOT(saveFOVSet tings())); connect(ui->pushButtonSave, SIGNAL(clicked()), this, SLOT(saveFOVSet tings()));
connect(ui->pushButtonReset, SIGNAL(clicked()), this, SLOT(resetFOVS ettings())); connect(ui->pushButtonReset, SIGNAL(clicked()), this, SLOT(resetFOVS ettings()));
updateAboutText(); setAboutHtml();
} }
void FOVWindow::updateAboutText() void FOVWindow::setAboutHtml()
{ {
ui->labelTitle->setText(q_("Field of View plug-in")); QString html = "<html><head></head><body>";
QString version = QString(q_("Version %1")).arg(FOV_VERSION); html += "<h2>" + q_("Field of View plug-in") + "</h2><table width=\"
ui->labelVersion->setText(version); 90%\">";
html += "<tr width=\"30%\"><td><strong>" + q_("Version") + ":</stron
g></td><td>" + FOV_PLUGIN_VERSION + "</td></tr>";
html += "<tr><td><strong>" + q_("License") + ":</strong></td><td>" +
FOV_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 allows stepwise zooming via keyboard
shortcuts like in the <em>Cartes du Ciel</em> planetarium program.") + "</
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("Field of
View 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/Field_of_View_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 FOVWindow::saveFOVSettings() void FOVWindow::saveFOVSettings()
{ {
fov->saveSettingsToConfig(); fov->saveSettingsToConfig();
} }
void FOVWindow::resetFOVSettings() void FOVWindow::resetFOVSettings()
{ {
fov->restoreDefaults(); fov->restoreDefaults();
 End of changes. 4 change blocks. 
6 lines changed or deleted 56 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/