16 [[nodiscard]] std::string_view
getTypeString()
const override;
22 void tabCompletion(std::vector<std::string>& tokens)
const override;
29 [[nodiscard]]
const BaseSetting* getSetting()
const;
bool needLoadSave() const override
Does this setting need to be loaded or saved (settings.xml).
void additionalInfo(TclObject &result) const override
Helper method for info().
std::optional< TclObject > getOptionalValue() const override
Like getValue(), but in case of error returns an empty optional instead of throwing an exception.
TclObject getDefaultValue() const override
Get the default value of this setting.
void tabCompletion(std::vector< std::string > &tokens) const override
Complete a partly typed value.
void setValueDirect(const TclObject &value) override
Similar to setValue(), but doesn't trigger Tcl traces.
const TclObject & getValue() const override
Get current value as a TclObject.
void setValue(const TclObject &value) override
Change the value of this setting to the given value.
std::string_view getTypeString() const override
Returns a string describing the setting type (integer, string, ..) Could be used in a GUI to pick an ...
std::string_view getDescription() const override
pure virtual methods ///
bool needTransfer() const override
Does this setting need to be transfered on reverse.
Contains the main loop of openMSX.
This file implemented 3 utility functions: