[Kstars-devel] KDE/kdeedu/kstars/kstars/skycomponents
James Bowlin
bowlin at mindspring.com
Wed Aug 22 17:57:22 CEST 2007
Jason,
I thought I had already implemented this functionality inside of
solarsystemcomposite.cpp:
bool SolarSystemComposite::selected()
{
return Options::showSolarSystem() &&
! ( Options::hideOnSlew() && Options::hidePlanets() && SkyMap::IsSlewing() );
}
I then use selected() to turn off both drawing and updating inside of
solarsystem composite. The virtual selected() routine replaced the
function pointer visible() for almost every class that we only had a
single instance of.
--
Peace, James
On Wed August 22 2007, Jason Harris wrote:
> SVN commit 703449 by harris:
>
> Make the Solar system toolbar button work
>
> CCMAIL: kstars-devel at kde.org
>
>
>
> M +2 -1 skymapcomposite.cpp
>
>
> --- trunk/KDE/kdeedu/kstars/kstars/skycomponents/skymapcomposite.cpp #703448:703449
> @@ -264,7 +264,8 @@
>
> //11. Solar system
> // t.start();
> - m_SolarSystem->draw( ks, psky, scale );
> + if ( Options::showSolarSystem() )
> + m_SolarSystem->draw( ks, psky, scale );
> // kDebug() << QString("Solar sys : %1 ms").arg( t.elapsed() );
More information about the Kstars-devel
mailing list