00001 00002 // Name: wxGuiTest/CapturedEvents/CRButtonClickEvent.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 SWCRBUTTONCLICKEVENT_H 00014 #define SWCRBUTTONCLICKEVENT_H 00015 00016 #ifdef __GNUG__ 00017 #pragma interface "CRButtonClickEvent.h" 00018 #endif 00019 00020 #include <wxGuiTest/Common.h> 00021 00022 #include "CRCapturedEvent.h" 00023 00024 namespace wxTst { 00025 00026 00030 class CRButtonClickEvent : public CRCapturedEvent 00031 { 00032 public: 00038 CRButtonClickEvent (wxEvent *event); 00039 00040 00044 virtual ~CRButtonClickEvent (); 00045 00046 00053 virtual void Process (CRCapturedEvent **pendingEvt); 00054 00055 00059 virtual void EmitCpp (); 00060 00061 protected: 00062 00063 private: 00064 wxString m_containerName; 00065 wxString m_buttonName; 00066 00067 // No copy and assignment constructor: 00068 CRButtonClickEvent (const CRButtonClickEvent &rhs); 00069 CRButtonClickEvent & operator= (const CRButtonClickEvent &rhs); 00070 }; 00071 00072 } // End namespace wxTst 00073 00074 #endif // SWCRBUTTONCLICKEVENT_H 00075