Kstars

modcalcplanets.h
1 /*
2  SPDX-FileCopyrightText: 2004-2005 Pablo de Vicente <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "ui_modcalcplanets.h"
10 
11 class QTextStream;
12 
13 class GeoLocation;
14 class KSPlanetBase;
15 
16 /**
17  *@author Pablo de Vicente
18  */
19 class modCalcPlanets : public QFrame, public Ui::modCalcPlanetsDlg
20 {
21  Q_OBJECT
22 
23  public:
24  explicit modCalcPlanets(QWidget *p);
25  virtual ~modCalcPlanets() override = default;
26 
27  public slots:
28 
29  void slotLocation();
30  void slotComputePosition();
31  void slotUtCheckedBatch();
32  void slotDateCheckedBatch();
33  void slotLongCheckedBatch();
34  void slotLatCheckedBatch();
35  void slotPlanetsCheckedBatch();
36  void slotRunBatch();
37  void processLines(QTextStream &istream);
38  //void slotInputFile();
39  //void slotOutputFile();
40  //void slotRunBatch();
41 
42  private:
43  void showCoordinates(const KSPlanetBase &ksp);
44  void showHeliocentricEclipticCoords(const dms &hLong, const dms &hLat, double dist);
45  void showGeocentricEclipticCoords(const dms &eLong, const dms &eLat, double r);
46  void showEquatorialCoords(const dms &ra, const dms &dec);
47  void showTopocentricCoords(const dms &az, const dms &el);
48  unsigned int requiredBatchFields();
49 
50  // void processLines( QTextStream &istream );
51 
52  GeoLocation *geoPlace;
53 };
Q_OBJECTQ_OBJECT
An angle, stored as degrees, but expressible in many ways.
Definition: dms.h:37
void processLines(QTextStream &istream)
Provides necessary information about objects in the solar system.
Definition: ksplanetbase.h:49
Relevant data about an observing location on Earth.
Definition: geolocation.h:27
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sun Aug 14 2022 04:13:58 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.