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  std::string_view name_, std::string_view description_,
10  std::string_view initialValue)
11  : Setting(commandController_, name_, description_,
12  TclObject(initialValue), Setting::SAVE)
13 {
14  init();
15 }
16 
17 std::string_view FilenameSetting::getTypeString() const
18 {
19  return "filename";
20 }
21 
22 void FilenameSetting::tabCompletion(std::vector<std::string>& tokens) const
23 {
25 }
26 
27 } // namespace openmsx
openmsx::FilenameSetting::tabCompletion
void tabCompletion(std::vector< std::string > &tokens) const override
Complete a partly typed value.
Definition: FilenameSetting.cc:22
openmsx::CommandController
Definition: CommandController.hh:18
openmsx::Completer::completeFileName
static void completeFileName(std::vector< std::string > &tokens, const FileContext &context, const RANGE &extra)
Definition: Completer.hh:139
openmsx::FilenameSetting::getTypeString
std::string_view getTypeString() const override
Returns a string describing the setting type (integer, string, ..) Could be used in a GUI to pick an ...
Definition: FilenameSetting.cc:17
openmsx::Setting
Definition: Setting.hh:120
FilenameSetting.hh
openmsx::Setting::init
void init()
Definition: Setting.cc:54
FileContext.hh
openmsx::TclObject
Definition: TclObject.hh:22
openmsx
This file implemented 3 utility functions:
Definition: Autofire.cc:5
Completer.hh
openmsx::systemFileContext
FileContext systemFileContext()
Definition: FileContext.cc:152
openmsx::FilenameSetting::FilenameSetting
FilenameSetting(CommandController &commandController, std::string_view name, std::string_view description, std::string_view initialValue)
Definition: FilenameSetting.cc:7