Kstars

ledstatuswidget.h
1/* Progress and status of capture preparation and execution
2 SPDX-FileCopyrightText: Wolfgang Reissenberger <sterne-jaeger@openfuture.de>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "ui_ledstatuswidget.h"
10#include "ekos/ekos.h"
11#include "indi/indimount.h"
12
13#include <KLed>
14
15namespace Ekos
16{
17
18class LedStatusWidget : public QWidget, Ui::LedStatusWidget
19{
21
22public:
23 LedStatusWidget(QWidget * parent = nullptr);
24
25 /**
26 * @brief Change the status text and LED color
27 */
28 void setStatus(QString text, Qt::GlobalColor color);
29
30 /**
31 * @brief Currently displayed status text
32 */
33 QString getStatusText() { return statusText->text(); }
34
35public slots:
36 /**
37 * @brief Handle new capture state
38 */
39 void setCaptureState(CaptureState status);
40
41 /**
42 * @brief Handle the mount state
43 */
44 void setMountState(QString text, ISD::Mount::Status status);
45
46 /**
47 * @brief Handle the focus state
48 */
49 void setFocusState(FocusState status);
50
51 /**
52 * @brief Handle new filter state
53 */
54 void setFilterState(FilterState status);
55
56private:
57 KLed *statusLed {nullptr};
58
59 FilterState lastFilterState = FILTER_IDLE;
60};
61
62} // namespace
Ekos is an advanced Astrophotography tool for Linux.
Definition align.cpp:83
Q_OBJECTQ_OBJECT
QObject * parent() const const
GlobalColor
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.