10 :
Setting(commandController_, name, description_,
17 newValue = toString(newValue.
getBoolean(interp));
29 using namespace std::literals;
30 static constexpr std::array values = {
31 "true"sv,
"on"sv,
"yes"sv,
32 "false"sv,
"off"sv,
"no"sv,
BooleanSetting(CommandController &commandController, std::string_view name, static_string_view description, bool initialValue, Save save=Save::YES)
std::string_view getTypeString() const override
Returns a string describing the setting type (integer, string, ..) Could be used in a GUI to pick an ...
void tabCompletion(std::vector< std::string > &tokens) const override
Complete a partly typed value.
static void completeString(std::vector< std::string > &tokens, ITER begin, ITER end, bool caseSensitive=true)
void setChecker(std::function< void(TclObject &)> checkFunc_)
Set value-check-callback.
Interpreter & getInterpreter() const
bool getBoolean(Interpreter &interp) const
This file implemented 3 utility functions:
std::string toString(const BooleanInput &input)