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

Jason Harris kstars at 30doradus.org
Sun May 27 18:53:25 CEST 2007


SVN commit 668786 by harris:

The Find Dialog is now fully functional.  The select-by-type box works.

I had to change the way object names are stored internally to make this 
work efficiently.  Previously, object names were stored in a single 
QStringList, accessible with SkyMapComposite::objectNames().  Now, 
object names are stored in a QHash of QStringLists, indexed by the 
SkyObject::TYPE enum identifiers.

Now, SkyMapComposite::objectNames() will return the entire QHash.  I 
added SkyMapComposite::objectNames( int type ), which will return the 
QStringList containing names of the given type (e.g., 
'data()->skyComposite()->objectNames( SkyObject::GALAXY )' will return 
the names of all galaxies.

If you need the names of all objects, regardless of type, you have to do 
something like this:

QStringList allNames;
foreach ( int type, data()->skyComposite()->objectNames().keys() )
    allNames += p->data()->skyComposite()->objectNames( type );

CCMAIL: kstars-devel at kde.org



 M  +131 -88   finddialog.cpp  
 M  +18 -13    finddialog.h  
 M  +2 -0      imageviewer.h  
 M  +2 -2      kstarsactions.cpp  
 M  +1 -0      ksutils.h  
 M  +1 -1      skycomponents/asteroidscomponent.cpp  
 M  +1 -1      skycomponents/cometscomponent.cpp  
 M  +1 -1      skycomponents/constellationnamescomponent.cpp  
 M  +2 -2      skycomponents/customcatalogcomponent.cpp  
 M  +18 -18    skycomponents/deepskycomponent.cpp  
 M  +4 -4      skycomponents/listcomponent.cpp  
 M  +4 -4      skycomponents/singlecomponent.cpp  
 M  +2 -1      skycomponents/skycomponent.h  
 M  +13 -3     skycomponents/skymapcomposite.cpp  
 M  +3 -2      skycomponents/skymapcomposite.h  
 M  +2 -2      skycomponents/solarsystemsinglecomponent.cpp  
 M  +2 -2      skycomponents/starcomponent.cpp  
 M  +2 -2      tools/altvstime.cpp  
 M  +1 -1      tools/modcalcaltaz.cpp  
 M  +1 -1      tools/modcalcangdist.cpp  
 M  +1 -1      tools/modcalcapcoord.cpp  
 M  +1 -1      tools/modcalcgalcoord.cpp  
 M  +1 -1      tools/modcalcvlsr.cpp  
 M  +4 -4      tools/scriptbuilder.cpp  




More information about the Kstars-devel mailing list