openMSX
settings
StringSetting.cc
Go to the documentation of this file.
1
#include "
StringSetting.hh
"
2
3
namespace
openmsx
{
4
5
StringSetting::StringSetting
(
CommandController
& commandController_,
6
std::string_view name_,
static_string_view
description_,
7
std::string_view initialValue,
Save
save_)
8
:
Setting
(commandController_, name_, description_,
9
TclObject
(initialValue), save_)
10
{
11
init
();
12
}
13
14
std::string_view
StringSetting::getTypeString
()
const
15
{
16
return
"string"
;
17
}
18
19
}
// namespace openmsx
StringSetting.hh
openmsx::CommandController
Definition
CommandController.hh:19
openmsx::Setting
Definition
Setting.hh:118
openmsx::Setting::init
void init()
Definition
Setting.cc:49
openmsx::Setting::Save
Save
Definition
Setting.hh:120
openmsx::StringSetting::StringSetting
StringSetting(CommandController &commandController, std::string_view name, static_string_view description, std::string_view initialValue, Save save=Save::YES)
Definition
StringSetting.cc:5
openmsx::StringSetting::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
StringSetting.cc:14
openmsx::TclObject
Definition
TclObject.hh:29
static_string_view
static_string_view
Definition
static_string_view.hh:28
openmsx
This file implemented 3 utility functions:
Definition
Autofire.cc:11
Generated on Wed Nov 6 2024 21:13:38 for openMSX by
1.9.8