diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | ce599e4f9f94b4eb00c1b5edb85bce5431ab3df2 (patch) | |
tree | d3bb9f5d25a2dc09ca81adecf39621d871534297 /kstars/kstars/tools/modcalcdaylength.h | |
download | tdeedu-ce599e4f9f94b4eb00c1b5edb85bce5431ab3df2.tar.gz tdeedu-ce599e4f9f94b4eb00c1b5edb85bce5431ab3df2.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kstars/kstars/tools/modcalcdaylength.h')
-rw-r--r-- | kstars/kstars/tools/modcalcdaylength.h | 63 |
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 |