wxTreeListItem Class Reference

List of all members.

Public Member Functions

 wxTreeListItem ()
 wxTreeListItem (wxTreeListMainWindow *owner, wxTreeListItem *parent, const wxArrayString &text, int image, int selImage, wxTreeItemData *data)
 ~wxTreeListItem ()
wxArrayTreeListItems & GetChildren ()
const wxString GetText (int column) const
int GetImage (wxTreeItemIcon which=wxTreeItemIcon_Normal) const
int GetImage (int column, wxTreeItemIcon which=wxTreeItemIcon_Normal) const
wxTreeItemData * GetData () const
wxTreeItemData * GetData (int column) const
const wxString * GetToolTip () const
int GetCurrentImage () const
void SetHasPlus (bool has=true)
void SetText (int column, const wxString &text)
void SetImage (int image, wxTreeItemIcon which)
void SetImage (int column, int image, wxTreeItemIcon which)
void SetData (wxTreeItemData *data)
void SetData (int column, wxTreeItemData *data)
void SetBold (bool bold)
void SetBold (int column, bool bold)
void SetToolTip (const wxString &tip)
bool HasChildren () const
bool IsSelected () const
bool IsExpanded () const
bool HasPlus () const
bool IsBold () const
bool IsBold (int column) const
bool IsVirtual () const
int GetX () const
int GetY () const
void SetX (int x)
void SetY (int y)
int GetHeight () const
int GetWidth () const
void SetHeight (int height)
void SetWidth (int width)
int GetTextX () const
void SetTextX (int text_x)
wxTreeListItemGetItemParent () const
void SetItemParent (wxTreeListItem *parent)
size_t GetChildrenCount (bool recursively=true) const
void GetSize (int &x, int &y, const wxTreeListMainWindow *)
wxTreeListItemHitTest (const wxPoint &point, const wxTreeListMainWindow *, int &flags, int &column, int level)
void DeleteChildren ()
void Insert (wxTreeListItem *child, size_t index)
void Expand ()
void Collapse ()
void SetHilight (bool set=true)
wxTreeItemAttr * GetAttributes (int column) const
wxTreeItemAttr * GetAttributes () const
wxTreeItemAttr & Attr (int column)
wxTreeItemAttr & Attr ()

Private Attributes

wxTreeListMainWindowm_owner
wxArrayTreeListItems m_children
wxTreeListItemm_parent
wxCoord m_x
wxCoord m_y
wxCoord m_text_x
short m_width
unsigned char m_height
short m_images [wxTreeItemIcon_Max]
wxString * m_toolTip
int m_isCollapsed:1
int m_hasHilight:1
int m_hasPlus:1
wxArrayString m_text
wxTreeListItemCellAttr m_props_row
wxTreeListItemCellAttrHash m_props_cell

Detailed Description

Definition at line 829 of file treelistctrl.cpp.


Constructor & Destructor Documentation

wxTreeListItem::wxTreeListItem (  )  [inline]

Definition at line 834 of file treelistctrl.cpp.

wxTreeListItem::wxTreeListItem ( wxTreeListMainWindow owner,
wxTreeListItem parent,
const wxArrayString &  text,
int  image,
int  selImage,
wxTreeItemData *  data 
)

Definition at line 1735 of file treelistctrl.cpp.

References wxTreeListItemCellAttr::m_data, m_hasHilight, m_hasPlus, m_height, m_images, m_isCollapsed, m_owner, m_parent, m_props_row, m_text_x, m_width, m_x, m_y, and NO_IMAGE.

wxTreeListItem::~wxTreeListItem (  ) 

Definition at line 1765 of file treelistctrl.cpp.

References m_children, and m_props_cell.


Member Function Documentation

wxTreeItemAttr& wxTreeListItem::Attr (  )  [inline]

Definition at line 1036 of file treelistctrl.cpp.

wxTreeItemAttr& wxTreeListItem::Attr ( int  column  )  [inline]

Definition at line 1025 of file treelistctrl.cpp.

void wxTreeListItem::Collapse (  )  [inline]

Definition at line 1006 of file treelistctrl.cpp.

Referenced by wxTreeListMainWindow::Collapse().

void wxTreeListItem::DeleteChildren (  ) 

Definition at line 1777 of file treelistctrl.cpp.

References m_children.

void wxTreeListItem::Expand (  )  [inline]

Definition at line 1005 of file treelistctrl.cpp.

Referenced by wxTreeListMainWindow::AddRoot(), and wxTreeListMainWindow::Expand().

wxTreeItemAttr* wxTreeListItem::GetAttributes (  )  const [inline]

Definition at line 1022 of file treelistctrl.cpp.

wxTreeItemAttr* wxTreeListItem::GetAttributes ( int  column  )  const [inline]

Definition at line 1016 of file treelistctrl.cpp.

wxArrayTreeListItems& wxTreeListItem::GetChildren (  )  [inline]

Definition at line 847 of file treelistctrl.cpp.

Referenced by wxTreeListMainWindow::AppendItem(), wxTreeListMainWindow::CalculateLevel(), wxTreeListMainWindow::DeleteChildren(), wxTreeListMainWindow::DoDeleteItem(), wxTreeListMainWindow::FillArray(), wxTreeListMainWindow::InsertItem(), wxTreeListMainWindow::PaintLevel(), wxTreeListMainWindow::RefreshSelectedUnder(), wxTreeListMainWindow::SetItemParent(), wxTreeListMainWindow::TagAllChildrenUntilLast(), wxTreeListMainWindow::TagNextChildren(), and wxTreeListMainWindow::UnselectAllChildren().

size_t wxTreeListItem::GetChildrenCount ( bool  recursively = true  )  const

Definition at line 1781 of file treelistctrl.cpp.

References m_children.

Referenced by wxTreeListMainWindow::GetCount().

int wxTreeListItem::GetCurrentImage (  )  const

Definition at line 1913 of file treelistctrl.cpp.

References GetImage(), IsExpanded(), IsSelected(), and NO_IMAGE.

Referenced by wxTreeListMainWindow::GetItemWidth().

wxTreeItemData* wxTreeListItem::GetData ( int  column  )  const [inline]

Definition at line 871 of file treelistctrl.cpp.

wxTreeItemData* wxTreeListItem::GetData (  )  const [inline]

Definition at line 870 of file treelistctrl.cpp.

int wxTreeListItem::GetHeight (  )  const [inline]

Definition at line 972 of file treelistctrl.cpp.

Referenced by wxTreeListMainWindow::EditLabel(), wxTreeListMainWindow::GetLineHeight(), and wxTreeListMainWindow::OnChar().

int wxTreeListItem::GetImage ( int  column,
wxTreeItemIcon  which = wxTreeItemIcon_Normal 
) const [inline]

Definition at line 858 of file treelistctrl.cpp.

References wxTreeListMainWindow::GetMainColumn(), wxTreeListHeaderWindow::m_owner, and NO_IMAGE.

int wxTreeListItem::GetImage ( wxTreeItemIcon  which = wxTreeItemIcon_Normal  )  const [inline]

Definition at line 857 of file treelistctrl.cpp.

Referenced by GetCurrentImage().

wxTreeListItem* wxTreeListItem::GetItemParent (  )  const [inline]

Definition at line 981 of file treelistctrl.cpp.

Referenced by wxTreeListMainWindow::Delete(), wxTreeListMainWindow::DoDeleteItem(), wxTreeListMainWindow::EnsureVisible(), wxTreeListMainWindow::GetItemWidth(), wxTreeListMainWindow::SetItemParent(), and wxTreeListMainWindow::TagNextChildren().

void wxTreeListItem::GetSize ( int &  x,
int &  y,
const wxTreeListMainWindow  
)

Definition at line 1792 of file treelistctrl.cpp.

References wxTreeListMainWindow::GetLineHeight(), GetWidth(), IsExpanded(), m_children, m_x, and m_y.

Referenced by wxTreeListMainWindow::AdjustMyScrollbars(), and wxTreeListMainWindow::ScrollTo().

const wxString wxTreeListItem::GetText ( int  column  )  const [inline]

Definition at line 850 of file treelistctrl.cpp.

References wxTreeListMainWindow::GetItemText(), and wxTreeListHeaderWindow::m_owner.

Referenced by wxTreeListMainWindow::EditLabel(), wxTreeListMainWindow::GetItemWidth(), and wxTreeListMainWindow::PaintItem().

int wxTreeListItem::GetTextX (  )  const [inline]

Definition at line 978 of file treelistctrl.cpp.

Referenced by wxTreeListMainWindow::EditLabel().

const wxString* wxTreeListItem::GetToolTip (  )  const [inline]

Definition at line 877 of file treelistctrl.cpp.

Referenced by wxTreeListMainWindow::OnMouse().

int wxTreeListItem::GetWidth (  )  const [inline]

Definition at line 973 of file treelistctrl.cpp.

Referenced by wxTreeListMainWindow::EditLabel(), GetSize(), and HitTest().

int wxTreeListItem::GetX (  )  const [inline]

Definition at line 966 of file treelistctrl.cpp.

Referenced by wxTreeListMainWindow::PaintLevel().

int wxTreeListItem::GetY (  )  const [inline]

Definition at line 967 of file treelistctrl.cpp.

Referenced by wxTreeListMainWindow::EditLabel(), wxTreeListMainWindow::PaintItem(), wxTreeListMainWindow::RefreshLine(), wxTreeListMainWindow::RefreshSubtree(), wxTreeListMainWindow::ScrollTo(), and wxTreeListMainWindow::SelectItem().

bool wxTreeListItem::HasChildren (  )  const [inline]

Definition at line 951 of file treelistctrl.cpp.

Referenced by wxTreeListMainWindow::FillArray(), wxTreeListMainWindow::TagAllChildrenUntilLast(), wxTreeListMainWindow::TagNextChildren(), and wxTreeListMainWindow::UnselectAllChildren().

bool wxTreeListItem::HasPlus (  )  const [inline]

Definition at line 954 of file treelistctrl.cpp.

Referenced by wxTreeListMainWindow::Collapse(), wxTreeListMainWindow::Expand(), HitTest(), wxTreeListMainWindow::OnChar(), wxTreeListMainWindow::OnMouse(), and wxTreeListMainWindow::PaintLevel().

wxTreeListItem * wxTreeListItem::HitTest ( const wxPoint &  point,
const wxTreeListMainWindow ,
int &  flags,
int &  column,
int  level 
)

Definition at line 1806 of file treelistctrl.cpp.

References wxTreeListMainWindow::GetColumnCount(), wxTreeListHeaderWindow::GetColumnWidth(), wxTreeListCtrl::GetHeaderWindow(), wxTreeListMainWindow::GetLineHeight(), wxTreeListMainWindow::GetMainColumn(), GetWidth(), wxTreeListHeaderWindow::GetWidth(), wxTreeListMainWindow::HasButtons(), HasPlus(), wxTreeListHeaderWindow::IsColumnShown(), IsExpanded(), wxTreeListMainWindow::m_btnHeight, wxTreeListMainWindow::m_btnHeight2, wxTreeListMainWindow::m_btnWidth, wxTreeListMainWindow::m_btnWidth2, m_children, wxTreeListMainWindow::m_imgHeight, wxTreeListMainWindow::m_imgHeight2, wxTreeListMainWindow::m_imgWidth, wxTreeListMainWindow::m_owner, m_text_x, m_x, m_y, and wxTREE_HITTEST_ONITEMCOLUMN.

Referenced by wxTreeListMainWindow::HitTest(), wxTreeListMainWindow::OnChar(), and wxTreeListMainWindow::OnMouse().

void wxTreeListItem::Insert ( wxTreeListItem child,
size_t  index 
) [inline]

Definition at line 1002 of file treelistctrl.cpp.

Referenced by wxTreeListMainWindow::DoInsertItem().

bool wxTreeListItem::IsBold ( int  column  )  const [inline]

Definition at line 956 of file treelistctrl.cpp.

bool wxTreeListItem::IsBold (  )  const [inline]

Definition at line 955 of file treelistctrl.cpp.

bool wxTreeListItem::IsExpanded (  )  const [inline]

Definition at line 953 of file treelistctrl.cpp.

Referenced by wxTreeListMainWindow::CalculateLevel(), wxTreeListMainWindow::Collapse(), wxTreeListMainWindow::Expand(), GetCurrentImage(), GetSize(), HitTest(), wxTreeListMainWindow::PaintLevel(), wxTreeListMainWindow::TagAllChildrenUntilLast(), and wxTreeListMainWindow::TagNextChildren().

bool wxTreeListItem::IsSelected (  )  const [inline]

Definition at line 952 of file treelistctrl.cpp.

Referenced by wxTreeListMainWindow::FillArray(), GetCurrentImage(), wxTreeListMainWindow::OnMouse(), wxTreeListMainWindow::PaintItem(), wxTreeListMainWindow::PaintLevel(), wxTreeListMainWindow::RefreshSelectedUnder(), wxTreeListMainWindow::SelectItem(), and wxTreeListMainWindow::UnselectAllChildren().

bool wxTreeListItem::IsVirtual (  )  const [inline]

Definition at line 962 of file treelistctrl.cpp.

References wxTreeListMainWindow::IsVirtual(), and wxTreeListHeaderWindow::m_owner.

void wxTreeListItem::SetBold ( int  column,
bool  bold 
) [inline]

Definition at line 929 of file treelistctrl.cpp.

void wxTreeListItem::SetBold ( bool  bold  )  [inline]

Definition at line 928 of file treelistctrl.cpp.

void wxTreeListItem::SetData ( int  column,
wxTreeItemData *  data 
) [inline]

Definition at line 917 of file treelistctrl.cpp.

void wxTreeListItem::SetData ( wxTreeItemData *  data  )  [inline]

Definition at line 916 of file treelistctrl.cpp.

void wxTreeListItem::SetHasPlus ( bool  has = true  )  [inline]

Definition at line 886 of file treelistctrl.cpp.

Referenced by wxTreeListMainWindow::AddRoot().

void wxTreeListItem::SetHeight ( int  height  )  [inline]

Definition at line 975 of file treelistctrl.cpp.

void wxTreeListItem::SetHilight ( bool  set = true  )  [inline]

Definition at line 1008 of file treelistctrl.cpp.

Referenced by wxTreeListMainWindow::SelectItem(), wxTreeListMainWindow::TagAllChildrenUntilLast(), wxTreeListMainWindow::Unselect(), and wxTreeListMainWindow::UnselectAllChildren().

void wxTreeListItem::SetImage ( int  column,
int  image,
wxTreeItemIcon  which 
) [inline]

Definition at line 899 of file treelistctrl.cpp.

References wxTreeListMainWindow::GetMainColumn(), and wxTreeListHeaderWindow::m_owner.

void wxTreeListItem::SetImage ( int  image,
wxTreeItemIcon  which 
) [inline]

Definition at line 898 of file treelistctrl.cpp.

void wxTreeListItem::SetItemParent ( wxTreeListItem parent  )  [inline]

Definition at line 982 of file treelistctrl.cpp.

Referenced by wxTreeListMainWindow::SetItemParent().

void wxTreeListItem::SetText ( int  column,
const wxString &  text 
) [inline]

Definition at line 888 of file treelistctrl.cpp.

