moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kstars / kstars / tools / modcalcdaylength.h
blob1c644157c9bb96f9d60d38c56dcd1541c2f6d38a
1 /***************************************************************************
2 modcalcdaylength.h - description
3 -------------------
4 begin : wed jun 12 2002
5 copyright : (C) 2002 by Pablo de Vicente
6 email : vicente@oan.es
7 ***************************************************************************/
9 /***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
18 #ifndef MODCALCDAYLENGTH_H
19 #define MODCALCDAYLENGTH_H
21 #include "modcalcdaylengthdlg.h"
23 /** Module to compute the equatorial coordinates for a given date and time
24 * from a given epoch or equinox
25 *@author Pablo de Vicente
28 class KStarsDateTime;
29 class GeoLocation;
31 class modCalcDayLength : public modCalcDayLengthDlg {
32 Q_OBJECT
33 public:
34 /**Constructor. */
35 modCalcDayLength(QWidget *p, const char *n);
36 /**Destructor. */
37 ~modCalcDayLength();
39 public slots:
40 /** No descriptions */
41 void slotComputePosTime();
42 /** No descriptions */
43 void slotClearCoords();
45 private:
46 /**@returns a SkyPoint constructed from the coordinates in the RA and Dec dmsBoxes. */
47 QTime lengthOfDay(QTime setQTime, QTime riseQTime);
49 /**Fills the Date fields with the current values from the current date. */
50 void showCurrentDate(void);
52 /**@returns a KStarsDateTime constructed from the Time and Date fields. */
53 KStarsDateTime getDateTime (void);
55 /**@returns a GeoLocation constructed from the Longitude and Latitude fields.
56 * Height is arbitrarily set to 0.0 */
57 void getGeoLocation(void);
58 void initGeo(void);
60 GeoLocation *geoPlace;
63 #endif