00001 00002 // Name: wxGuiTest/CapturedEvents/CRTextUpdateEvent.h 00003 // Author: Reinhold Fuereder 00004 // Created: 2004 00005 // Copyright: (c) 2005 Reinhold Fuereder 00006 // Modifications: John Ralls, 2007-2008 00007 // Modifications Copyright: (c) 2008 John Ralls 00008 // Licence: wxWindows licence 00009 // 00010 // $Id$ 00012 00013 #ifndef SWCRTEXTUPDATEEVENT_H 00014 #define SWCRTEXTUPDATEEVENT_H 00015 00016 #ifdef __GNUG__ 00017 #pragma interface "CRTextUpdateEvent.h" 00018 #endif 00019 00020 #include <wxGuiTest/Common.h> 00021 00022 #include "CRCapturedEvent.h" 00023 00024 namespace wxTst { 00025 00026 00030 class CRTextUpdateEvent : public CRCapturedEvent 00031 { 00032 public: 00038 CRTextUpdateEvent (wxEvent *event); 00039 00040 00044 virtual ~CRTextUpdateEvent (); 00045 00046 00052 virtual bool IsPending () const; 00053 00054 00060 virtual bool IsIrrelevant () const; 00061 00062 00069 virtual void Process (CRCapturedEvent **pendingEvt); 00070 00071 00075 virtual void EmitCpp (); 00076 00077 protected: 00085 virtual wxString GetEscaped (const wxString &str) const; 00086 00087 private: 00088 wxString m_containerName; 00089 wxString m_textCtrlName; 00090 wxString m_textCtrlValue; 00091 bool m_isIrrelevant; 00092 00093 // No copy and assignment constructor: 00094 CRTextUpdateEvent (const CRTextUpdateEvent &rhs); 00095 CRTextUpdateEvent & operator= (const CRTextUpdateEvent &rhs); 00096 }; 00097 00098 } // End namespace wxTst 00099 00100 #endif // SWCRTEXTUPDATEEVENT_H 00101