1 /***************************************************************************
2 modcalcdaylength.h - description
4 begin : wed jun 12 2002
5 copyright : (C) 2002 by Pablo de Vicente
7 ***************************************************************************/
9 /***************************************************************************
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. *
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
31 class modCalcDayLength
: public modCalcDayLengthDlg
{
35 modCalcDayLength(QWidget
*p
, const char *n
);
40 /** No descriptions */
41 void slotComputePosTime();
42 /** No descriptions */
43 void slotClearCoords();
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);
60 GeoLocation
*geoPlace
;