19
19
class wxTimeSpinCtrl : public wxControl
22
wxTimeSpinCtrl() { Init(); }
23
wxTimeSpinCtrl(wxWindow *parent,
25
const wxPoint& pos = wxDefaultPosition,
26
const wxSize& size = wxDefaultSize,
27
long style = wxWANTS_CHARS, const wxString& name=wxT("wxTimeSpinCtrl"));
29
bool Create(wxWindow *parent,
31
const wxPoint& pos = wxDefaultPosition,
32
const wxSize& size = wxDefaultSize,
33
long style = wxWANTS_CHARS, const wxString& name=wxT("wxTimeSpinCtrl"));
36
bool Enable(bool enable=true);
38
void SetMax(long seconds, bool useDay=false);
39
bool SetValue(const wxTimeSpan& span);
40
bool SetTime(const wxDateTime& time);
41
wxTimeSpan GetValue();
26
wxTimeSpinCtrl(wxWindow *parent,
28
const wxPoint &pos = wxDefaultPosition,
29
const wxSize &size = wxDefaultSize,
30
long style = wxWANTS_CHARS, const wxString &name = wxT("wxTimeSpinCtrl"));
32
bool Create(wxWindow *parent,
34
const wxPoint &pos = wxDefaultPosition,
35
const wxSize &size = wxDefaultSize,
36
long style = wxWANTS_CHARS, const wxString &name = wxT("wxTimeSpinCtrl"));
39
bool Enable(bool enable = true);
41
void SetMax(long seconds, bool useDay = false);
42
bool SetValue(const wxTimeSpan &span);
43
bool SetTime(const wxDateTime &time);
44
wxTimeSpan GetValue();
46
void OnSpinUp(wxSpinEvent &ev);
47
void OnSpinDown(wxSpinEvent &ev);
48
void OnText(wxCommandEvent &ev);
49
void OnSetFocus(wxFocusEvent &ev);
50
void OnKillFocus(wxFocusEvent &ev);
51
void OnEditKey(wxKeyEvent &ev);
52
void OnNavigate(wxNavigationKeyEvent &ev);
56
void DoSpin(int diff);
57
void Highlight(int tp);
62
long spinValue, maxSpinValue;
65
wxSize DoGetBestSize() const;
66
void OnSize(wxSizeEvent& event);
68
DECLARE_DYNAMIC_CLASS(wxTimeSpinCtrl)
70
DECLARE_NO_COPY_CLASS(wxTimeSpinCtrl)
49
void OnSpinUp(wxSpinEvent &ev);
50
void OnSpinDown(wxSpinEvent &ev);
51
void OnText(wxCommandEvent &ev);
52
void OnSetFocus(wxFocusEvent &ev);
53
void OnKillFocus(wxFocusEvent &ev);
54
void OnEditKey(wxKeyEvent &ev);
55
void OnNavigate(wxNavigationKeyEvent &ev);
59
void DoSpin(int diff);
60
void Highlight(int tp);
65
long spinValue, maxSpinValue;
68
wxSize DoGetBestSize() const;
69
void OnSize(wxSizeEvent &event);
71
DECLARE_DYNAMIC_CLASS(wxTimeSpinCtrl)
73
DECLARE_NO_COPY_CLASS(wxTimeSpinCtrl)
75
78
class wxTimeSpinCtrl : public wxSpinCtrl //wxControl
79
wxTimeSpinCtrl(wxWindow *parent,
81
const wxDateTime& date = wxDefaultDateTime,
82
const wxPoint& pos = wxDefaultPosition,
83
const wxSize& size = wxDefaultSize,
84
long style = wxWANTS_CHARS, const wxString& name=wxT("wxTimeSpinCtrl"));
89
bool Create(wxWindow *parent,
91
const wxDateTime& date,
95
const wxString& name);
97
bool SetValue(const wxTimeSpan& span);
98
wxTimeSpan GetValue();
100
virtual bool Enable(bool enable = true);
101
virtual bool Show(bool show = true);
102
virtual void DoMoveWindow(int x, int y, int width, int height);
82
wxTimeSpinCtrl(wxWindow *parent,
84
const wxDateTime &date = wxDefaultDateTime,
85
const wxPoint &pos = wxDefaultPosition,
86
const wxSize &size = wxDefaultSize,
87
long style = wxWANTS_CHARS, const wxString &name = wxT("wxTimeSpinCtrl"));
92
bool Create(wxWindow *parent,
94
const wxDateTime &date,
98
const wxString &name);
100
bool SetValue(const wxTimeSpan &span);
101
wxTimeSpan GetValue();
103
virtual bool Enable(bool enable = true);
104
virtual bool Show(bool show = true);
105
virtual void DoMoveWindow(int x, int y, int width, int height);
110
bool m_dropped, m_processing;
113
void DropDown(bool down=true);
115
void OnEditKey(wxKeyEvent & event);
116
void OnCalKey(wxKeyEvent & event);
117
void OnClick(wxMouseEvent &ev);
118
void OnSelChange(wxCalendarEvent &ev);
119
void OnActivate(wxActivateEvent &ev);
120
void OnSetFocus(wxFocusEvent &ev);
121
void OnKillFocus(wxFocusEvent &ev);
123
DECLARE_DYNAMIC_CLASS(wxTimeSpinCtrl)
124
DECLARE_EVENT_TABLE()
125
DECLARE_NO_COPY_CLASS(wxTimeSpinCtrl)
113
bool m_dropped, m_processing;
116
void DropDown(bool down = true);
118
void OnEditKey(wxKeyEvent &event);
119
void OnCalKey(wxKeyEvent &event);
120
void OnClick(wxMouseEvent &ev);
121
void OnSelChange(wxCalendarEvent &ev);
122
void OnActivate(wxActivateEvent &ev);
123
void OnSetFocus(wxFocusEvent &ev);
124
void OnKillFocus(wxFocusEvent &ev);
126
DECLARE_DYNAMIC_CLASS(wxTimeSpinCtrl)
127
DECLARE_EVENT_TABLE()
128
DECLARE_NO_COPY_CLASS(wxTimeSpinCtrl)