15#include <wx/control.h>
37 wxWindow* parent, wxWindowID winid = wxID_ANY,
ValueType value = 0.0,
39 bool allowFractional =
false,
const wxPoint& pos = wxDefaultPosition,
42 void SetValue(
double value);
43 double GetValue()
const;
45 void SetMinValue(
double value);
46 double GetMinValue()
const;
48 void SetMaxValue(
double value);
49 double GetMaxValue()
const;
51 void SetStep(
double step);
52 double GetStep()
const;
54 void SetFractionalAllowed(
bool allow);
55 bool GetFractionalAllowed();
64 void CommitTextControlValue();
65 void OnCharHook(wxKeyEvent& evt);
67 void SetValue(
double value,
bool silent);
69 void DoSteps(
double direction);
71 void NotifyValueChanged();
73 ValueType mValue { std::numeric_limits<ValueType>::quiet_NaN() };
74 ValueType mMinValue { -std::numeric_limits<ValueType>::infinity() };
75 ValueType mMaxValue { std::numeric_limits<ValueType>::infinity() };
81 wxTextCtrl* mTextControl {
nullptr };
83 wxSpinButton* mSpinButton {
nullptr };
85 wxButton* mUpButton {
nullptr };
86 wxButton* mDownButton {
nullptr };
89#if wxUSE_ACCESSIBILITY
92 SpinControlAx* mWindowAccessible {
nullptr };
A listener notified of changes in preferences.
virtual void UpdatePrefs()=0
Holds a msgid for the translation catalog; may also bind format arguments.