openMSX
|
#include <SettingsConfig.hh>
Public Member Functions | |
SettingsConfig (GlobalCommandController &globalCommandController, HotKey &hotKey) | |
~SettingsConfig () | |
void | loadSetting (const FileContext &context, std::string_view filename) |
void | saveSetting (std::string filename={}) |
void | setSaveSettings (bool save) |
void | setSaveFilename (const FileContext &context, std::string_view filename) |
SettingsManager & | getSettingsManager () |
XMLElement & | getXMLElement () |
Definition at line 17 of file SettingsConfig.hh.
openmsx::SettingsConfig::SettingsConfig | ( | GlobalCommandController & | globalCommandController, |
HotKey & | hotKey | ||
) |
Definition at line 20 of file SettingsConfig.cc.
openmsx::SettingsConfig::~SettingsConfig | ( | ) |
Definition at line 32 of file SettingsConfig.cc.
References openmsx::CommandController::getCliComm(), openmsx::MSXException::getMessage(), openmsx::CliComm::printWarning(), and saveSetting().
|
inline |
Definition at line 29 of file SettingsConfig.hh.
Referenced by openmsx::GlobalCommandController::getSettingsManager(), and loadSetting().
|
inline |
Definition at line 30 of file SettingsConfig.hh.
Referenced by openmsx::Setting::init().
void openmsx::SettingsConfig::loadSetting | ( | const FileContext & | context, |
std::string_view | filename | ||
) |
Definition at line 44 of file SettingsConfig.cc.
References gl::context, openmsx::filename, getSettingsManager(), openmsx::XMLLoader::load(), openmsx::HotKey::loadBindings(), and openmsx::SettingsManager::loadSettings().
void openmsx::SettingsConfig::saveSetting | ( | std::string | filename = {} | ) |
Definition at line 60 of file SettingsConfig.cc.
References openmsx::XMLElement::dump(), openmsx::filename, openmsx::HotKey::saveBindings(), openmsx::XMLElement::setName(), openmsx::File::TRUNCATE, and openmsx::File::write().
Referenced by ~SettingsConfig().
void openmsx::SettingsConfig::setSaveFilename | ( | const FileContext & | context, |
std::string_view | filename | ||
) |
Definition at line 55 of file SettingsConfig.cc.
References gl::context, and openmsx::filename.
|
inline |
Definition at line 26 of file SettingsConfig.hh.
Referenced by openmsx::GlobalSettings::~GlobalSettings().