[Kstars-devel] kdeedu/kstars/kstars
Jason Harris
kstars at 30doradus.org
Sun Jul 25 22:59:57 CEST 2004
CVS commit by harris:
It's now possible to drag the sky all the way to the zenith (Alt=90)
with the mouse. There was a limit of 89.9999 hardcoded to avoid
weirdness at the coordinate pole. However, I recently fixed the
weirdness, so the hardcoded limit is not necessary.
CCMAIL: kstars-devel at kde.org
M +7 -3 skymapevents.cpp 1.95
--- kdeedu/kstars/kstars/skymapevents.cpp #1.94:1.95
@@ -484,6 +484,6 @@ void SkyMap::mouseMoveEvent( QMouseEvent
focus()->setAlt( focus()->alt()->Degrees() - dAlt.Degrees() );
- if ( focus()->alt()->Degrees() >89.9999 ) focus()->setAlt( 89.9999 );
- if ( focus()->alt()->Degrees() <-89.9999 ) focus()->setAlt( -89.9999 );
+ if ( focus()->alt()->Degrees() >90.0 ) focus()->setAlt( 90.0 );
+ if ( focus()->alt()->Degrees() <-90.0 ) focus()->setAlt( -90.0 );
focus()->setAz( focus()->az()->reduce() );
focus()->HorizontalToEquatorial( data->LST, data->geo()->lat() );
@@ -572,6 +572,10 @@ void SkyMap::mouseReleaseEvent( QMouseEv
mouseButtonDown = false;
if ( slewing ) {
- setDestination( focus() );
slewing = false;
+
+ if ( Options::useAltAz() )
+ setDestinationAltAz( focus()->alt()->Degrees(), focus()->az()->Degrees() );
+ else
+ setDestination( focus() );
}
More information about the Kstars-devel
mailing list