Skip to content
  • Jason Harris's avatar
    The Find Dialog is now fully functional. The select-by-type box works. · c74f849a
    Jason Harris authored
    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@kde.org
    
    
    svn path=/trunk/KDE/kdeedu/kstars/; revision=668786
    c74f849a