-/* there is no generic base class for this control because it's imlpemented
- very differently under MSW and other platforms
+class WXDLLIMPEXP_CORE wxSpinCtrlBase : public wxControl
+{
+public:
+ wxSpinCtrlBase() {}
+
+ // accessor functions that derived classes are expected to have
+ // T GetValue() const
+ // T GetMin() const
+ // T GetMax() const
+ // T GetIncrement() const
+ virtual bool GetSnapToTicks() const = 0;
+ // unsigned GetDigits() const - wxSpinCtrlDouble only
+
+ // operation functions that derived classes are expected to have
+ virtual void SetValue(const wxString& value) = 0;
+ // void SetValue(T val)
+ // void SetRange(T minVal, T maxVal)
+ // void SetIncrement(T inc)
+ virtual void SetSnapToTicks(bool snap_to_ticks) = 0;
+ // void SetDigits(unsigned digits) - wxSpinCtrlDouble only
+
+ // The base for numbers display, e.g. 10 or 16.
+ virtual int GetBase() const = 0;
+ virtual bool SetBase(int base) = 0;