summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2016-07-19 20:50:52 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-07-19 20:50:52 (GMT)
commit635296e1239b7a55b8beaadd523f8a5157e8e41d (patch)
tree83605d92c4e10837e53828273c8631da2200299f
parentaddba85c74984b894bbb707d00abedb10c42667a (diff)
Add FocusState
-rw-r--r--kstars/ekos/ekos.cpp1
-rw-r--r--kstars/ekos/ekos.h11
2 files changed, 12 insertions, 0 deletions
diff --git a/kstars/ekos/ekos.cpp b/kstars/ekos/ekos.cpp
index 7650344..b63a741 100644
--- a/kstars/ekos/ekos.cpp
+++ b/kstars/ekos/ekos.cpp
@@ -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]; }
}
diff --git a/kstars/ekos/ekos.h b/kstars/ekos/ekos.h
index 4d6048c..0f6adbf 100644
--- a/kstars/ekos/ekos.h
+++ b/kstars/ekos/ekos.h
@@ -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