Kstars

modcalcjd.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_modcalcjd.h"
10 
11 class QTextStream;
12 class QWidget;
13 
14 /**
15  * Class for KStars module which computes JD, MJD and Date/Time from the
16  * any of the other entries.
17  *
18  * Inherits QVBox
19  *
20  * @author Pablo de Vicente
21  * @version 0.9
22  */
23 class modCalcJD : public QFrame, public Ui::modCalcJdDlg
24 {
25  Q_OBJECT
26  public:
27  explicit modCalcJD(QWidget *p);
28  virtual ~modCalcJD() override = default;
29 
30  public slots:
31  void slotUpdateCalendar();
32  void slotUpdateModJD();
33  void slotUpdateJD();
34  void showCurrentTime(void);
35  void slotRunBatch();
36  void slotViewBatch();
37  void slotCheckFiles();
38 
39  private:
40  void processLines(QTextStream &istream, int inputData);
41  /** Shows Julian Day in the Box */
42  void showJd(long double jd);
43  /** Shows the modified Julian Day in the Box */
44  void showMjd(long double mjd);
45 };
Q_OBJECTQ_OBJECT
Class for KStars module which computes JD, MJD and Date/Time from the any of the other entries.
Definition: modcalcjd.h:23
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Aug 11 2022 04:00:01 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.