Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

std::vector< Preferences::Entry > Inkscape::Preferences::getAllEntries ( Glib::ustring const &  path)

Get all entries from the specified directory.

Get names of all entries in the specified path.

This method will return a vector populated with preference entries from the specified directory. Subdirectories will not be represented.

pathPreference path to query
A vector containing all entries in the given directory

Definition at line 371 of file preferences.cpp.

References _getNode(), and Inkscape::XML::Node::attributeList().

Referenced by sp_style_read_from_prefs().

    std::vector<Entry> temp;
    Inkscape::XML::Node *node = _getNode(path, false);
    if (node) {
        // argh - purge this Util::List nonsense from XML classes fast
        Inkscape::Util::List<Inkscape::XML::AttributeRecord const> alist = node->attributeList();
        for (; alist; ++alist) {
            temp.push_back( Entry(path + '/' + g_quark_to_string(alist->key), static_cast<void const*>(alist->value.pointer())) );
    return temp;

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index