OcularDialog.cpp   OcularDialog.cpp 
skipping to change at line 467 skipping to change at line 467
telescopeMapper->addMapping(ui->telescopeName, 0); telescopeMapper->addMapping(ui->telescopeName, 0);
telescopeMapper->addMapping(ui->telescopeDiameter, 1); telescopeMapper->addMapping(ui->telescopeDiameter, 1);
telescopeMapper->addMapping(ui->telescopeFL, 2); telescopeMapper->addMapping(ui->telescopeFL, 2);
telescopeMapper->addMapping(ui->telescopeHFlip, 3, "checked"); telescopeMapper->addMapping(ui->telescopeHFlip, 3, "checked");
telescopeMapper->addMapping(ui->telescopeVFlip, 4, "checked"); telescopeMapper->addMapping(ui->telescopeVFlip, 4, "checked");
ocularMapper->toFirst(); ocularMapper->toFirst();
connect(ui->telescopeListView->selectionModel() , SIGNAL(currentRowC hanged(QModelIndex, QModelIndex)), connect(ui->telescopeListView->selectionModel() , SIGNAL(currentRowC hanged(QModelIndex, QModelIndex)),
telescopeMapper, SLOT(setCurrentMode lIndex(QModelIndex))); telescopeMapper, SLOT(setCurrentMode lIndex(QModelIndex)));
ui->telescopeListView->setCurrentIndex(telescopeTableModel->index(0, 1)); ui->telescopeListView->setCurrentIndex(telescopeTableModel->index(0, 1));
connect(ui->binocularsCheckBox, SIGNAL(toggled(bool)), this, SLOT(se
tLabelsDescriptionText(bool)));
// set the initial state // set the initial state
QSettings *settings = Oculars::appSettings(); QSettings *settings = Oculars::appSettings();
if (settings->value("require_selection_to_zoom", 1.0).toBool()) { if (settings->value("require_selection_to_zoom", 1.0).toBool()) {
ui->requireSelectionCheckBox->setCheckState(Qt::Checked); ui->requireSelectionCheckBox->setCheckState(Qt::Checked);
} }
if (settings->value("use_max_exit_circle", 0.0).toBool()) { if (settings->value("use_max_exit_circle", 0.0).toBool()) {
ui->scaleImageCircleCheckBox->setCheckState(Qt::Checked); ui->scaleImageCircleCheckBox->setCheckState(Qt::Checked);
} }
if (settings->value("limit_stellar_magnitude", true).toBool()) { if (settings->value("limit_stellar_magnitude", true).toBool()) {
ui->limitStellarMagnitudeCheckBox->setCheckState(Qt::Checked ); ui->limitStellarMagnitudeCheckBox->setCheckState(Qt::Checked );
skipping to change at line 499 skipping to change at line 501
} }
if (settings->value("use_ccd_flip", true).toBool()) if (settings->value("use_ccd_flip", true).toBool())
{ {
ui->checkBoxUseFlipForCCD->setChecked(true); ui->checkBoxUseFlipForCCD->setChecked(true);
} }
//Initialize the style //Initialize the style
updateStyle(); updateStyle();
} }
void OcularDialog::setLabelsDescriptionText(bool state)
{
if (state)
{
// TRANSLATORS: tFOV for binoculars (tFOV = True Field of Vi
ew)
ui->labelFOV->setText(q_("tFOV:"));
// TRANSLATORS: Magnification factor for binoculars
ui->labelFL->setText(q_("Magnification factor:"));
}
else
{
ui->labelFOV->setText(q_("aFOV:"));
ui->labelFL->setText(q_("Focal length:"));
}
}
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_("Author") + ":</strong></td><td>Timo thy Reaves &lt;treaves@silverfieldstech.com&gt;</td></tr>"; html += "<tr><td><strong>" + q_("Author") + ":</strong></td><td>Timo thy Reaves &lt;treaves@silverfieldstech.com&gt;</td></tr>";
html += "<tr><td><strong>" + q_("Contributors") + ":</strong></td><t d>Bogdan Marinov<br />Pawel Stolowski (" + q_("Barlow lens feature") + ")<b r />Alexander Wolf</td></tr>"; html += "<tr><td><strong>" + q_("Contributors") + ":</strong></td><t d>Bogdan Marinov<br />Pawel Stolowski (" + q_("Barlow lens feature") + ")<b r />Alexander Wolf</td></tr>";
html += "</table>"; html += "</table>";
 End of changes. 2 change blocks. 
0 lines changed or deleted 20 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/