openMSX
Main Page
Namespaces
Classes
Files
File List
File Members
settings
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
7
FilenameSettingPolicy::FilenameSettingPolicy
()
8
{
9
}
10
11
void
FilenameSettingPolicy::tabCompletion
(std::vector<std::string>& tokens)
const
12
{
13
Completer::completeFileName
(tokens,
SystemFileContext
());
14
}
15
16
string_ref
FilenameSettingPolicy::getTypeString
()
const
17
{
18
return
"filename"
;
19
}
20
21
22
FilenameSetting::FilenameSetting
(
23
CommandController
& commandController,
24
string_ref
name,
string_ref
description,
25
string_ref
initialValue)
26
:
SettingImpl
<
FilenameSettingPolicy
>(
27
commandController, name, description, initialValue.str(),
28
Setting
::SAVE)
29
{
30
}
31
32
}
// namespace openmsx
Generated on Tue May 14 2013 20:17:59 for openMSX by
1.8.1.2