Logo Search packages:      
Sourcecode: inkscape version File versions

void SPSelection::setReprList ( GSList const *  reprs  ) 

Clears the selection and selects the specified objects.

Parameters:
repr a list of xml nodes for the items to select

Definition at line 211 of file selection.cpp.

References _add(), _clear(), _emitChanged(), and _objectForRepr().

                                                {
    _clear();

    for ( GSList const *iter = list ; iter != NULL ; iter = iter->next ) {
        SPObject *obj=_objectForRepr(reinterpret_cast<SPRepr *>(iter->data));
        if (obj) {
            _add(obj);
        }
    }

    _emitChanged();
}


Generated by  Doxygen 1.6.0   Back to index