Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TextKillFocusHandler.h
Go to the documentation of this file.
1 // -*- c-basic-offset: 4 -*-
24 #ifndef _TEXTKILLFOCUSHANDLER_H
25 #define _TEXTKILLFOCUSHANDLER_H
26 
27 
34 class TextKillFocusHandler : public wxEvtHandler
35 {
36 public:
37 
42  TextKillFocusHandler(wxWindow * parent)
43  : m_parent(parent), dirty(false)
44  { }
45 
48  virtual ~TextKillFocusHandler();
49 
50  void OnKillFocus(wxFocusEvent & e);
51  void OnTextChange(wxCommandEvent & e);
52  void OnTextEnter(wxCommandEvent & e);
53 
54 private:
55  wxWindow * m_parent;
56 
57  bool dirty;
58 
59  DECLARE_EVENT_TABLE()
60 
61 };
62 
63 
64 
65 #endif // _TEXTKILLFOCUSHANDLER_H
TextKillFocusHandler(wxWindow *parent)
ctor.
void OnTextEnter(wxCommandEvent &e)
void OnKillFocus(wxFocusEvent &e)
virtual ~TextKillFocusHandler()
dtor.
Handle EVT_KILL_FOCUS and convert it to a EVT_TEXT_ENTER event.
void OnTextChange(wxCommandEvent &e)