Kstars

capturestatuswidget.h
1 /* Progress and status of capture preparation and execution
2  SPDX-FileCopyrightText: Wolfgang Reissenberger <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "ui_capturestatuswidget.h"
10 #include "ekos/ekos.h"
11 
12 #include <KLed>
13 
14 namespace Ekos
15 {
16 
17 class CaptureStatusWidget : public QWidget, Ui::CaptureStatusWidget
18 {
19  Q_OBJECT
20 
21 public:
22  CaptureStatusWidget(QWidget * parent = nullptr);
23 
24  /**
25  * @brief Change the status text and LED color
26  */
27  void setStatus(QString text, Qt::GlobalColor color);
28 
29  /**
30  * @brief Currently displayed status text
31  */
32  QString getStatusText() { return statusText->text(); }
33 
34 public slots:
35  /**
36  * @brief Handle new capture state
37  */
38  void setCaptureState(CaptureState status);
39 
40  /**
41  * @brief Handle new filter state
42  */
43  void setFilterState(FilterState status);
44 
45 private:
46  KLed *statusLed {nullptr};
47 
48  FilterState lastFilterState = FILTER_IDLE;
49 };
50 
51 } // namespace
Q_OBJECTQ_OBJECT
Ekos is an advanced Astrophotography tool for Linux. It is based on a modular extensible framework to...
Definition: align.cpp:70
CaptureState
Capture states.
Definition: ekos.h:91
GlobalColor
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Tue Aug 9 2022 04:06:01 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.