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