6#include "polaralignwidget.h"
10PolarAlignWidget::PolarAlignWidget(
QWidget * parent) :
QWidget(parent)
18void initLed(
KLed *led)
27void PolarAlignWidget::init()
29 initLed(PAcapture1Led);
30 initLed(PAcapture2Led);
31 initLed(PAcapture3Led);
41void PolarAlignWidget::setPreviousGreen(PAState state)
88void PolarAlignWidget::updatePAHStage(PolarAlignmentAssistant::Stage stage)
92 case PolarAlignmentAssistant::PAH_IDLE:
95 case PolarAlignmentAssistant::PAH_FIRST_CAPTURE:
98 case PolarAlignmentAssistant::PAH_FIRST_SOLVE:
101 case PolarAlignmentAssistant::PAH_FIRST_ROTATE:
104 case PolarAlignmentAssistant::PAH_SECOND_CAPTURE:
107 case PolarAlignmentAssistant::PAH_SECOND_SOLVE:
110 case PolarAlignmentAssistant::PAH_SECOND_ROTATE:
113 case PolarAlignmentAssistant::PAH_THIRD_CAPTURE:
116 case PolarAlignmentAssistant::PAH_THIRD_SOLVE:
119 case PolarAlignmentAssistant::PAH_STAR_SELECT:
122 case PolarAlignmentAssistant::PAH_REFRESH:
125 case PolarAlignmentAssistant::PAH_POST_REFRESH:
130 case PolarAlignmentAssistant::PAH_FIRST_SETTLE:
131 case PolarAlignmentAssistant::PAH_SECOND_SETTLE:
132 case PolarAlignmentAssistant::PAH_FIND_CP:
137void PolarAlignWidget::update(PAState state)
149 setPreviousGreen(SOLVE1);
154 setPreviousGreen(SLEW1);
159 setPreviousGreen(CAPTURE2);
164 setPreviousGreen(SOLVE2);
169 setPreviousGreen(SLEW2);
174 setPreviousGreen(CAPTURE3);
179 setPreviousGreen(SOLVE3);
184 setPreviousGreen(SETUP);
189 setPreviousGreen(ADJUST);
void setColor(const QColor &color)
void setShape(Shape shape)
void setState(State state)
void update(Part *part, const QByteArray &data, qint64 dataSize)
Ekos is an advanced Astrophotography tool for Linux.
void init(KXmlGuiWindow *window, KGameDifficulty *difficulty=nullptr)