diff options
Diffstat (limited to 'kstars/kstars/tools/modcalcdaylength.cpp')
-rw-r--r-- | kstars/kstars/tools/modcalcdaylength.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/kstars/kstars/tools/modcalcdaylength.cpp b/kstars/kstars/tools/modcalcdaylength.cpp index dcfba7bd..66a41bef 100644 --- a/kstars/kstars/tools/modcalcdaylength.cpp +++ b/kstars/kstars/tools/modcalcdaylength.cpp @@ -30,7 +30,7 @@ #include <kapplication.h> -modCalcDayLength::modCalcDayLength(TQWidget *parentSplit, const char *name) : modCalcDayLengthDlg(parentSplit,name) { +modCalcDayLength::modCalcDayLength(TQWidget *tqparentSplit, const char *name) : modCalcDayLengthDlg(tqparentSplit,name) { showCurrentDate(); initGeo(); show(); @@ -40,13 +40,13 @@ modCalcDayLength::~modCalcDayLength() {} void modCalcDayLength::showCurrentDate (void) { - KStarsDateTime dt( KStarsDateTime::currentDateTime() ); + KStarsDateTime dt( KStarsDateTime::tqcurrentDateTime() ); datBox->setDate( dt.date() ); } void modCalcDayLength::initGeo(void) { - KStars *ks = (KStars*) parent()->parent()->parent(); // QSplitter->AstroCalc->KStars + KStars *ks = (KStars*) tqparent()->tqparent()->tqparent(); // TQSplitter->AstroCalc->KStars geoPlace = ks->geo(); longBox->show( geoPlace->lng() ); latBox->show( geoPlace->lat() ); @@ -71,7 +71,7 @@ void modCalcDayLength::slotClearCoords(){ elTransitBox->clearFields(); // reset to current date - datBox->setDate(ExtDate::currentDate()); + datBox->setDate(ExtDate::tqcurrentDate()); // reset times to 00:00:00 setTimeBox->clearFields(); @@ -82,9 +82,9 @@ void modCalcDayLength::slotClearCoords(){ dayLBox->clearFields(); } -TQTime modCalcDayLength::lengthOfDay(TQTime setQTime, TQTime riseQTime){ +TQTime modCalcDayLength::lengthOfDay(TQTime setTQTime, TQTime riseTQTime){ TQTime dL(0,0,0); - int dds = riseQTime.secsTo(setQTime); + int dds = riseTQTime.secsTo(setTQTime); TQTime dLength = dL.addSecs( dds ); return dLength; @@ -96,37 +96,37 @@ void modCalcDayLength::slotComputePosTime() getGeoLocation(); KSNumbers * num = new KSNumbers(jd0); - KSSun *Sun = new KSSun(((KStars*) parent()->parent()->parent())->data()); + KSSun *Sun = new KSSun(((KStars*) tqparent()->tqparent()->tqparent())->data()); Sun->findPosition(num); - TQTime setQtime = Sun->riseSetTime( jd0 , geoPlace, false ); - TQTime riseQtime = Sun->riseSetTime( jd0 , geoPlace, true ); - TQTime transitQtime = Sun->transitTime(jd0 , geoPlace); + TQTime setTQtime = Sun->riseSetTime( jd0 , geoPlace, false ); + TQTime riseTQtime = Sun->riseSetTime( jd0 , geoPlace, true ); + TQTime transitTQtime = Sun->transitTime(jd0 , geoPlace); dms setAz = Sun->riseSetTimeAz(jd0, geoPlace, false); dms riseAz = Sun->riseSetTimeAz(jd0, geoPlace, true); dms transAlt = Sun->transitAltitude(jd0, geoPlace); - if (setQtime.isValid() ) { + if (setTQtime.isValid() ) { azSetBox->show( setAz ); elTransitBox->show( transAlt ); azRiseBox->show( riseAz ); - setTimeBox->showTime( setQtime ); - riseTimeBox->showTime( riseQtime ); - transitTimeBox->showTime( transitQtime ); + setTimeBox->showTime( setTQtime ); + riseTimeBox->showTime( riseTQtime ); + transitTimeBox->showTime( transitTQtime ); - TQTime dayLQtime = lengthOfDay (setQtime,riseQtime); + TQTime dayLTQtime = lengthOfDay (setTQtime,riseTQtime); - dayLBox->showTime( dayLQtime ); + dayLBox->showTime( dayLTQtime ); } else if (transAlt.Degrees() > 0. ) { azSetBox->setDMS(i18n("Circumpolar")); elTransitBox->show( transAlt ); azRiseBox->setDMS(i18n("Circumpolar")); - setTimeBox->showTime( setQtime ); - riseTimeBox->showTime( riseQtime ); - transitTimeBox->showTime( transitQtime ); + setTimeBox->showTime( setTQtime ); + riseTimeBox->showTime( riseTQtime ); + transitTimeBox->showTime( transitTQtime ); dayLBox->setEntry("24:00:00"); |