// $Id: FilenameSetting.cc 5770 2006-10-12 11:09:22Z m9710797 $ #include "FilenameSetting.hh" #include "Completer.hh" #include "FileContext.hh" namespace openmsx { FilenameSettingPolicy::FilenameSettingPolicy(CommandController& commandController) : StringSettingPolicy(commandController) { } void FilenameSettingPolicy::tabCompletion(std::vector& tokens) const { SystemFileContext context; Completer::completeFileName(tokens, context); } std::string FilenameSettingPolicy::getTypeString() const { return "filename"; } FilenameSetting::FilenameSetting( CommandController& commandController, const std::string& name, const std::string& description, const std::string& initialValue) : SettingImpl( commandController, name, description, initialValue, Setting::SAVE) { } } // namespace openmsx