Commit 635296e1 authored by Jasem Mutlaq's avatar Jasem Mutlaq
Browse files

Add FocusState

parent addba85c
......@@ -4,4 +4,5 @@ namespace Ekos
{
const QString & getGuideStatusString(GuideState state) { return guideStates[state]; }
const QString & getCaptureStatusString(CaptureState state) { return captureStates[state]; }
const QString & getFocusStatusString(FocusState state) { return focusStates[state]; }
}
......@@ -5,6 +5,8 @@
namespace Ekos
{
// Guide States
static const QStringList guideStates = { I18N_NOOP("Idle"), I18N_NOOP("Calibrating"), I18N_NOOP("Calibration successful"), I18N_NOOP("Calibration error"), I18N_NOOP("Guiding"),
I18N_NOOP("Aborted"), I18N_NOOP("Suspended"), I18N_NOOP("Dithering"), I18N_NOOP("Dithering Successful"), I18N_NOOP("Dithering error")};
......@@ -13,6 +15,7 @@ namespace Ekos
const QString & getGuideStatusString(GuideState state);
// Capture States
static const QStringList captureStates = { I18N_NOOP("Idle"), I18N_NOOP("In Progress"), I18N_NOOP("Capturing"), I18N_NOOP("Aborted"), I18N_NOOP("Waiting"), I18N_NOOP("Image Received"),
I18N_NOOP("Dithering"), I18N_NOOP("Focusing"), I18N_NOOP("Changing Filter"), I18N_NOOP("Setting Temperature"), I18N_NOOP("Aligning"),
I18N_NOOP("Calibrating"), I18N_NOOP("Meridian Flip"), I18N_NOOP("Complete") };
......@@ -23,6 +26,14 @@ namespace Ekos
const QString &getCaptureStatusString(CaptureState state);
// Focus States
static const QStringList focusStates = { I18N_NOOP("Idle"), I18N_NOOP("Complete"), I18N_NOOP("Failed"), I18N_NOOP("Aborted"), I18N_NOOP("In Progress"),
I18N_NOOP("Capturing"), I18N_NOOP("Framing"), I18N_NOOP("User Input"), I18N_NOOP("Changing Filter")};
typedef enum { FOCUS_IDLE, FOCUS_COMPLETE, FOCUS_FAILED, FOCUS_ABORTED, FOCUS_PROGRESS, FOCUS_FRAMING, FOCUS_WAITING, FOCUS_CHANGING_FILTER} FocusState;
const QString &getFocusStatusString(FocusState state);
}
#endif // EKOS_H
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment