File indexing completed on 2024-04-28 03:43:39
0001 /* 0002 SPDX-FileCopyrightText: 2012 Jasem Mutlaq <mutlaqja@ikarustech.com> 0003 SPDX-FileCopyrightText: 2021 Wolfgang Reissenberger <sterne-jaeger@openfuture.de> 0004 0005 SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 #pragma once 0009 0010 #include "ui_guidemanager.h" 0011 0012 #include "ekos/ekos.h" 0013 #include "ekos/guide/guidestatewidget.h" 0014 0015 #include <QWidget> 0016 #include <QProgressIndicator.h> 0017 0018 class QProgressIndicator; 0019 0020 namespace Ekos 0021 { 0022 0023 class Guide; 0024 0025 class GuideManager : public QWidget, public Ui::GuideManager 0026 { 0027 Q_OBJECT 0028 public: 0029 GuideManager(QWidget *parent = nullptr); 0030 void init(Guide *guideProcess); 0031 void updateGuideDetailView(); 0032 void reset(); 0033 0034 public slots: 0035 void updateGuideStatus(GuideState status); 0036 void updateGuideStarPixmap(QPixmap &starPix); 0037 void updateSigmas(double ra, double de); 0038 0039 private: 0040 GuideStateWidget *guideStateWidget { nullptr }; 0041 std::unique_ptr<QPixmap> guideStarPixmap; 0042 0043 }; 0044 }