Kstars

modcalcsidtime.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_modcalcsidtime.h"
10
11#include <QFrame>
12
13class QTime;
14
15class GeoLocation;
16
17/**
18 * Class which implements the KStars calculator module to compute Universal
19 * time to/from Sidereal time.
20 *
21 * Inherits modCalcSidTimeDlg
22 *
23 * @author Pablo de Vicente
24 * @version 0.9
25 */
26class modCalcSidTime : public QFrame, public Ui::modCalcSidTimeDlg
27{
29
30 public:
31 explicit modCalcSidTime(QWidget *p);
32
33 private slots:
34 void slotChangeLocation();
35 void slotChangeDate();
36 void slotConvertST(const QTime &lt);
37 void slotConvertLT(const QTime &st);
38
39 void slotDateChecked();
40 void slotLocationChecked();
41 void slotLocationBatch();
42 void slotCheckFiles();
43 void slotRunBatch();
44 void slotViewBatch();
45 void slotHelpLabel();
46 void processLines(QTextStream &istream);
47
48 private:
49 /**
50 * Fills the UT, Date boxes with the current time
51 * and date and the longitude box with the current Geo location
52 */
53 void showCurrentTimeAndLocation();
54
55 QTime computeLTtoST(QTime lt);
56 QTime computeSTtoLT(QTime st);
57
58 GeoLocation *geo { nullptr };
59 GeoLocation *geoBatch { nullptr };
60};
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 Universal time to/from Sidereal time.
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.