Kstars

focusmanager.h
1 /*
2  SPDX-FileCopyrightText: 2012 Jasem Mutlaq <[email protected]>
3  SPDX-FileCopyrightText: 2021 Wolfgang Reissenberger <[email protected]>
4 
5  SPDX-License-Identifier: GPL-2.0-or-later
6 */
7 
8 #pragma once
9 
10 #include "ui_focusmanager.h"
11 
12 #include "ekos/ekos.h"
13 #include "ekos/focus/focus.h"
14 
15 #include <QWidget>
16 #include <QProgressIndicator.h>
17 
18 class QProgressIndicator;
19 
20 namespace Ekos
21 {
22 
23 class FocusManager : public QWidget, public Ui::FocusManager
24 {
25  Q_OBJECT
26 
27 public:
28  FocusManager(QWidget * parent);
29  void init(Focus *focusProcess);
30  void updateFocusDetailView();
31  void stopAnimation();
32  void reset();
33 
34 public slots:
35  void updateFocusStatus(FocusState status);
36  void updateFocusStarPixmap(QPixmap &starPixmap);
37  void updateCurrentHFR(double newHFR);
38 
39 private:
40  QProgressIndicator *focusPI { nullptr };
41  std::unique_ptr<QPixmap> focusStarPixmap;
42 
43 };
44 
45 }
Q_OBJECTQ_OBJECT
Ekos is an advanced Astrophotography tool for Linux. It is based on a modular extensible framework to...
Definition: align.cpp:70
QCA_EXPORT void init()
The QProgressIndicator class lets an application display a progress indicator to show that a long tas...
KGuiItem reset()
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sun Aug 14 2022 04:13:56 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.