PointerCoordinatesWindow.cpp   PointerCoordinatesWindow.cpp 
skipping to change at line 94 skipping to change at line 94
{ {
// Use RaDecJ2000 as default // Use RaDecJ2000 as default
idx = ui->coordinateSystemComboBox->findData(QVariant("RaDec J2000"), Qt::UserRole, Qt::MatchCaseSensitive); idx = ui->coordinateSystemComboBox->findData(QVariant("RaDec J2000"), Qt::UserRole, Qt::MatchCaseSensitive);
} }
ui->coordinateSystemComboBox->setCurrentIndex(idx); ui->coordinateSystemComboBox->setCurrentIndex(idx);
connect(ui->coordinateSystemComboBox, SIGNAL(currentIndexChanged(int )), this, SLOT(setCoordinateSystem(int))); connect(ui->coordinateSystemComboBox, SIGNAL(currentIndexChanged(int )), this, SLOT(setCoordinateSystem(int)));
ui->checkBoxConstellation->setChecked(coord->getFlagShowConstellatio n()); ui->checkBoxConstellation->setChecked(coord->getFlagShowConstellatio n());
connect(ui->checkBoxConstellation, SIGNAL(toggled(bool)), coord, SLO T(setFlagShowConstellation(bool))); connect(ui->checkBoxConstellation, SIGNAL(toggled(bool)), coord, SLO T(setFlagShowConstellation(bool)));
ui->checkBoxCrossedLines->setChecked(coord->getFlagShowCrossedLines(
));
connect(ui->checkBoxCrossedLines, SIGNAL(toggled(bool)), coord, SLOT
(setFlagShowCrossedLines(bool)));
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!=Q_NULLPTR) if(gui!=Q_NULLPTR)
skipping to change at line 122 skipping to change at line 125
QPair<int, int> cc = coord->getCustomCoordinatesPlace(); QPair<int, int> cc = coord->getCustomCoordinatesPlace();
ui->spinBoxX->setValue(cc.first); ui->spinBoxX->setValue(cc.first);
ui->spinBoxY->setValue(cc.second); ui->spinBoxY->setValue(cc.second);
} }
void PointerCoordinatesWindow::setAboutHtml(void) void PointerCoordinatesWindow::setAboutHtml(void)
{ {
QString html = "<html><head></head><body>"; QString html = "<html><head></head><body>";
html += "<h2>" + q_("Pointer Coordinates plug-in") + "</h2><table wi dth=\"90%\">"; html += "<h2>" + q_("Pointer Coordinates plug-in") + "</h2><table wi dth=\"90%\">";
html += "<tr width=\"30%\"><td><strong>" + q_("Version") + ":</stron g></td><td>" + POINTERCOORDINATES_PLUGIN_VERSION + "</td></tr>"; html += "<tr width=\"30%\"><td><strong>" + q_("Version") + ":</stron g></td><td>" + POINTERCOORDINATES_PLUGIN_VERSION + "</td></tr>";
html += "<tr><td><strong>" + q_("License") + ":</strong></td><td>" + POINTERCOORDINATES_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 += "<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_("Contributors") + ":</strong></td><t d>Georg Zotti</td></tr>";
html += "</table>"; html += "</table>";
html += "<p>" + q_("Show coordinates of the mouse cursor on the scre en."); html += "<p>" + q_("Show coordinates of the mouse cursor on the scre en.");
html += "<p>"; html += "<p>";
html += "<h3>" + q_("Links") + "</h3>"; 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("Pointer Coordinates plugin") + "</p>"; html += "<p>" + QString(q_("Support is provided via the Launchpad we bsite. Be sure to put \"%1\" in the subject when posting.")).arg("Pointer Coordinates plugin") + "</p>";
html += "<p><ul>"; html += "<p><ul>";
// 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_("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>";
skipping to change at line 178 skipping to change at line 183
//Save the current selection to be restored later //Save the current selection to be restored later
places->blockSignals(true); places->blockSignals(true);
int index = places->currentIndex(); int index = places->currentIndex();
QVariant selectedPlaceId = places->itemData(index); QVariant selectedPlaceId = places->itemData(index);
places->clear(); places->clear();
//For each algorithm, display the localized name and store the key a s user //For each algorithm, display the localized name and store the key a s user
//data. Unfortunately, there's no other way to do this than with a c ycle. //data. Unfortunately, there's no other way to do this than with a c ycle.
places->addItem(q_("The top center of the screen"), "TopCenter"); places->addItem(q_("The top center of the screen"), "TopCenter");
places->addItem(q_("In center of the top right half of the screen"), "TopRight"); places->addItem(q_("In center of the top right half of the screen"), "TopRight");
places->addItem(q_("The right bottom corner of the screen"), "RightB ottomCorner"); places->addItem(q_("The right bottom corner of the screen"), "RightB ottomCorner");
places->addItem(q_("Near mouse cursor"), "NearMouseCursor");
places->addItem(q_("Custom position"), "Custom"); places->addItem(q_("Custom position"), "Custom");
//Restore the selection //Restore the selection
index = places->findData(selectedPlaceId, Qt::UserRole, Qt::MatchCas eSensitive); index = places->findData(selectedPlaceId, Qt::UserRole, Qt::MatchCas eSensitive);
places->setCurrentIndex(index); places->setCurrentIndex(index);
places->blockSignals(false); places->blockSignals(false);
} }
void PointerCoordinatesWindow::populateCoordinateSystemsList() void PointerCoordinatesWindow::populateCoordinateSystemsList()
{ {
 End of changes. 4 change blocks. 
0 lines changed or deleted 8 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/