19 #ifndef PAWS_SPINBOX_HEADER 20 #define PAWS_SPINBOX_HEADER 25 #include <csutil/timer.h> 32 #define SPIN_INTERVAL 100 33 #define SPIN_START_DELAY 500 39 struct SpinBoxTimerEvent;
63 virtual bool Setup(iDocumentNode* node);
64 virtual bool ManualSetup(csString &value,
float Min,
float Max,
float Inc, csString &pos);
65 virtual void SetRange(
float Min,
float Max,
float Inc);
75 virtual bool Perform(iTimerEvent* ev);
79 csRef<iEventTimer> globalTimer;
80 SpinBoxTimerEvent* timerEvent;
A combination widget that has up and down arrows and a text label.
virtual bool ManualSetup(csString &value, float Min, float Max, float Inc, csString &pos)
virtual void SetRange(float Min, float Max, float Inc)
virtual void OnLostFocus()
Sets hasFocus false and notifys parent.
virtual void SetValue(float value)
virtual bool Setup(iDocumentNode *node)
Setup this widget.
virtual bool Perform(iTimerEvent *ev)
virtual bool OnButtonPressed(int mouseButton, int keyModifier, pawsWidget *widget)
Called whenever a button is pressed.
CREATE_PAWS_FACTORY(pawsSpinBox)
virtual bool OnButtonReleased(int button, int keyModifier, pawsWidget *widget)
Called whenever a button is released.