11#include <codeanalysis\warnings.h>
13#pragma warning(disable: WXWIDGETS_CODE_ANALYSIS_WARNINGS)
26 wxNUM_VAL_HEX_LOWERCASE = 0x1000,
33#pragma warning (disable:4275)
57 bool IsMinusOk(
const wxString& val,
int pos)
const;
62 static bool FromString(
const wxString& s,
long *value);
64#ifdef wxHAS_LONG_LONG_T_DIFFERENT_FROM_LONG
68 static bool FromString(
const wxString &s, wxLongLong_t *value);
74 wxString ToString(LongestValueType value)
const;
78 void DoSetWidth(
unsigned int width) { m_width = width; }
83 virtual bool IsCharOk(
const wxString& val,
int pos, wxChar ch)
const;
99class wxHexValidator :
public wxPrivate::wxNumValidator<wxHexValidatorBase, T>
102 typedef wxPrivate::wxNumValidator<wxHexValidatorBase, T>
Base;
107 wxHexValidator(T *value = NULL,
int style = wxNUM_VAL_DEFAULT,
unsigned int width = 0) :
Base(value, style)
109 this->DoSetWidth(width);
110 this->DoSetMin(std::numeric_limits<T>::min());
111 this->DoSetMax(std::numeric_limits<T>::max());
Base class for hexadecimal validator.
Definition valhex.h:40
Validator for hexadecimal entries.
Definition valhex.h:100
wxHexValidator(T *value=NULL, int style=wxNUM_VAL_DEFAULT, unsigned int width=0)
Constructs new hexadecimal validator.
Definition valhex.h:107
wxPrivate::wxNumValidator< wxHexValidatorBase, T > Base
Base class type.
Definition valhex.h:102
virtual wxObject * Clone() const
Clones this validator.
Definition valhex.h:117
wxHexValidatorStyle
Bit masks used for hexadecimal validator styles.
Definition valhex.h:24
#define WXEXTEND_API
Public function calling convention.
Definition common.h:56