PointerCoordinatesWindow.cpp   PointerCoordinatesWindow.cpp 
skipping to change at line 32 skipping to change at line 32
#include "ui_pointerCoordinatesWindow.h" #include "ui_pointerCoordinatesWindow.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"
PointerCoordinatesWindow::PointerCoordinatesWindow() PointerCoordinatesWindow::PointerCoordinatesWindow()
: StelDialog("PointerCoordinates") : StelDialog("PointerCoordinates")
, coord(NULL) , coord(Q_NULLPTR)
{ {
ui = new Ui_pointerCoordinatesWindowForm(); ui = new Ui_pointerCoordinatesWindowForm();
} }
PointerCoordinatesWindow::~PointerCoordinatesWindow() PointerCoordinatesWindow::~PointerCoordinatesWindow()
{ {
delete ui; delete ui;
} }
void PointerCoordinatesWindow::retranslate() void PointerCoordinatesWindow::retranslate()
skipping to change at line 103 skipping to change at line 103
connect(ui->spinBoxX, SIGNAL(valueChanged(int)), this, SLOT(setCusto mCoordinatesPlace())); connect(ui->spinBoxX, SIGNAL(valueChanged(int)), this, SLOT(setCusto mCoordinatesPlace()));
connect(ui->spinBoxY, SIGNAL(valueChanged(int)), this, SLOT(setCusto mCoordinatesPlace())); connect(ui->spinBoxY, SIGNAL(valueChanged(int)), this, SLOT(setCusto mCoordinatesPlace()));
connect(ui->pushButtonSave, SIGNAL(clicked()), this, SLOT(saveCoordi natesSettings())); connect(ui->pushButtonSave, SIGNAL(clicked()), this, SLOT(saveCoordi natesSettings()));
connect(ui->pushButtonReset, SIGNAL(clicked()), this, SLOT(resetCoor dinatesSettings())); connect(ui->pushButtonReset, SIGNAL(clicked()), this, SLOT(resetCoor dinatesSettings()));
// 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 PointerCoordinatesWindow::populateValues() void PointerCoordinatesWindow::populateValues()
{ {
ui->checkBoxEnableAtStartup->setChecked(coord->getFlagEnableAtStartu p()); ui->checkBoxEnableAtStartup->setChecked(coord->getFlagEnableAtStartu p());
ui->spinBoxFontSize->setValue(coord->getFontSize()); ui->spinBoxFontSize->setValue(coord->getFontSize());
ui->checkBoxShowButton->setChecked(coord->getFlagShowCoordinatesButt on()); ui->checkBoxShowButton->setChecked(coord->getFlagShowCoordinatesButt on());
QPair<int, int> cc = coord->getCustomCoordinatesPlace(); QPair<int, int> cc = coord->getCustomCoordinatesPlace();
ui->spinBoxX->setValue(cc.first); ui->spinBoxX->setValue(cc.first);
skipping to change at line 142 skipping to change at line 142
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/Pointer_Coordinates_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/Pointer_Coordinates_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 PointerCoordinatesWindow::saveCoordinatesSettings() void PointerCoordinatesWindow::saveCoordinatesSettings()
{ {
 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/