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.
TextKillFocusHandler::TextKillFocusHandler | ( | wxWindow * | parent | ) |
ctor.
parent | that will receive the EVT_TEXT_ENTER event. to indicate the change |
Definition at line 32 of file TextKillFocusHandler.cpp.
References OnKillFocus(), OnTextChange(), and OnTextEnter().
|
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.
Referenced by TextKillFocusHandler().
void TextKillFocusHandler::OnTextChange | ( | wxCommandEvent & | e | ) |
Definition at line 73 of file TextKillFocusHandler.cpp.
References DEBUG_DEBUG, DEBUG_TRACE, and dirty.
Referenced by TextKillFocusHandler().
void TextKillFocusHandler::OnTextEnter | ( | wxCommandEvent & | e | ) |
Definition at line 59 of file TextKillFocusHandler.cpp.
References DEBUG_TRACE, and dirty.
Referenced by TextKillFocusHandler().
|
private |
Definition at line 55 of file TextKillFocusHandler.h.
Referenced by OnKillFocus(), OnTextChange(), and OnTextEnter().
|
private |
Definition at line 53 of file TextKillFocusHandler.h.
Referenced by OnKillFocus().