00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef __EvtValueChanged_
00015 #define __EvtValueChanged_
00016 #include <wx/event.h>
00017
00019
00023 class ValueChangedEvent: public wxEvent
00024 {
00025 public:
00027 ValueChangedEvent(wxEventType commandType = wxEVT_NULL);
00029 ValueChangedEvent *Clone() const;
00031 double GetValue();
00033 bool IsValid();
00035 double value;
00037 bool valid;
00038 private:
00039
00040 };
00041
00043 typedef void (wxEvtHandler::*ValueChangedFunction)(ValueChangedEvent&);
00044
00046
00049 BEGIN_DECLARE_EVENT_TYPES()
00050 DECLARE_EVENT_TYPE(EVT_VALUE_CHANGED,-1)
00051 END_DECLARE_EVENT_TYPES()
00052
00053
00054
00055 #define EVT_VALUE_CHANGED(fn) \
00056 DECLARE_EVENT_TABLE_ENTRY( EVT_VALUE_CHANGED, -1, -1, \
00057 (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) (wxNotifyEventFunction) \
00058 wxStaticCastEvent(ValueChangedFunction, & fn ), (wxObject *) NULL ),
00059
00060 #endif
00061
00062
00063
00064
00065
00066
00067
00068