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

Jason Harris kstars at 30doradus.org
Wed Oct 26 16:42:48 CEST 2005


SVN commit 474488 by harris:

SkyComposite: Finally attempting to compile: skycomposite.o now 
compiles!  One down, 27 to go.

Added a static non-member function to skycomponent: "static bool 
alwaysVisible() { return true; }".  Need this because SkyComposite ctor 
calls its parent SkyComponent ctor, and in this case the visibleMethod 
argument does not make sense.  As a fix, I added the above 
static function as the default value for the (*visibleMethod)() 
argument.  Not a very elegant solution, I guess.  Any better ideas?

Moved definition of updatePlanets(), updateMoons(), addTrail(), 
hasTrail(), and removeTrail() from SkyComposite into SkyMapComposite.  
Necessary because each of these functions loops over the 
Components in SolarSystemComposite, which is not defined in the 
SkyComposite baseclass.

Various other fixes.

CCMAIL: kstars-devel at kde.org



 M  +13 -4     skycomponent.h  
 M  +11 -50    skycomposite.cpp  
 M  +3 -3      skycomposite.h  
 M  +51 -11    skymapcomposite.cpp  
 M  +44 -0     skymapcomposite.h  
 M  +3 -3      solarsystemlistcomponent.h  
 M  +3 -3      solarsystemsinglecomponent.h  




More information about the Kstars-devel mailing list