Kstars

modcalcsidtime.h
1 /*
2  SPDX-FileCopyrightText: 2002 Pablo de Vicente <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "ui_modcalcsidtime.h"
10 
11 #include <QFrame>
12 
13 class QTime;
14 
15 class GeoLocation;
16 
17 /**
18  * Class which implements the KStars calculator module to compute Universal
19  * time to/from Sidereal time.
20  *
21  * Inherits modCalcSidTimeDlg
22  *
23  * @author Pablo de Vicente
24  * @version 0.9
25  */
26 class modCalcSidTime : public QFrame, public Ui::modCalcSidTimeDlg
27 {
28  Q_OBJECT
29 
30  public:
31  explicit modCalcSidTime(QWidget *p);
32 
33  private slots:
34  void slotChangeLocation();
35  void slotChangeDate();
36  void slotConvertST(const QTime &lt);
37  void slotConvertLT(const QTime &st);
38 
39  void slotDateChecked();
40  void slotLocationChecked();
41  void slotLocationBatch();
42  void slotCheckFiles();
43  void slotRunBatch();
44  void slotViewBatch();
45  void slotHelpLabel();
46  void processLines(QTextStream &istream);
47 
48  private:
49  /**
50  * Fills the UT, Date boxes with the current time
51  * and date and the longitude box with the current Geo location
52  */
53  void showCurrentTimeAndLocation();
54 
55  QTime computeLTtoST(QTime lt);
56  QTime computeSTtoLT(QTime st);
57 
58  GeoLocation *geo { nullptr };
59  GeoLocation *geoBatch { nullptr };
60 };
Q_OBJECTQ_OBJECT
Class which implements the KStars calculator module to compute Universal time to/from Sidereal time.
Relevant data about an observing location on Earth.
Definition: geolocation.h:27
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Sep 26 2023 03:55:48 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.