SettingList CSettingGroup::GetSettings(SettingLevel level) const { SettingList settings; for (SettingList::const_iterator it = m_settings.begin(); it != m_settings.end(); it++) { if ((*it)->GetLevel() <= level && (*it)->IsVisible()) settings.push_back(*it); } return settings; }
SettingList CSettingGroup::GetSettings(SettingLevel level) const { SettingList settings; for (SettingList::const_iterator it = m_settings.begin(); it != m_settings.end(); ++it) { if ((*it)->GetLevel() <= level && (*it)->MeetsRequirements()) settings.push_back(*it); } return settings; }