[Kstars-devel] kdeedu/kstars/kstars/tools

Pablo de Vicente p.devicente at wanadoo.es
Sat Jun 12 22:12:03 CEST 2004


CVS commit by pvicente: 

Now if the set time is not valid we test if the height at transit (when the Sun is higher) 
is negative or positive. 
If negative the azimuth for set and rise time and the height at noon
show the text "Does not rise". The boxes with Set, Rise and noon time are blank and the
duration of the day 0.
If positive the azimuth for set and rise time show the text "Circumpolar" 
The boxes with Set and Rise time are blank and the duration of the day 23:59:59 (Yes, this 
unpleasent) I will try to find a solution for this that says "24:00:00".
CCMAIL:kstars-devel at kde.org


  M +31 -8     modcalcdaylength.cpp   1.27


--- kdeedu/kstars/kstars/tools/modcalcdaylength.cpp  #1.26:1.27
@@ -108,4 +108,5 @@ void modCalcDayLength::slotComputePosTim
         dms transAlt = Sun->transitAltitude(jd0, geoPlace);
 
+        if (setQtime.isValid() ) {
         azSetBox->show( setAz );
         elTransitBox->show( transAlt );
@@ -119,4 +120,26 @@ void modCalcDayLength::slotComputePosTim
 
         dayLBox->showTime( dayLQtime );
+        } else if (transAlt.Degrees() > 0. ) {
+                azSetBox->showCircumpolar();
+                elTransitBox->show( transAlt );
+                azRiseBox->showCircumpolar();
+
+                setTimeBox->showTime( setQtime );
+                riseTimeBox->showTime( riseQtime );
+                transitTimeBox->showTime( transitQtime );
+
+                dayLBox->showTime( QTime(23,59,59) );
+
+        } else if (transAlt.Degrees() < 0. ) {
+                azSetBox->showDoesNotRise();
+                elTransitBox->showDoesNotRise();
+                azRiseBox->showDoesNotRise();
+
+                setTimeBox->clearFields();
+                riseTimeBox->clearFields();
+                transitTimeBox->clearFields();
+
+                dayLBox->showTime( QTime(0,0,0) );
+        }
 
         delete num;




More information about the Kstars-devel mailing list