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

Jason Harris kstars at 30doradus.org
Fri Apr 11 02:03:22 CEST 2008


SVN commit 795605 by harris:

Fixing bug #119963.  Now you can center & track on solar system
bodies, even when they are not being drawn.  The centered body remains
invisible but does get a name label.

The drawback from this fix is that users can no longer attempt to save
CPU cycles by turning off solar system bodies; their positions will
still get updated, even when invisible.  Still, that's better than
centering on a null position when the user tries to center on a real
body.

BUG: 119963
CCMAIL: kstars-deveL at kde.org



 M  +3 -3      skycomponents/solarsystemcomposite.cpp  
 M  +4 -0      skymap.cpp  
 M  +1 -1      skymap.h  


--- trunk/KDE/kdeedu/kstars/kstars/skycomponents/solarsystemcomposite.cpp #795604:795605
@@ -88,7 +88,7 @@
 
 void SolarSystemComposite::update( KStarsData *data, KSNumbers *num )
 {
-    if ( ! selected() ) return;
+	//    if ( ! selected() ) return;
 
     m_Sun->EquatorialToHorizontal( data->lst(), data->geo()->lat() );
     m_Moon->EquatorialToHorizontal( data->lst(), data->geo()->lat() );
@@ -101,7 +101,7 @@
 
 void SolarSystemComposite::updatePlanets( KStarsData *data, KSNumbers *num )
 {
-    if ( ! selected() ) return;
+	//    if ( ! selected() ) return;
 
     m_Earth->findPosition( num );
     foreach ( SkyComponent *comp, components() ) {
@@ -111,7 +111,7 @@
 
 void SolarSystemComposite::updateMoons( KStarsData *data, KSNumbers *num )
 {
-    if ( ! selected() ) return;
+	//    if ( ! selected() ) return;
 
     m_Sun->findPosition( num );
     m_Moon->findPosition( num, data->geo()->lat(), data->lst() );
--- trunk/KDE/kdeedu/kstars/kstars/skymap.cpp #795604:795605
@@ -246,6 +246,10 @@
     update();
 }
 
+void SkyMap::setClickedObject( SkyObject *o ) {
+	  ClickedObject = o;
+}
+
 void SkyMap::setFocusObject( SkyObject *o ) {
     FocusObject = o;
 
--- trunk/KDE/kdeedu/kstars/kstars/skymap.h #795604:795605
@@ -297,7 +297,7 @@
     /**@short Set the ClickedObject pointer to the argument.
     	*@param o pointer to the SkyObject to be assigned as the ClickedObject
     	*/
-    void setClickedObject( SkyObject *o ) { ClickedObject = o; }
+    void setClickedObject( SkyObject *o );
 
     /**@short Retrieve the object which is centered in the sky map.
     	*


More information about the Kstars-devel mailing list