Go to the documentation of this file.
33 #ifndef TTA_NUMBER_CONTROL_HH
34 #define TTA_NUMBER_CONTROL_HH
64 const wxPoint& pos = wxDefaultPosition,
65 const wxSize& size = wxDefaultSize,
69 const wxString& name = _T(
"NumberControl"));
88 void setValue(
const unsigned int value);
109 void create(
const wxSize& size);
112 void onText(wxCommandEvent& event);
171 DECLARE_EVENT_TABLE()
unsigned int unsignedValue() const
Value value_
Current value of the widget.
static const wxString MODE_STRING_DOUBLE
Choicer item string for the double mode.
static const int CHOICER_WIDTH
Mode choicer width.
static const wxString MODE_STRING_INT
Choicer item string for the integer mode.
wxTextValidator * floatValidator_
Float input validator.
static const wxString MODE_STRING_HEX
Choicer item string for the hexadecimal mode.
void setValue(const ULongWord value)
NumberControl(wxWindow *parent, wxWindowID id=-1, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=(MODE_HEXADECIMAL|MODE_BINARY|MODE_INT|MODE_UNSIGNED|MODE_FLOAT), int initial=0, const wxString &name=_T("NumberControl"))
long style_
Current style flags of the widget.
void onText(wxCommandEvent &event)
unsigned int unsignedValue
double doubleValue() const
ULongWord uLongValue() const
static const wxString MODE_STRING_UNSIGNED
Choicer item string for the unsigned mode.
FocusTrackingTextCtrl * text_
Text field widget.
static const long MODE_INT
Style flag for signed integer mode availablity.
static const wxString MODE_STRING_FLOAT
Choicer item string for the float mode.
static const long NO_MODE_CHOICER
Style flag for base choicer visibility.
static const long MODE_UNSIGNED
Style flag for unsigned integer mode availability.
wxTextValidator * hexValidator_
Hexadecimal input validator.
static const wxString MODE_STRING_BIN
Choicer item string for the binary mode.
static const long MODE_HEXADECIMAL
Style flag for hexadecimal mode availability.
wxChoice * modeChoice_
Mode choicer widget.
long mode_
Current mode of the widget.
static const long MODE_BINARY
Style flag for binary mode availability.
wxTextValidator * unsignedValidator_
Unsigned integer input validator.
wxTextValidator * intValidator_
Signed integer input validator.
wxTextValidator * binValidator_
Binary input validator.
static const long MODE_FLOAT
Style flag for float mode availability.
wxString stringValue_
Dummy value string for the validators.
void create(const wxSize &size)
static const long MODE_DOUBLE
Style flag for double mode availability.
void onModeChoice(wxCommandEvent &event)