summaryrefslogtreecommitdiffstats
path: root/kstars/kstars/tools/modcalcdaylength.h
diff options
context:
space:
mode:
Diffstat (limited to 'kstars/kstars/tools/modcalcdaylength.h')
-rw-r--r--kstars/kstars/tools/modcalcdaylength.h63
1 files changed, 63 insertions, 0 deletions
diff --git a/kstars/kstars/tools/modcalcdaylength.h b/kstars/kstars/tools/modcalcdaylength.h
new file mode 100644
index 00000000..1c644157
--- /dev/null
+++ b/kstars/kstars/tools/modcalcdaylength.h
@@ -0,0 +1,63 @@
+/***************************************************************************
+ 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 {
+Q_OBJECT
+public:
+/**Constructor. */
+ modCalcDayLength(QWidget *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. */
+ QTime lengthOfDay(QTime setQTime, QTime riseQTime);
+
+/**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