void OpenSaveFileDialog::setRecentFilders(const VectorUString& _listFolders) { mCurrentFolderField->removeAllItems(); for (VectorUString::const_iterator item = _listFolders.begin(); item != _listFolders.end(); ++ item) mCurrentFolderField->addItem((*item)); }
SettingsSector::VectorUString SettingsSector::getPropertyValueList(const MyGUI::UString& _propertyName) { VectorUString result; for (MapUString::iterator item = mProperties.begin(); item != mProperties.end(); ++ item) { size_t indexSeparator = (*item).first.find('.'); if (indexSeparator != MyGUI::UString::npos) { if ((*item).first.substr(0, indexSeparator) == _propertyName) result.push_back((*item).second); } } return result; }
void SettingsSector::setPropertyValueList(const MyGUI::UString& _propertyName, const VectorUString& _propertyValues) { clearProperty(_propertyName); for (size_t index = 0; index < _propertyValues.size(); ++ index) setPropertyValueImpl(MyGUI::utility::toString(_propertyName, '.', index), _propertyValues[index]); eventSettingsChanged(this, _propertyName); }
void RecentFilesManager::checkArray(VectorUString& _array, size_t _maxElements) { for (size_t index = 0; index < _array.size(); ++ index) _array.erase(std::remove(_array.begin() + index + 1, _array.end(), _array[index]), _array.end()); while (_array.size() > _maxElements) _array.pop_back(); }