for (SettingGroupList::const_iterator it = m_groups.begin(); it != m_groups.end(); ++it)
{
- if ((*it)->MeetsRequirements() && (*it)->GetSettings(level).size() > 0)
+ if ((*it)->MeetsRequirements() && (*it)->IsVisible() && (*it)->GetSettings(level).size() > 0)
groups.push_back(*it);
}
for (SettingCategoryList::const_iterator it = m_categories.begin(); it != m_categories.end(); ++it)
{
- if ((*it)->MeetsRequirements() && (*it)->GetGroups(level).size() > 0)
+ if ((*it)->MeetsRequirements() && (*it)->IsVisible() && (*it)->GetGroups(level).size() > 0)
categories.push_back(*it);
}
const SettingList& GetSettings() const { return m_settings; }
/*!
\brief Gets the list of settings assigned to the given setting level (or
- below) belonging to the setting group.
+ below) and that meet the requirements conditions belonging to the setting
+ group.
\param level Level the settings should be assigned to
\return List of settings belonging to the setting group
const SettingGroupList& GetGroups() const { return m_groups; }
/*!
\brief Gets the list of setting groups belonging to the setting category
- that contain settings assigned to the given setting level (or below).
+ that contain settings assigned to the given setting level (or below) and
+ that meet the requirements and visibility conditions.
\param level Level the settings should be assigned to
\return List of setting groups belonging to the setting category
const SettingCategoryList& GetCategories() const { return m_categories; }
/*!
\brief Gets the list of setting categories belonging to the setting section
- that contain settings assigned to the given setting level (or below).
+ that contain settings assigned to the given setting level (or below) and
+ that meet the requirements and visibility conditions.
\param level Level the settings should be assigned to
\return List of setting categories belonging to the setting section