7#include "ledstatuswidget.h"
11LedStatusWidget::LedStatusWidget(
QWidget * parent) :
QWidget(parent)
15 statusLed =
new KLed(
Qt::gray, KLed::On, KLed::Flat, KLed::Circular,
this);
16 statusLed->setObjectName(
"statusLed");
19 statusText->setText(
i18n(
"Idle"));
22void LedStatusWidget::setCaptureState(CaptureState status)
89void LedStatusWidget::setMountState(
QString text, ISD::Mount::Status status)
93 case ISD::Mount::MOUNT_IDLE:
94 case ISD::Mount::MOUNT_PARKED:
97 case ISD::Mount::MOUNT_MOVING:
98 case ISD::Mount::MOUNT_SLEWING:
99 case ISD::Mount::MOUNT_PARKING:
102 case ISD::Mount::MOUNT_TRACKING:
105 case ISD::Mount::MOUNT_ERROR:
111void LedStatusWidget::setFocusState(FocusState status)
116 setStatus(Ekos::getFocusStatusString(status),
Qt::gray);
119 setStatus(Ekos::getFocusStatusString(status),
Qt::darkGreen);
124 case FOCUS_CHANGING_FILTER:
125 setStatus(Ekos::getFocusStatusString(status),
Qt::yellow);
129 setStatus(Ekos::getFocusStatusString(status),
Qt::red);
134void LedStatusWidget::setFilterState(FilterState status)
140 case FILTER_AUTOFOCUS:
141 setStatus(Ekos::getFilterStatusString(status),
Qt::yellow);
144 if (lastFilterState == FILTER_CHANGE)
157 statusText->setText(text);
158 statusLed->setColor(color);
QString i18n(const char *text, const TYPE &arg...)
Ekos is an advanced Astrophotography tool for Linux.
@ CAPTURE_SETTING_ROTATOR
@ CAPTURE_CHANGING_FILTER
@ CAPTURE_SETTING_TEMPERATURE
NETWORKMANAGERQT_EXPORT NetworkManager::Status status()