wxcode::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 (int column) const
void SetTextX (int column, 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
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
wxArrayLong m_text_x
wxTreeListItemCellAttr m_props_row
wxTreeListItemCellAttrHash m_props_cell

Detailed Description

Definition at line 822 of file treelistctrl.cpp.


Constructor & Destructor Documentation

wxcode::wxTreeListItem::wxTreeListItem (  )  [inline]

Definition at line 827 of file treelistctrl.cpp.

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

Definition at line 1630 of file treelistctrl.cpp.

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

wxcode::wxTreeListItem::~wxTreeListItem (  ) 

Definition at line 1660 of file treelistctrl.cpp.

References m_children, and m_props_cell.


Member Function Documentation

wxTreeItemAttr& wxcode::wxTreeListItem::Attr (  )  [inline]

Definition at line 1040 of file treelistctrl.cpp.

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

Definition at line 1029 of file treelistctrl.cpp.

void wxcode::wxTreeListItem::Collapse (  )  [inline]

Definition at line 1010 of file treelistctrl.cpp.

Referenced by wxcode::wxTreeListMainWindow::Collapse().

void wxcode::wxTreeListItem::DeleteChildren (  ) 

Definition at line 1672 of file treelistctrl.cpp.

References m_children.

void wxcode::wxTreeListItem::Expand (  )  [inline]

Definition at line 1009 of file treelistctrl.cpp.

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

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

Definition at line 1026 of file treelistctrl.cpp.

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

Definition at line 1020 of file treelistctrl.cpp.

wxArrayTreeListItems& wxcode::wxTreeListItem::GetChildren (  )  [inline]

Definition at line 840 of file treelistctrl.cpp.

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

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

Definition at line 1676 of file treelistctrl.cpp.

References m_children.

Referenced by wxcode::wxTreeListMainWindow::GetCount().

int wxcode::wxTreeListItem::GetCurrentImage (  )  const

Definition at line 1808 of file treelistctrl.cpp.

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

Referenced by wxcode::wxTreeListMainWindow::GetItemWidth().

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

Definition at line 864 of file treelistctrl.cpp.

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

Definition at line 863 of file treelistctrl.cpp.

int wxcode::wxTreeListItem::GetHeight (  )  const [inline]

Definition at line 969 of file treelistctrl.cpp.

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

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

Definition at line 851 of file treelistctrl.cpp.

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

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

Definition at line 850 of file treelistctrl.cpp.

Referenced by GetCurrentImage().

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

Definition at line 985 of file treelistctrl.cpp.

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

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

Definition at line 1687 of file treelistctrl.cpp.

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

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

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

Definition at line 843 of file treelistctrl.cpp.

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

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

int wxcode::wxTreeListItem::GetTextX ( int  column  )  const [inline]

Definition at line 975 of file treelistctrl.cpp.

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

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

Definition at line 870 of file treelistctrl.cpp.

Referenced by wxcode::wxTreeListMainWindow::OnMouse().

int wxcode::wxTreeListItem::GetWidth (  )  const [inline]

Definition at line 970 of file treelistctrl.cpp.

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

int wxcode::wxTreeListItem::GetX (  )  const [inline]

Definition at line 963 of file treelistctrl.cpp.

Referenced by wxcode::wxTreeListMainWindow::PaintLevel().

int wxcode::wxTreeListItem::GetY (  )  const [inline]

Definition at line 964 of file treelistctrl.cpp.

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

bool wxcode::wxTreeListItem::HasChildren (  )  const [inline]

Definition at line 948 of file treelistctrl.cpp.

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

bool wxcode::wxTreeListItem::HasPlus (  )  const [inline]

Definition at line 951 of file treelistctrl.cpp.

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

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

Definition at line 1701 of file treelistctrl.cpp.

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

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

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

Definition at line 1006 of file treelistctrl.cpp.

Referenced by wxcode::wxTreeListMainWindow::DoInsertItem().

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

Definition at line 953 of file treelistctrl.cpp.

bool wxcode::wxTreeListItem::IsBold (  )  const [inline]

Definition at line 952 of file treelistctrl.cpp.

bool wxcode::wxTreeListItem::IsExpanded (  )  const [inline]

Definition at line 950 of file treelistctrl.cpp.

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

bool wxcode::wxTreeListItem::IsSelected (  )  const [inline]

Definition at line 949 of file treelistctrl.cpp.

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

bool wxcode::wxTreeListItem::IsVirtual (  )  const [inline]

Definition at line 959 of file treelistctrl.cpp.

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

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

Definition at line 926 of file treelistctrl.cpp.

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

Definition at line 925 of file treelistctrl.cpp.

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

Definition at line 914 of file treelistctrl.cpp.

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

Definition at line 913 of file treelistctrl.cpp.

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

Definition at line 879 of file treelistctrl.cpp.

Referenced by wxcode::wxTreeListMainWindow::AddRoot().

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

Definition at line 972 of file treelistctrl.cpp.

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

Definition at line 1012 of file treelistctrl.cpp.

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

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

Definition at line 896 of file treelistctrl.cpp.

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

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

Definition at line 895 of file treelistctrl.cpp.

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

Definition at line 986 of file treelistctrl.cpp.

Referenced by wxcode::wxTreeListMainWindow::SetItemParent().

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

Definition at line 881 of file treelistctrl.cpp.

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

Referenced by wxcode::wxTreeListMainWindow::SetItemText().

void wxcode::wxTreeListItem::SetTextX ( int  column,
int  text_x 
) [inline]

Definition at line 983 of file treelistctrl.cpp.

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

Definition at line 940 of file treelistctrl.cpp.

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

Definition at line 973 of file treelistctrl.cpp.

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

Definition at line 966 of file treelistctrl.cpp.

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

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

Definition at line 967 of file treelistctrl.cpp.

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


Member Data Documentation

wxArrayTreeListItems wxcode::wxTreeListItem::m_children [private]

Definition at line 1068 of file treelistctrl.cpp.

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

int wxcode::wxTreeListItem::m_hasHilight [private]

Definition at line 1084 of file treelistctrl.cpp.

Referenced by wxTreeListItem().

int wxcode::wxTreeListItem::m_hasPlus [private]

Definition at line 1085 of file treelistctrl.cpp.

Referenced by wxTreeListItem().

unsigned char wxcode::wxTreeListItem::m_height [private]

Definition at line 1075 of file treelistctrl.cpp.

Referenced by wxTreeListItem().

short wxcode::wxTreeListItem::m_images[wxTreeItemIcon_Max] [private]

Definition at line 1078 of file treelistctrl.cpp.

Referenced by wxTreeListItem().

int wxcode::wxTreeListItem::m_isCollapsed [private]

Definition at line 1083 of file treelistctrl.cpp.

Referenced by wxTreeListItem().

wxTreeListMainWindow* wxcode::wxTreeListItem::m_owner [private]

Definition at line 1066 of file treelistctrl.cpp.

Referenced by wxTreeListItem().

wxTreeListItem* wxcode::wxTreeListItem::m_parent [private]

Definition at line 1069 of file treelistctrl.cpp.

Referenced by wxTreeListItem().

wxTreeListItemCellAttrHash wxcode::wxTreeListItem::m_props_cell [private]

Definition at line 1092 of file treelistctrl.cpp.

Referenced by ~wxTreeListItem().

wxTreeListItemCellAttr wxcode::wxTreeListItem::m_props_row [private]

Definition at line 1091 of file treelistctrl.cpp.

Referenced by wxTreeListItem().

wxArrayString wxcode::wxTreeListItem::m_text [private]

Definition at line 1089 of file treelistctrl.cpp.

Referenced by wxTreeListItem().

wxArrayLong wxcode::wxTreeListItem::m_text_x [private]

Definition at line 1090 of file treelistctrl.cpp.

Referenced by wxTreeListItem().

wxString* wxcode::wxTreeListItem::m_toolTip [private]

Definition at line 1080 of file treelistctrl.cpp.

short wxcode::wxTreeListItem::m_width [private]

Definition at line 1074 of file treelistctrl.cpp.

Referenced by wxTreeListItem().

wxCoord wxcode::wxTreeListItem::m_x [private]

Definition at line 1072 of file treelistctrl.cpp.

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

wxCoord wxcode::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 22 Jan 2018 for Hugintrunk by  doxygen 1.4.7