[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kstars-devel
Subject:    Re: [Kstars-devel] KDE/kdeedu/kstars/kstars/skycomponents
From:       James Bowlin <bowlin () mindspring ! com>
Date:       2007-08-22 15:57:22
Message-ID: 200708220957.22269.bowlin () mindspring ! com
[Download RAW message or body]

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@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() );
_______________________________________________
Kstars-devel mailing list
Kstars-devel@kde.org
https://mail.kde.org/mailman/listinfo/kstars-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic