#include <CRAbstractTreeEvent.h>
Public Member Functions | |
CRAbstractTreeEvent (wxEvent *event) | |
Constructor. | |
virtual | ~CRAbstractTreeEvent () |
Destructor. | |
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 |
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.
typedef std::list< unsigned int > wxTst::CRAbstractTreeEvent::UnsignedIntList [protected] |
Definition at line 73 of file CRAbstractTreeEvent.h.
wxTst::CRAbstractTreeEvent::CRAbstractTreeEvent | ( | wxEvent * | event | ) |
Constructor.
event | event to handle |
Definition at line 22 of file CRAbstractTreeEvent.cpp.
wxTst::CRAbstractTreeEvent::~CRAbstractTreeEvent | ( | ) | [virtual] |
Destructor.
Definition at line 29 of file CRAbstractTreeEvent.cpp.
References m_treeItemSiblingIdxHierarchyList.
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 |
Definition at line 53 of file CRAbstractTreeEvent.cpp.
Referenced by BuildTreeItemSiblingIdxHierarchyList().
Definition at line 74 of file CRAbstractTreeEvent.h.
Referenced by BuildTreeItemSiblingIdxHierarchyList(), wxTst::CRTreeSelectionChangingEvent::EmitCpp(), wxTst::CRTreeItemRightClickEvent::EmitCpp(), and ~CRAbstractTreeEvent().