Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
TextKillFocusHandler Class Reference

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

#include <TextKillFocusHandler.h>

Inheritance diagram for TextKillFocusHandler:
Inheritance graph

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
 

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
parentthat will receive the EVT_TEXT_ENTER event. to indicate the change

Definition at line 42 of file TextKillFocusHandler.h.

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(), and OnTextEnter().

wxWindow* TextKillFocusHandler::m_parent
private

Definition at line 55 of file TextKillFocusHandler.h.

Referenced by OnKillFocus().


The documentation for this class was generated from the following files: