NavStarsWindow.cpp   NavStarsWindow.cpp 
skipping to change at line 32 skipping to change at line 32
#include "ui_navStarsWindow.h" #include "ui_navStarsWindow.h"
#include "StelApp.hpp" #include "StelApp.hpp"
#include "StelLocaleMgr.hpp" #include "StelLocaleMgr.hpp"
#include "StelModule.hpp" #include "StelModule.hpp"
#include "StelModuleMgr.hpp" #include "StelModuleMgr.hpp"
#include "StelGui.hpp" #include "StelGui.hpp"
#include <QComboBox> #include <QComboBox>
NavStarsWindow::NavStarsWindow() : StelDialog("NavStars"), ns(NULL) NavStarsWindow::NavStarsWindow() : StelDialog("NavStars"), ns(Q_NULLPTR)
{ {
ui = new Ui_navStarsWindowForm(); ui = new Ui_navStarsWindowForm();
} }
NavStarsWindow::~NavStarsWindow() NavStarsWindow::~NavStarsWindow()
{ {
delete ui; delete ui;
} }
void NavStarsWindow::retranslate() void NavStarsWindow::retranslate()
skipping to change at line 80 skipping to change at line 80
} }
ui->nsSetComboBox->setCurrentIndex(idx); ui->nsSetComboBox->setCurrentIndex(idx);
connect(ui->nsSetComboBox, SIGNAL(currentIndexChanged(int)), this, S LOT(setNavigationalStarsSet(int))); connect(ui->nsSetComboBox, SIGNAL(currentIndexChanged(int)), this, S LOT(setNavigationalStarsSet(int)));
connect(ui->pushButtonSave, SIGNAL(clicked()), this, SLOT(saveSettin gs())); connect(ui->pushButtonSave, SIGNAL(clicked()), this, SLOT(saveSettin gs()));
connect(ui->pushButtonReset, SIGNAL(clicked()), this, SLOT(resetSett ings())); connect(ui->pushButtonReset, SIGNAL(clicked()), this, SLOT(resetSett ings()));
// About tab // About tab
setAboutHtml(); setAboutHtml();
StelGui* gui = dynamic_cast<StelGui*>(StelApp::getInstance().getGui( )); StelGui* gui = dynamic_cast<StelGui*>(StelApp::getInstance().getGui( ));
if(gui!=NULL) if(gui!=Q_NULLPTR)
ui->aboutTextBrowser->document()->setDefaultStyleSheet(QStri ng(gui->getStelStyle().htmlStyleSheet)); ui->aboutTextBrowser->document()->setDefaultStyleSheet(QStri ng(gui->getStelStyle().htmlStyleSheet));
} }
void NavStarsWindow::setAboutHtml(void) void NavStarsWindow::setAboutHtml(void)
{ {
QString html = "<html><head></head><body>"; QString html = "<html><head></head><body>";
html += "<h2>" + q_("Navigational Stars Plug-in") + "</h2><table wid th=\"90%\">"; html += "<h2>" + q_("Navigational Stars Plug-in") + "</h2><table wid th=\"90%\">";
html += "<tr width=\"30%\"><td><strong>" + q_("Version") + ":</stron g></td><td>" + NAVSTARS_PLUGIN_VERSION + "</td></tr>"; html += "<tr width=\"30%\"><td><strong>" + q_("Version") + ":</stron g></td><td>" + NAVSTARS_PLUGIN_VERSION + "</td></tr>";
html += "<tr><td><strong>" + q_("Author") + ":</strong></td><td>Alex ander Wolf &lt;alex.v.wolf@gmail.com&gt;</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 += "</table>";
skipping to change at line 109 skipping to change at line 109
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>"; 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 // 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 >"; 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 // 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> "; 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 // 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 catalog format, you can %1get info here%2.").arg(" <a href=\"http://stellarium.org/wiki/index.php/Navigational_Stars_plugin\"> ").arg("</a>") + "</li>"; html += "<li>" + q_("If you want to read full information about this plugin, its history and catalog format, you can %1get info here%2.").arg(" <a href=\"http://stellarium.org/wiki/index.php/Navigational_Stars_plugin\"> ").arg("</a>") + "</li>";
html += "</ul></p></body></html>"; html += "</ul></p></body></html>";
StelGui* gui = dynamic_cast<StelGui*>(StelApp::getInstance().getGui( )); StelGui* gui = dynamic_cast<StelGui*>(StelApp::getInstance().getGui( ));
if(gui!=NULL) if(gui!=Q_NULLPTR)
{ {
QString htmlStyleSheet(gui->getStelStyle().htmlStyleSheet); QString htmlStyleSheet(gui->getStelStyle().htmlStyleSheet);
ui->aboutTextBrowser->document()->setDefaultStyleSheet(htmlS tyleSheet); ui->aboutTextBrowser->document()->setDefaultStyleSheet(htmlS tyleSheet);
} }
ui->aboutTextBrowser->setHtml(html); ui->aboutTextBrowser->setHtml(html);
} }
void NavStarsWindow::saveSettings() void NavStarsWindow::saveSettings()
{ {
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 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/