7#include "opscalibration.h"
12#include "internalguide/internalguider.h"
13#include "internalguide/calibration.h"
21#include <KConfigDialog>
25OpsCalibration::OpsCalibration(InternalGuider *guiderObject) :
QFrame(
KStars::Instance())
29 guider = guiderObject;
41 guider->getReticleParameters(&x, &y);
43 spinBox_ReticleX->setValue(x);
44 spinBox_ReticleY->setValue(y);
46 uint16_t subX, subY, subW, subH, subBinX, subBinY;
47 guider->getFrameParams(&subX, &subY, &subW, &subH, &subBinX, &subBinY);
49 spinBox_ReticleX->setMaximum(subW);
50 spinBox_ReticleY->setMaximum(subH);
52 auto cal = guider->getCalibration();
53 if (cal.isInitialized())
56 ra_cal_mspp->setText(
QString::number(cal.raPulseMillisecondsPerArcsecond(),
'f', 1));
58 dec_cal_mspp->setText(
QString::number(cal.decPulseMillisecondsPerArcsecond(),
'f', 1));
59 dec_cal_degrees_unit->setText(
60 cal.declinationSwapEnabled() ?
"degrees (swapped)" :
"degrees");
64 ra_cal_degrees->setText(
"xxxx");
65 ra_cal_mspp->setText(
"xxxx");
66 dec_cal_degrees->setText(
"xxxx");
67 dec_cal_degrees_unit->setText(
"degrees");
68 dec_cal_mspp->setText(
"xxxx");
72void OpsCalibration::slotApply()
static KConfigDialog * exists(const QString &name)
This is the main window for KStars.
Ekos is an advanced Astrophotography tool for Linux.
QString number(double n, char format, int precision)
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)