References wxTreeListMainWindow::GetColumnCount(), wxTreeListHeaderWindow::GetColumnCount(), and wxTreeListHeaderWindow::m_owner.

Referenced by wxTreeListMainWindow::SetItemText().

void wxTreeListItem::SetTextX ( int  text_x  )  [inline]

Definition at line 979 of file treelistctrl.cpp.

void wxTreeListItem::SetToolTip ( const wxString &  tip  )  [inline]

Definition at line 943 of file treelistctrl.cpp.

void wxTreeListItem::SetWidth ( int  width  )  [inline]

Definition at line 976 of file treelistctrl.cpp.

void wxTreeListItem::SetX ( int  x  )  [inline]

Definition at line 969 of file treelistctrl.cpp.

Referenced by wxTreeListMainWindow::CalculateLevel(), and wxTreeListMainWindow::PaintLevel().

void wxTreeListItem::SetY ( int  y  )  [inline]

Definition at line 970 of file treelistctrl.cpp.

Referenced by wxTreeListMainWindow::CalculateLevel(), and wxTreeListMainWindow::PaintLevel().


Member Data Documentation

wxArrayTreeListItems wxTreeListItem::m_children [private]

Definition at line 1064 of file treelistctrl.cpp.

Referenced by DeleteChildren(), GetChildrenCount(), GetSize(), HitTest(), and ~wxTreeListItem().

int wxTreeListItem::m_hasHilight [private]

Definition at line 1081 of file treelistctrl.cpp.

Referenced by wxTreeListItem().

int wxTreeListItem::m_hasPlus [private]

Definition at line 1082 of file treelistctrl.cpp.

Referenced by wxTreeListItem().

unsigned char wxTreeListItem::m_height [private]

Definition at line 1072 of file treelistctrl.cpp.

Referenced by wxTreeListItem().

short wxTreeListItem::m_images[wxTreeItemIcon_Max] [private]

Definition at line 1075 of file treelistctrl.cpp.

Referenced by wxTreeListItem().

int wxTreeListItem::m_isCollapsed [private]

Definition at line 1080 of file treelistctrl.cpp.

Referenced by wxTreeListItem().

wxTreeListMainWindow* wxTreeListItem::m_owner [private]

Definition at line 1062 of file treelistctrl.cpp.

Referenced by wxTreeListItem().

wxTreeListItem* wxTreeListItem::m_parent [private]

Definition at line 1065 of file treelistctrl.cpp.

Referenced by wxTreeListItem().

wxTreeListItemCellAttrHash wxTreeListItem::m_props_cell [private]

Definition at line 1088 of file treelistctrl.cpp.

Referenced by ~wxTreeListItem().

wxTreeListItemCellAttr wxTreeListItem::m_props_row [private]

Definition at line 1087 of file treelistctrl.cpp.

Referenced by wxTreeListItem().

wxArrayString wxTreeListItem::m_text [private]

Definition at line 1086 of file treelistctrl.cpp.

wxCoord wxTreeListItem::m_text_x [private]

Definition at line 1070 of file treelistctrl.cpp.

Referenced by HitTest(), and wxTreeListItem().

wxString* wxTreeListItem::m_toolTip [private]

Definition at line 1077 of file treelistctrl.cpp.

short wxTreeListItem::m_width [private]

Definition at line 1071 of file treelistctrl.cpp.

Referenced by wxTreeListItem().

wxCoord wxTreeListItem::m_x [private]

Definition at line 1068 of file treelistctrl.cpp.

Referenced by GetSize(), HitTest(), and wxTreeListItem().

wxCoord wxTreeListItem::m_y [private]

Definition at line 1069 of file treelistctrl.cpp.

Referenced by GetSize(), HitTest(), and wxTreeListItem().


The documentation for this class was generated from the following file:
Generated on 23 Oct 2014 for Hugintrunk by  doxygen 1.4.7