kstars
modcalcdaylength.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 modcalcdaylength.h - description 00003 ------------------- 00004 begin : wed jun 12 2002 00005 copyright : (C) 2002 by Pablo de Vicente 00006 email : vicente@oan.es 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef MODCALCDAYLENGTH_H 00019 #define MODCALCDAYLENGTH_H 00020 00021 #include "modcalcdaylengthdlg.h" 00022 00028 class KStarsDateTime; 00029 class GeoLocation; 00030 00031 class modCalcDayLength : public modCalcDayLengthDlg { 00032 Q_OBJECT 00033 public: 00035 modCalcDayLength(QWidget *p, const char *n); 00037 ~modCalcDayLength(); 00038 00039 public slots: 00041 void slotComputePosTime(); 00043 void slotClearCoords(); 00044 00045 private: 00047 QTime lengthOfDay(QTime setQTime, QTime riseQTime); 00048 00050 void showCurrentDate(void); 00051 00053 KStarsDateTime getDateTime (void); 00054 00057 void getGeoLocation(void); 00058 void initGeo(void); 00059 00060 GeoLocation *geoPlace; 00061 }; 00062 00063 #endif