TextKillFocusHandler Class Reference

Handle EVT_KILL_FOCUS and convert it to a EVT_TEXT_ENTER event. More...

#include <TextKillFocusHandler.h>

List of all members.

Public Member Functions

 TextKillFocusHandler (wxWindow *parent)
 ctor.
virtual ~TextKillFocusHandler ()
 dtor.
void OnKillFocus (wxFocusEvent &e)
void OnTextChange (wxCommandEvent &e)
void OnTextEnter (wxCommandEvent &e)

Private Attributes

wxWindow * m_parent
bool dirty


Detailed Description

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.


Constructor & Destructor Documentation

TextKillFocusHandler::TextKillFocusHandler wxWindow *  parent  )  [inline]
 

ctor.

Parameters:
parent that will receive the EVT_TEXT_ENTER event. to indicate the change

Definition at line 42 of file TextKillFocusHandler.h.

References dirty, and m_parent.

TextKillFocusHandler::~TextKillFocusHandler  )  [virtual]
 

dtor.

Definition at line 39 of file TextKillFocusHandler.cpp.


Member Function Documentation

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.


Member Data Documentation

bool TextKillFocusHandler::dirty [private]
 

Definition at line 57 of file TextKillFocusHandler.h.

Referenced by OnKillFocus(), OnTextChange(), OnTextEnter(), and TextKillFocusHandler().

wxWindow* TextKillFocusHandler::m_parent [private]
 

Definition at line 55 of file TextKillFocusHandler.h.

Referenced by OnKillFocus(), and TextKillFocusHandler().


The documentation for this class was generated from the following files:
Generated on Mon Sep 22 01:25:55 2014 for Hugintrunk by  doxygen 1.3.9.1