Kstars

modcalcvizequinox.h
1 /*
2  SPDX-FileCopyrightText: 2007 Jason Harris <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "kstarsdatetime.h"
10 #include "ui_modcalcvizequinox.h"
11 
12 class QTextStream;
13 
14 class KPlotObject;
15 
16 /**
17  * @class modCalcEquinox
18  *
19  * @author Jason Harris
20  */
21 class modCalcEquinox : public QFrame, public Ui::modCalcEquinox
22 {
23  Q_OBJECT
24 
25  public:
26  explicit modCalcEquinox(QWidget *p);
27  virtual ~modCalcEquinox() override = default;
28 
29  double dmonth(int imonth);
30 
31  private slots:
32  void slotCompute();
33  void slotCheckFiles();
34  void slotRunBatch();
35  void slotViewBatch();
36 
37  private:
38  void processLines(QTextStream &istream);
39  void addDateAxes();
40  void findSolsticeAndEquinox(uint32_t year);
41  qreal FindCorrection(uint32_t year);
42 
43  public:
44  KStarsDateTime dSpring, dSummer, dAutumn, dWinter;
45  private:
46  double DMonth[12];
47 };
Q_OBJECTQ_OBJECT
Extension of QDateTime for KStars KStarsDateTime can represent the date/time as a Julian Day,...
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 19 2022 03:57:52 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.