7 int initialValue,
int minValue_,
int maxValue_,
9 :
Setting(commandController_, name_, description_,
16 int val = newValue.
getInt(interp);
17 newValue = std::clamp(val, minValue, maxValue);
void additionalInfo(TclObject &result) const override
Helper method for info().
std::string_view getTypeString() const override
Returns a string describing the setting type (integer, string, ..) Could be used in a GUI to pick an ...
IntegerSetting(CommandController &commandController, std::string_view name, static_string_view description, int initialValue, int minValue, int maxValue, Save save=Save::YES)
void setChecker(std::function< void(TclObject &)> checkFunc_)
Set value-check-callback.
Interpreter & getInterpreter() const
void setValue(const TclObject &newValue) final
Change the value of this setting to the given value.
void addListElement(const T &t)
int getInt(Interpreter &interp) const
This file implemented 3 utility functions:
TclObject makeTclList(Args &&... args)