Kstars

modcalcgeodcoord.h
1/*
2 SPDX-FileCopyrightText: 2002 Pablo de Vicente <vicente@oan.es>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "ui_modcalcgeod.h"
10
11#include <memory>
12
13class QTextStream;
14class GeoLocation;
15
16/**
17 * Class which implements the KStars calculator module to compute
18 * Geodetic coordinates to/from Cartesian coordinates.
19 *
20 * @author Pablo de Vicente
21 * @version 0.9
22 */
23class modCalcGeodCoord : public QFrame, public Ui::modCalcGeodCoordDlg
24{
26 public:
27 explicit modCalcGeodCoord(QWidget *p);
28
29 void genGeoCoords(void);
30 void getCartGeoCoords(void);
31 void getSphGeoCoords(void);
32 void showSpheGeoCoords(void);
33 void showCartGeoCoords(void);
34
35 public slots:
36
37 void slotComputeGeoCoords(void);
38 void slotClearGeoCoords(void);
39 void setEllipsoid(int i);
40 void slotLongCheckedBatch();
41 void slotLatCheckedBatch();
42 void slotElevCheckedBatch();
43 void slotXCheckedBatch();
44 void slotYCheckedBatch();
45 void slotZCheckedBatch();
46 void slotOutputFile();
47 void slotInputFile();
48
49 private:
50 void geoCheck(void);
51 void xyzCheck(void);
52 void showLongLat(void);
53 void processLines(QTextStream &istream);
54 void slotRunBatch(void);
55
56 // QRadioButton *cartRadio, *spheRadio;
57 // QVBox *vbox, *rightBox;
58 // QLineEdit *xGeoName, *yGeoName, *zGeoName, *altGeoName;
59 // dmsBox *timeBox, *dateBox, *lonGeoBox, *latGeoBox;
60
61 std::unique_ptr<GeoLocation> geoPlace;
62 bool xyzInputCoords { false };
63};
Contains all relevant information for specifying a location on Earth: City Name, State/Province name,...
Definition geolocation.h:28
Class which implements the KStars calculator module to compute Geodetic coordinates to/from Cartesian...
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.