wxTst::CRAbstractTreeEvent Class Reference

Abstract tree event class with common helper methods. More...

#include <CRAbstractTreeEvent.h>

Inheritance diagram for wxTst::CRAbstractTreeEvent:

Inheritance graph
Collaboration diagram for wxTst::CRAbstractTreeEvent:

Collaboration graph

List of all members.

Public Member Functions

 CRAbstractTreeEvent (wxEvent *event)
virtual ~CRAbstractTreeEvent ()

Protected Types

typedef std::list< unsigned int > UnsignedIntList

Protected Member Functions

virtual void BuildTreeItemSiblingIdxHierarchyList ()
 Build sibling index hierarchy list to re-identify tree item.
virtual unsigned int GetSiblingIdx (wxTreeCtrl *treeCtrl, const wxTreeItemId &id)
 Calculate index of given tree item within siblings.

Protected Attributes

UnsignedIntList m_treeItemSiblingIdxHierarchyList

Detailed Description

Abstract tree event class with common helper methods.

How to identify tree items? Cache hierarchy of parents based on index of tree node in array of siblings from root to concrete tree item (leaf).

Definition at line 36 of file CRAbstractTreeEvent.h.

Member Typedef Documentation

typedef std::list< unsigned int > wxTst::CRAbstractTreeEvent::UnsignedIntList [protected]

Definition at line 73 of file CRAbstractTreeEvent.h.

Constructor & Destructor Documentation

wxTst::CRAbstractTreeEvent::CRAbstractTreeEvent ( wxEvent *  event  ) 


event event to handle

Definition at line 22 of file CRAbstractTreeEvent.cpp.

wxTst::CRAbstractTreeEvent::~CRAbstractTreeEvent (  )  [virtual]


Definition at line 29 of file CRAbstractTreeEvent.cpp.

References m_treeItemSiblingIdxHierarchyList.

Member Function Documentation

void wxTst::CRAbstractTreeEvent::BuildTreeItemSiblingIdxHierarchyList (  )  [protected, virtual]

Build sibling index hierarchy list to re-identify tree item.

Definition at line 35 of file CRAbstractTreeEvent.cpp.

References GetSiblingIdx(), wxTst::CRCapturedEvent::m_event, and m_treeItemSiblingIdxHierarchyList.

Referenced by wxTst::CRTreeSelectionChangingEvent::Process(), and wxTst::CRTreeItemRightClickEvent::Process().

unsigned int wxTst::CRAbstractTreeEvent::GetSiblingIdx ( wxTreeCtrl *  treeCtrl,
const wxTreeItemId &  id 
) [protected, virtual]

Calculate index of given tree item within siblings.

Index is 1 based in analogy to TreeCtrl class which is used by the emitted code!

treeCtrl tree control holding the tree item
id tree item to find sibling index for
index of tree item within siblings

Definition at line 53 of file CRAbstractTreeEvent.cpp.

Referenced by BuildTreeItemSiblingIdxHierarchyList().

Member Data Documentation

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

wxWidgets Logo Get wxGuiTesting at SourceForge.net. Fast, secure and Free Open Source software downloads
Generated on Tue Mar 17 17:29:30 2009 for wxGuiTesting by doxygen 1.5.5