From kstars-devel Wed Aug 22 16:22:59 2007 From: Jason Harris Date: Wed, 22 Aug 2007 16:22:59 +0000 To: kstars-devel Subject: Re: [Kstars-devel] KDE/kdeedu/kstars/kstars/skycomponents Message-Id: <200708220923.00046.jharris () 30doradus ! org> X-MARC-Message: https://marc.info/?l=kstars-devel&m=118780021028281 Whoops. This was an older change in my local copy, I should have checked to see if it had been fixed elsewhere. I'll revert it. Jason On Wednesday 22 August 2007 08:57, James Bowlin wrote: > 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 -- Jason Harris jharris@30doradus.org _______________________________________________ Kstars-devel mailing list Kstars-devel@kde.org https://mail.kde.org/mailman/listinfo/kstars-devel