Hugintrunk
0.1
|
Handle EVT_KILL_FOCUS and convert it to a EVT_TEXT_ENTER event. More...
#include <TextKillFocusHandler.h>
Public Member Functions | |
TextKillFocusHandler (wxWindow *parent) | |
ctor. More... | |
virtual | ~TextKillFocusHandler () |
dtor. More... | |
void | OnKillFocus (wxFocusEvent &e) |
void | OnTextChange (wxCommandEvent &e) |
void | OnTextEnter (wxCommandEvent &e) |
Private Attributes | |
wxWindow * | m_parent |
bool | dirty |
Handle EVT_KILL_FOCUS and convert it to a EVT_TEXT_ENTER event.
This is needed to be notified of changes to a wxTextCtrl when the focus changes (click somewhere else, tab movement).
Definition at line 34 of file TextKillFocusHandler.h.
|
inline |
ctor.
parent | that will receive the EVT_TEXT_ENTER event. to indicate the change |
Definition at line 42 of file TextKillFocusHandler.h.
|
virtual |
dtor.
Definition at line 39 of file TextKillFocusHandler.cpp.
void TextKillFocusHandler::OnKillFocus | ( | wxFocusEvent & | e | ) |
Definition at line 44 of file TextKillFocusHandler.cpp.
References DEBUG_DEBUG, DEBUG_TRACE, dirty, and m_parent.
void TextKillFocusHandler::OnTextChange | ( | wxCommandEvent & | e | ) |
Definition at line 74 of file TextKillFocusHandler.cpp.
References DEBUG_DEBUG, DEBUG_TRACE, and dirty.
void TextKillFocusHandler::OnTextEnter | ( | wxCommandEvent & | e | ) |
Definition at line 59 of file TextKillFocusHandler.cpp.
References DEBUG_TRACE, and dirty.
|
private |
Definition at line 57 of file TextKillFocusHandler.h.
Referenced by OnKillFocus(), OnTextChange(), and OnTextEnter().
|
private |
Definition at line 55 of file TextKillFocusHandler.h.
Referenced by OnKillFocus().