57#include <wx/checkbox.h>
59#include <wx/statbox.h>
60#include <wx/stattext.h>
61#include <wx/textctrl.h>
62#include <wx/listctrl.h>
175 const int nChoices,
const wxString * pFirstStr)
183 if(
str.Left( 1 ) ==
wxT(
'"') &&
str.Right( 1 ) ==
wxT(
'"') )
188 for(
int i = 0; i < nChoices; i++ )
190 if(
str == pFirstStr[i] )
201 if( iValue > nChoices )
279 int j=i+2+Name.length();
280 wxString terminator =
wxT(
' ');
283 terminator =
wxT(
'"');
288 terminator =
wxT(
'\'');
292 while( j<(
int)
mParams.length() &&
mParams.GetChar(j) != terminator )
305#pragma warning( push )
306#pragma warning( disable: 4100 )
321 pOptionalFlag =
nullptr;
329 return Optional( var );
336 return Optional( var );
348 bool result = *pOptionalFlag;
349 pOptionalFlag = NULL;
356 bool,
bool,
bool,
bool)
371 Arg<float>,
const wxChar *,
float,
float,
float,
float)
376 Arg<double>,
const wxChar *,
float,
float,
float,
float )
381 Arg<double>,
const wxChar *,
double,
double,
double,
double)
386 Ref<wxString>,
const wxChar *, wxString, wxString, wxString, wxString)
400#pragma warning( pop )
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
Visitor of effect or command parameters. This is a base class with lots of virtual functions that do ...
virtual void Define(Arg< bool > var, const wxChar *key, bool vdefault, bool vmin=false, bool vmax=false, bool vscl=false)
virtual SettingsVisitorBase & OptionalY(Ref< bool > var)
std::conditional_t< Const, T, T & > Arg
virtual ~SettingsVisitorBase()
virtual SettingsVisitorBase & Optional(Ref< bool > var)
virtual void DefineEnum(Arg< int > var, const wxChar *key, int vdefault, const EnumValueSymbol strings[], size_t nStrings)
std::conditional_t< Const, const T &, T & > Ref
virtual SettingsVisitorBase & OptionalN(Ref< bool > var)
bool ExchangeWithMaster(const wxString &Name) override
virtual bool TransferBool(const wxString &Name, bool &bValue, const bool &bDefault)
virtual bool TransferString(const wxString &Name, wxString &strValue, const wxString &strDefault)
virtual bool TransferDouble(const wxString &Name, double &dValue, const double &dDefault)
virtual bool TransferWrappedType(const wxString &Name, WrappedType &W)
virtual bool ExchangeWithMaster(const wxString &Name)
virtual bool TransferFloat(const wxString &Name, float &fValue, const float &fDefault)
virtual bool TransferLongLong(const wxString &Name, wxLongLong_t &iValue, const wxLongLong_t &iDefault)
virtual bool TransferInt(const wxString &Name, int &iValue, const int &iDefault)
virtual bool TransferEnum(const wxString &Name, int &iValue, const int nChoices, const wxString *pFirstStr)
Used in type conversions, this wrapper for ints, strings, doubles and enums provides conversions betw...