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 833 of file treelistctrl.cpp.


Constructor & Destructor Documentation

wxTreeListItem::wxTreeListItem (  )  [inline]

Definition at line 838 of file treelistctrl.cpp.

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

Definition at line 1747 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 1777 of file treelistctrl.cpp.

References m_children, and m_props_cell.


Member Function Documentation

wxTreeItemAttr& wxTreeListItem::Attr (  )  [inline]

Definition at line 1040 of file treelistctrl.cpp.

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

Definition at line 1029 of file treelistctrl.cpp.

void wxTreeListItem::Collapse (  )  [inline]

Definition at line 1010 of file treelistctrl.cpp.

Referenced by wxTreeListMainWindow::Collapse().

void wxTreeListItem::DeleteChildren (  ) 

Definition at line 1789 of file treelistctrl.cpp.

References m_children.

void wxTreeListItem::Expand (  )  [inline]

Definition at line 1009 of file treelistctrl.cpp.

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

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

Definition at line 1026 of file treelistctrl.cpp.

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

Definition at line 1020 of file treelistctrl.cpp.

wxArrayTreeListItems& wxTreeListItem::GetChildren (  )  [inline]

Definition at line 851 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 1793 of file treelistctrl.cpp.

References m_children.

Referenced by wxTreeListMainWindow::GetCount().

int wxTreeListItem::GetCurrentImage (  )  const

Definition at line 1925 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 875 of file treelistctrl.cpp.

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

Definition at line 874 of file treelistctrl.cpp.

int wxTreeListItem::GetHeight (  )  const [inline]

Definition at line 976 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 862 of file treelistctrl.cpp.

References wxTreeListCtrl::GetMainColumn(), and NO_IMAGE.

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

Definition at line 861 of file treelistctrl.cpp.

Referenced by GetCurrentImage().

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

Definition at line 985 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 1804 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 854 of file treelistctrl.cpp.

References wxTreeListCtrl::GetItemText().

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

int wxTreeListItem::GetTextX (  )  const [inline]

Definition at line 982 of file treelistctrl.cpp.

Referenced by wxTreeListMainWindow::EditLabel().

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

Definition at line 881 of file treelistctrl.cpp.

Referenced by wxTreeListMainWindow::OnMouse().

int wxTreeListItem::GetWidth (  )  const [inline]

Definition at line 977 of file treelistctrl.cpp.

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

int wxTreeListItem::GetX (  )  const [inline]

Definition at line 970 of file treelistctrl.cpp.

Referenced by wxTreeListMainWindow::PaintLevel().

int wxTreeListItem::GetY (  )  const [inline]

Definition at line 971 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 955 of file treelistctrl.cpp.

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

bool wxTreeListItem::HasPlus (  )  const [inline]

Definition at line 958 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 1818 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 wxTreeListCtrl::HitTest(), wxTreeListMainWindow::HitTest(), wxTreeListMainWindow::OnChar(), and wxTreeListMainWindow::OnMouse().

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

Definition at line 1006 of file treelistctrl.cpp.

Referenced by wxTreeListMainWindow::DoInsertItem().

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

Definition at line 960 of file treelistctrl.cpp.

bool wxTreeListItem::IsBold (  )  const [inline]

Definition at line 959 of file treelistctrl.cpp.

Referenced by wxTreeListCtrl::IsBold().

bool wxTreeListItem::IsExpanded (  )  const [inline]

Definition at line 957 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 956 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 966 of file treelistctrl.cpp.

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

Definition at line 933 of file treelistctrl.cpp.

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

Definition at line 932 of file treelistctrl.cpp.

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

Definition at line 921 of file treelistctrl.cpp.

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

Definition at line 920 of file treelistctrl.cpp.

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

Definition at line 890 of file treelistctrl.cpp.

Referenced by wxTreeListMainWindow::AddRoot().

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

Definition at line 979 of file treelistctrl.cpp.

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

Definition at line 1012 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 903 of file treelistctrl.cpp.

References wxTreeListCtrl::GetMainColumn().

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

Definition at line 902 of file treelistctrl.cpp.

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

Definition at line 986 of file treelistctrl.cpp.

Referenced by wxTreeListMainWindow::SetItemParent().

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

Definition at line 892 of file treelistctrl.cpp.

References wxTreeListCtrl::GetColumnCount().

Referenced by wxTreeListMainWindow::SetItemText().

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

Definition at line 983 of file treelistctrl.cpp.

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

Definition at line 947 of file treelistctrl.cpp.

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

Definition at line 980 of file treelistctrl.cpp.

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

Definition at line 973 of file treelistctrl.cpp.

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

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

Definition at line 974 of file treelistctrl.cpp.

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


Member Data Documentation

wxArrayTreeListItems wxTreeListItem::m_children [private]

Definition at line 1068 of file treelistctrl.cpp.

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

int wxTreeListItem::m_hasHilight [private]

Definition at line 1085 of file treelistctrl.cpp.

Referenced by wxTreeListItem().

int wxTreeListItem::m_hasPlus [private]

Definition at line 1086 of file treelistctrl.cpp.

Referenced by wxTreeListItem().

unsigned char wxTreeListItem::m_height [private]

Definition at line 1076 of file treelistctrl.cpp.

Referenced by wxTreeListItem().

short wxTreeListItem::m_images[wxTreeItemIcon_Max] [private]

Definition at line 1079 of file treelistctrl.cpp.

Referenced by wxTreeListItem().

int wxTreeListItem::m_isCollapsed [private]

Definition at line 1084 of file treelistctrl.cpp.

Referenced by wxTreeListItem().

wxTreeListMainWindow* wxTreeListItem::m_owner [private]

Definition at line 1066 of file treelistctrl.cpp.

Referenced by wxTreeListItem().

wxTreeListItem* wxTreeListItem::m_parent [private]

Definition at line 1069 of file treelistctrl.cpp.

Referenced by wxTreeListItem().

wxTreeListItemCellAttrHash wxTreeListItem::m_props_cell [private]

Definition at line 1092 of file treelistctrl.cpp.

Referenced by ~wxTreeListItem().

wxTreeListItemCellAttr wxTreeListItem::m_props_row [private]

Definition at line 1091 of file treelistctrl.cpp.

Referenced by wxTreeListItem().

wxArrayString wxTreeListItem::m_text [private]

Definition at line 1090 of file treelistctrl.cpp.

wxCoord wxTreeListItem::m_text_x [private]

Definition at line 1074 of file treelistctrl.cpp.

Referenced by HitTest(), and wxTreeListItem().

wxString* wxTreeListItem::m_toolTip [private]

Definition at line 1081 of file treelistctrl.cpp.

short wxTreeListItem::m_width [private]

Definition at line 1075 of file treelistctrl.cpp.

Referenced by wxTreeListItem().

wxCoord wxTreeListItem::m_x [private]

Definition at line 1072 of file treelistctrl.cpp.

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

wxCoord wxTreeListItem::m_y [private]

Definition at line 1073 of file treelistctrl.cpp.

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


The documentation for this class was generated from the following file:
Generated on 28 Aug 2015 for Hugintrunk by  doxygen 1.4.7