Kstars

modcalcvizequinox.h
1/*
2 SPDX-FileCopyrightText: 2007 Jason Harris <kstars@30doradus.org>
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
12class QTextStream;
13
14class KPlotObject;
15
16/**
17 * @class modCalcEquinox
18 *
19 * @author Jason Harris
20 */
21class modCalcEquinox : public QFrame, public Ui::modCalcEquinox
22{
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};
Extension of QDateTime for KStars KStarsDateTime can represent the date/time as a Julian Day,...
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:44 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.