/***************************************************************************
                          modcalcdaylength.h  -  description
                             -------------------
    begin                : wed jun 12 2002
    copyright            : (C) 2002 by Pablo de Vicente
    email                : vicente@oan.es
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef MODCALCDAYLENGTH_H
#define MODCALCDAYLENGTH_H

#include "modcalcdaylengthdlg.h"

/** Module to compute the equatorial coordinates for a given date and time
 * from a given epoch or equinox
  *@author Pablo de Vicente
  */

class KStarsDateTime;
class GeoLocation;

class modCalcDayLength : public modCalcDayLengthDlg  {
TQ_OBJECT
  
public: 
/**Constructor. */
	modCalcDayLength(TQWidget *p, const char *n);
/**Destructor. */
	~modCalcDayLength();

public slots:
	/** No descriptions */
	void slotComputePosTime();
	/** No descriptions */
	void slotClearCoords();

private:
/**@returns a SkyPoint constructed from the coordinates in the RA and Dec dmsBoxes. */
	TQTime lengthOfDay(TQTime setTQTime, TQTime riseTQTime);

/**Fills the Date fields with the current values from the current date. */
	void showCurrentDate(void);

/**@returns a KStarsDateTime constructed from the Time and Date fields. */
	KStarsDateTime getDateTime (void);

/**@returns a GeoLocation constructed from the Longitude and Latitude fields.
 * Height is arbitrarily set to 0.0 */
	void getGeoLocation(void);
	void initGeo(void);

	GeoLocation *geoPlace;
};

#endif
