Update help and translation

This commit is contained in:
2024-10-02 11:52:35 +02:00
parent 258553a6bb
commit 06b3dbc1bb
14 changed files with 1878 additions and 575 deletions
+12 -7
View File
@@ -24,11 +24,15 @@ PlateSolving::PlateSolving(QWidget *parent)
_ui->profileComboBox->addItem(profile.listName);
}
_ui->profileComboBox->setCurrentIndex(profileIdx);
_ui->profileComboBox->setToolTip(profiles[profileIdx].description);
_ui->scaleUnit->setCurrentIndex(settings.value("platesolving/scaleUnit", 1).toInt());
connect(_ui->profileComboBox, &QComboBox::currentIndexChanged, [this](int index){
auto profiles = StellarSolver::getBuiltInProfiles();
_solver->setParameters(profiles[index]);
_ui->profileComboBox->setToolTip(profiles[index].description);
QSettings settings;
settings.setValue("platesolving/profile", index);
});
connect(_ui->extractButton, &QPushButton::clicked, this, &PlateSolving::extract);
@@ -36,6 +40,7 @@ PlateSolving::PlateSolving(QWidget *parent)
connect(_ui->settingsButton, &QPushButton::clicked, this, &PlateSolving::settings);
connect(_ui->abortButton, &QPushButton::clicked, this, &PlateSolving::abort);
connect(_ui->updateButton, &QPushButton::clicked, this, &PlateSolving::updateHeader);
connect(_ui->raStart, &QDoubleSpinBox::valueChanged, [this](double val){ _ui->raLabel->setText("RA " + SkyPoint::toHMS(val)); });
connect(_solver, &Solver::solvingDone, this, &PlateSolving::solvingDone);
connect(_solver, &Solver::extractionDone, this, &PlateSolving::extractionDone);
connect(_solver, &Solver::logOutput, [this](const QString &log){ _ui->log->appendPlainText(log); });
@@ -81,7 +86,7 @@ void PlateSolving::extractionDone()
}
_ui->stars->setText(QString::number(stars.size()));
_ui->hfr->setText(QString("%1 Ecc:%2").arg(hfr).arg(std::sqrt(1 - (b*b)/(a*a))));
_ui->hfr->setText(QString("%1pix Ecc:%2").arg(hfr).arg(std::sqrt(1 - (b*b)/(a*a))));
_ui->log->appendPlainText(QString("Extraction finished in %1 ms").arg(_solvingTime.elapsed()));
_ui->solveButton->setDisabled(false);
@@ -126,12 +131,12 @@ void PlateSolving::solvingDone()
_ui->extractButton->setDisabled(false);
auto solution = _solver->getSolution();
_ui->ra->setText(QString::number(solution.ra));
_ui->dec->setText(QString::number(solution.dec));
_ui->orientation->setText(QString::number(solution.orientation));
_ui->fieldWidth->setText(QString::number(solution.fieldWidth));
_ui->fieldHeight->setText(QString::number(solution.fieldHeight));
_ui->pixelScale->setText(QString::number(solution.pixscale));
_ui->ra->setText(SkyPoint::toHMS(solution.ra / 15.0));
_ui->dec->setText(SkyPoint::toDMS(solution.dec));
_ui->orientation->setText(QString::number(solution.orientation) + "°");
_ui->fieldWidth->setText(QString::number(solution.fieldWidth) + "'");
_ui->fieldHeight->setText(QString::number(solution.fieldHeight) + "\"");
_ui->pixelScale->setText(QString::number(solution.pixscale) + "\"/pix");
_ui->log->appendPlainText(QString("Solving finished in %1 ms").arg(_solvingTime.elapsed()));
}