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()
static const long NO_MODE_CHOICER
Style flag for base choicer visibility.
wxString stringValue_
Dummy value string for the validators.
static const wxString MODE_STRING_BIN
Choicer item string for the binary mode.
unsigned int unsignedValue() const
static const long MODE_INT
Style flag for signed integer mode availablity.
wxTextValidator * hexValidator_
Hexadecimal input validator.
static const long MODE_UNSIGNED
Style flag for unsigned integer mode availability.
static const wxString MODE_STRING_DOUBLE
Choicer item string for the double mode.
FocusTrackingTextCtrl * text_
Text field widget.
void onModeChoice(wxCommandEvent &event)
ULongWord uLongValue() const
static const long MODE_DOUBLE
Style flag for double mode availability.
static const long MODE_FLOAT
Style flag for float mode availability.
wxTextValidator * intValidator_
Signed integer input validator.
void create(const wxSize &size)
static const wxString MODE_STRING_UNSIGNED
Choicer item string for the unsigned mode.
wxTextValidator * binValidator_
Binary input validator.
double doubleValue() const
void setValue(const ULongWord value)
static const long MODE_BINARY
Style flag for binary mode availability.
static const wxString MODE_STRING_INT
Choicer item string for the integer mode.
wxTextValidator * unsignedValidator_
Unsigned integer input validator.
wxChoice * modeChoice_
Mode choicer widget.
long style_
Current style flags of the widget.
void onText(wxCommandEvent &event)
wxTextValidator * floatValidator_
Float input validator.
static const wxString MODE_STRING_HEX
Choicer item string for the hexadecimal mode.
long mode_
Current mode of the widget.
static const wxString MODE_STRING_FLOAT
Choicer item string for the float mode.
Value value_
Current value of the widget.
static const long MODE_HEXADECIMAL
Style flag for hexadecimal mode availability.
static const int CHOICER_WIDTH
Mode choicer width.
unsigned int unsignedValue