openMSX
FilenameSetting.cc
Go to the documentation of this file.
1#include "FilenameSetting.hh"
2#include "Completer.hh"
3#include "FileContext.hh"
4
5namespace openmsx {
6
8 CommandController& commandController_,
9 std::string_view name_, static_string_view description_,
10 std::string_view initialValue)
11 : Setting(commandController_, name_, description_,
12 TclObject(initialValue), Setting::Save::YES)
13{
14 init();
15}
16
17std::string_view FilenameSetting::getTypeString() const
18{
19 return "filename";
20}
21
22void FilenameSetting::tabCompletion(std::vector<std::string>& tokens) const
23{
25}
26
27} // namespace openmsx
static void completeFileName(std::vector< std::string > &tokens, const FileContext &context, const RANGE &extra)
Definition Completer.hh:152
FilenameSetting(CommandController &commandController, std::string_view name, static_string_view description, std::string_view initialValue)
void tabCompletion(std::vector< std::string > &tokens) const override
Complete a partly typed value.
std::string_view getTypeString() const override
Returns a string describing the setting type (integer, string, ..) Could be used in a GUI to pick an ...
static_string_view
This file implemented 3 utility functions:
Definition Autofire.cc:11
const FileContext & systemFileContext()