Kstars

polarishourangle.h
1 /*
2  SPDX-FileCopyrightText: 2015-2017 Pavel Mraz
3 
4  SPDX-FileCopyrightText: 2017 Jasem Mutlaq
5 
6  SPDX-License-Identifier: GPL-2.0-or-later
7 */
8 
9 #pragma once
10 
11 #include <memory>
12 
13 #include "ui_polarishourangle.h"
14 
15 class SkyObject;
16 
17 class PolarisHourAngle : public QDialog, public Ui::PolarisHourAngle
18 {
19  Q_OBJECT
20 
21 public:
22  explicit PolarisHourAngle(QWidget *parent);
23 
24 protected:
25  void paintEvent(QPaintEvent *) override;
26 
27 private slots:
28  void onTimeUpdated(QDateTime newDateTime);
29 
30 private:
31  double m_polarisHourAngle;
32 
33  SkyObject *m_polaris = { nullptr };
34  std::unique_ptr<QPixmap> m_reticle12;
35  std::unique_ptr<QPixmap> m_reticle24;
36 };
37 
Q_OBJECTQ_OBJECT
virtual void paintEvent(QPaintEvent *event)
Information about an object in the sky.
Definition: skyobject.h:41
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 19 2022 03:57:53 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.