00001 00002 // Name: wxGuiTest/CapturedEvents/CRAbstractTreeEvent.h 00003 // Author: Reinhold Fuereder 00004 // Created: 2004 00005 // Copyright: (c) 2005 Reinhold Fuereder 00006 // Licence: wxWindows licence 00007 // 00008 // $Id$ 00010 00011 #ifndef SWCRABSTRACTTREEEVENT_H 00012 #define SWCRABSTRACTTREEEVENT_H 00013 00014 #ifdef __GNUG__ 00015 #pragma interface "CRAbstractTreeEvent.h" 00016 #endif 00017 00018 #include <wxGuiTest/Common.h> 00019 00020 #include <list> 00021 00022 #include "CRCapturedEvent.h" 00023 00024 class wxTreeCtrl; 00025 class wxTreeItemId; 00026 00027 namespace wxTst { 00028 00029 00036 class CRAbstractTreeEvent : public CRCapturedEvent 00037 { 00038 public: 00044 CRAbstractTreeEvent (wxEvent *event); 00045 00046 00050 virtual ~CRAbstractTreeEvent (); 00051 00052 protected: 00056 virtual void BuildTreeItemSiblingIdxHierarchyList (); 00057 00058 00069 virtual unsigned int GetSiblingIdx (wxTreeCtrl *treeCtrl, 00070 const wxTreeItemId &id); 00071 00072 protected: 00073 typedef std::list < unsigned int > UnsignedIntList; 00074 UnsignedIntList m_treeItemSiblingIdxHierarchyList; 00075 00076 private: 00077 00078 private: 00079 // No copy and assignment constructor: 00080 CRAbstractTreeEvent (const CRAbstractTreeEvent &rhs); 00081 CRAbstractTreeEvent & operator= (const CRAbstractTreeEvent &rhs); 00082 }; 00083 00084 } // End namespace wxTst 00085 00086 #endif // SWCRABSTRACTTREEEVENT_H 00087