OcularDialog.cpp   OcularDialog.cpp 
skipping to change at line 144 skipping to change at line 144
void OcularDialog::deleteSelectedCCD() void OcularDialog::deleteSelectedCCD()
{ {
ccdTableModel->removeRows(ui->ccdListView->currentIndex().row(), 1); ccdTableModel->removeRows(ui->ccdListView->currentIndex().row(), 1);
ui->ccdListView->setCurrentIndex(ccdTableModel->index(0, 1)); ui->ccdListView->setCurrentIndex(ccdTableModel->index(0, 1));
plugin->updateLists(); plugin->updateLists();
} }
void OcularDialog::deleteSelectedOcular() void OcularDialog::deleteSelectedOcular()
{ {
if (ocularTableModel->rowCount() == 1) { if (ocularTableModel->rowCount() == 1) {
qDebug() << "Can not delete the last entry."; qDebug() << "Cannot delete the last entry.";
} else { } else {
ocularTableModel->removeRows(ui->ocularListView->currentInde x().row(), 1); ocularTableModel->removeRows(ui->ocularListView->currentInde x().row(), 1);
ui->ocularListView->setCurrentIndex(ocularTableModel->index( 0, 1)); ui->ocularListView->setCurrentIndex(ocularTableModel->index( 0, 1));
plugin->updateLists(); plugin->updateLists();
} }
} }
void OcularDialog::deleteSelectedTelescope() void OcularDialog::deleteSelectedTelescope()
{ {
if (telescopeTableModel->rowCount() == 1) { if (telescopeTableModel->rowCount() == 1) {
qDebug() << "Can not delete the last entry."; qDebug() << "Cannot delete the last entry.";
} else { } else {
telescopeTableModel->removeRows(ui->telescopeListView->curre ntIndex().row(), 1); telescopeTableModel->removeRows(ui->telescopeListView->curre ntIndex().row(), 1);
ui->telescopeListView->setCurrentIndex(telescopeTableModel-> index(0, 1)); ui->telescopeListView->setCurrentIndex(telescopeTableModel-> index(0, 1));
plugin->updateLists(); plugin->updateLists();
} }
} }
void OcularDialog::deleteSelectedLens() void OcularDialog::deleteSelectedLens()
{ {
if (lensTableModel->rowCount() > 0) { if (lensTableModel->rowCount() > 0) {
skipping to change at line 494 skipping to change at line 494
updateStyle(); updateStyle();
} }
void OcularDialog::initAboutText() void OcularDialog::initAboutText()
{ {
//BM: Most of the text for now is the original contents of the About widget. //BM: Most of the text for now is the original contents of the About widget.
QString html = "<html><head><title></title></head><body>"; QString html = "<html><head><title></title></head><body>";
html += "<h2>" + q_("Oculars Plug-in") + "</h2><table width=\"90%\"> "; html += "<h2>" + q_("Oculars Plug-in") + "</h2><table width=\"90%\"> ";
html += "<tr width=\"30%\"><td><strong>" + q_("Version") + ":</stron g></td><td>" + OCULARS_PLUGIN_VERSION + "</td></tr>"; html += "<tr width=\"30%\"><td><strong>" + q_("Version") + ":</stron g></td><td>" + OCULARS_PLUGIN_VERSION + "</td></tr>";
html += "<tr><td><strong>" + q_("Authors") + ":</strong></td><td>Tim othy Reaves &lt;treaves@silverfieldstech.com&gt;<br />Bogdan Marinov</td></ tr>"; html += "<tr><td><strong>" + q_("Authors") + ":</strong></td><td>Tim othy Reaves &lt;treaves@silverfieldstech.com&gt;<br />Bogdan Marinov<br />P awel Stolowski (" + q_("Barlow lens feature") + ")</td></tr>";
html += "</table>"; html += "</table>";
//Overview //Overview
html += "<h2>" + q_("Overview") + "</h2>"; html += "<h2>" + q_("Overview") + "</h2>";
html += "<p>" + q_("This plugin is intended to simulate what you wou ld see through an eyepiece. This configuration dialog can be used to add, modify, or delete eyepieces and telescopes, as well as CCD Sensors. Your f irst time running the app will populate some samples to get your started.") + "</p>"; html += "<p>" + q_("This plugin is intended to simulate what you wou ld see through an eyepiece. This configuration dialog can be used to add, modify, or delete eyepieces and telescopes, as well as CCD Sensors. Your f irst time running the app will populate some samples to get your started.") + "</p>";
html += "<p>" + q_("You can choose to scale the image you see on the screen. This is intended to show you a better comparison of what one eyep iece/telescope combination will be like as compared to another. The same e yepiece in two different telescopes of differing focal length will produce two different exit circles, changing the view someone. The trade-off of th is is that, with the image scaled, a good deal of the screen can be wasted. Therefore I recommend that you leave it off, unless you feel you have a n eed of it.") + "</p>"; html += "<p>" + q_("You can choose to scale the image you see on the screen. This is intended to show you a better comparison of what one eyep iece/telescope combination will be like as compared to another. The same e yepiece in two different telescopes of differing focal length will produce two different exit circles, changing the view someone. The trade-off of th is is that, with the image scaled, a good deal of the screen can be wasted. Therefore I recommend that you leave it off, unless you feel you have a n eed of it.") + "</p>";
html += "<p>" + q_("You can toggle a crosshair in the view. Ideally , I wanted this to be aligned to North. I've been unable to do so. So cur rently it aligns to the top of the screen.") + "</p>"; html += "<p>" + q_("You can toggle a crosshair in the view. Ideally , I wanted this to be aligned to North. I've been unable to do so. So cur rently it aligns to the top of the screen.") + "</p>";
html += "<p>" + QString(q_("You can toggle a Telrad finder; this can only be done when you have not turned on the Ocular view. This feature dr aws three concentric circles of 0.5%1, 2.0%1, and 4.0%1, helping you see wh at you would expect to see with the naked eye through the Telrad (or simila r) finder.")).arg(QChar(0x00B0)) + "</p>"; html += "<p>" + QString(q_("You can toggle a Telrad finder; this can only be done when you have not turned on the Ocular view. This feature dr aws three concentric circles of 0.5%1, 2.0%1, and 4.0%1, helping you see wh at you would expect to see with the naked eye through the Telrad (or simila r) finder.")).arg(QChar(0x00B0)) + "</p>";
html += "<p>" + q_("If you find any issues, please let me know. Enj oy!") + "</p>"; html += "<p>" + q_("If you find any issues, please let me know. Enj oy!") + "</p>";
 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/