14 #ifndef OSGUI_VALIDATOR
15 #define OSGUI_VALIDATOR
18 #include <osgUI/Export>
41 virtual State validate(std::string& ,
int& cursorpos)
const;
44 virtual State validateImplementation(std::string& ,
int& )
const;
49 virtual void fixup(std::string& )
const;
52 virtual void fixupImplementation(std::string& )
const;
74 virtual State validateImplementation(std::string& str,
int& cursorpos)
const;
76 virtual void fixupImplementation(std::string& str)
const;
93 void setDecimals(
int numDecimals) { _decimals = numDecimals; }
105 virtual State validateImplementation(std::string& str,
int& cursorpos)
const;
107 virtual void fixupImplementation(std::string& str)
const;
void setDecimals(int numDecimals)
virtual ~DoubleValidator()
void setTop(int top)
set the top value that is accepted as valid, default INT_MAX
void setTop(double top)
set the top value that is accepted as valid, default DBL_MAX
#define META_Object(library, name)
void setBottom(double bottom)
set the bottom value that is accepted as valid, default -DBL_MAX
void setBottom(int bottom)
set the bottom value that is accepted as valid, default -INT_MAX