7#include "mountpositionwidget.h"
13MountPositionWidget::MountPositionWidget(
QWidget *parent)
28void MountPositionWidget::updateTelescopeCoords(
const SkyPoint &position,
const dms &ha)
34 raValueObject->setProperty(
"text", position.
ra0().toHMSString());
35 deValueObject->setProperty(
"text", position.
dec0().toDMSString());
39 raValueObject->setProperty(
"text", position.
ra().toHMSString());
40 deValueObject->setProperty(
"text", position.
dec().toDMSString());
42 azValueObject->setProperty(
"text", position.
az().toDMSString());
43 altValueObject->setProperty(
"text", position.
alt().toDMSString());
45 dms lst = KStarsData::Instance()->
geo()->GSTtoLST(KStarsData::Instance()->clock()->utc().gst());
49 if (haSigned.Hours() > 12.0)
51 haSigned.setH(24.0 - haSigned.Hours());
55 haValueObject->setProperty(
"text",
QString(
"%1%2").arg(sgn).arg(haSigned.toHMSString()));
60bool MountPositionWidget::isJ2000Enabled()
62 return j2000CheckObject->isChecked();
65void MountPositionWidget::setJ2000Enabled(
bool enabled)
67 j2000CheckObject->setChecked(enabled);
The sky coordinates of a point in the sky.
const CachingDms & dec() const
const CachingDms & ra0() const
const CachingDms & ra() const
const CachingDms & dec0() const
An angle, stored as degrees, but expressible in many ways.
const QString toDMSString(const bool forceSign=false, const bool machineReadable=false, const bool highPrecision=false) const
Ekos is an advanced Astrophotography tool for Linux.
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)