Hugin trunk 0.1
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
wxcode::wxTreeListItem Class Reference

Public Member Functions

 wxTreeListItem ()
 
 wxTreeListItem (wxTreeListMainWindow *owner, wxTreeListItem *parent, const wxArrayString &text, int image, int selImage, wxTreeItemData *data)
 
 ~wxTreeListItem ()
 
wxArrayTreeListItemsGetChildren ()
 
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 wxStringGetToolTip () 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)
 
wxItemAttrGetAttributes (int column) const
 
wxItemAttrGetAttributes () const
 
wxItemAttrAttr (int column)
 
wxItemAttrAttr ()
 

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]
 
wxStringm_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 819 of file treelistctrl.cpp.

Constructor & Destructor Documentation

◆ wxTreeListItem() [1/2]

wxcode::wxTreeListItem::wxTreeListItem ( )
inline

Definition at line 824 of file treelistctrl.cpp.

References m_toolTip, and threshold().

◆ wxTreeListItem() [2/2]

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

◆ ~wxTreeListItem()

wxcode::wxTreeListItem::~wxTreeListItem ( )

Definition at line 1661 of file treelistctrl.cpp.

References m_children, m_props_cell, m_toolTip, and threshold().

Member Function Documentation

◆ Attr() [1/2]

wxItemAttr & wxcode::wxTreeListItem::Attr ( )
inline

◆ Attr() [2/2]

wxItemAttr & wxcode::wxTreeListItem::Attr ( int  column)
inline

Definition at line 1026 of file treelistctrl.cpp.

References m_props_cell, and threshold().

◆ Collapse()

void wxcode::wxTreeListItem::Collapse ( )
inline

Definition at line 1007 of file treelistctrl.cpp.

References m_isCollapsed.

◆ DeleteChildren()

void wxcode::wxTreeListItem::DeleteChildren ( )

Definition at line 1673 of file treelistctrl.cpp.

References m_children.

◆ Expand()

void wxcode::wxTreeListItem::Expand ( )
inline

Definition at line 1006 of file treelistctrl.cpp.

References m_isCollapsed.

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

◆ GetAttributes() [1/2]

wxItemAttr * wxcode::wxTreeListItem::GetAttributes ( ) const
inline

Definition at line 1023 of file treelistctrl.cpp.

References wxcode::wxTreeListItemCellAttr::m_attr, and m_props_row.

Referenced by GetAttributes().

◆ GetAttributes() [2/2]

wxItemAttr * wxcode::wxTreeListItem::GetAttributes ( int  column) const
inline

Definition at line 1017 of file treelistctrl.cpp.

References GetAttributes(), m_props_cell, and threshold().

◆ GetChildren()

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

◆ GetChildrenCount()

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

Definition at line 1677 of file treelistctrl.cpp.

References m_children, and threshold().

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

◆ GetCurrentImage()

int wxcode::wxTreeListItem::GetCurrentImage ( ) const

Definition at line 1809 of file treelistctrl.cpp.

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

◆ GetData() [1/2]

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

Definition at line 860 of file treelistctrl.cpp.

References wxcode::wxTreeListItemCellAttr::m_data, and m_props_row.

◆ GetData() [2/2]

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

Definition at line 861 of file treelistctrl.cpp.

References m_props_cell, and threshold().

◆ GetHeight()

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

◆ GetImage() [1/2]

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

◆ GetImage() [2/2]

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

Definition at line 847 of file treelistctrl.cpp.

References m_images, and threshold().

Referenced by GetCurrentImage().

◆ GetItemParent()

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

◆ GetSize()

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

◆ GetText()

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

◆ GetTextX()

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

Definition at line 972 of file treelistctrl.cpp.

References m_text_x, and threshold().

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

◆ GetToolTip()

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

Definition at line 867 of file treelistctrl.cpp.

References m_toolTip.

◆ GetWidth()

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

Definition at line 967 of file treelistctrl.cpp.

References m_width.

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

◆ GetX()

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

Definition at line 960 of file treelistctrl.cpp.

References m_x.

◆ GetY()

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

Definition at line 961 of file treelistctrl.cpp.

References m_y.

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

◆ HasChildren()

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

Definition at line 945 of file treelistctrl.cpp.

References m_children.

Referenced by HasPlus().

◆ HasPlus()

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

Definition at line 948 of file treelistctrl.cpp.

References HasChildren(), and m_hasPlus.

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

◆ HitTest()

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

◆ Insert()

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

Definition at line 1003 of file treelistctrl.cpp.

References m_children, and threshold().

◆ IsBold() [1/2]

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

Definition at line 949 of file treelistctrl.cpp.

References wxcode::wxTreeListItemCellAttr::m_isBold, and m_props_row.

Referenced by IsBold().

◆ IsBold() [2/2]

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

Definition at line 950 of file treelistctrl.cpp.

References IsBold(), m_props_cell, and threshold().

◆ IsExpanded()

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

Definition at line 947 of file treelistctrl.cpp.

References m_isCollapsed.

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

◆ IsSelected()

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

Definition at line 946 of file treelistctrl.cpp.

References m_hasHilight.

Referenced by GetCurrentImage().

◆ IsVirtual()

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

Definition at line 956 of file treelistctrl.cpp.

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

Referenced by GetText().

◆ SetBold() [1/2]

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

◆ SetBold() [2/2]

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

Definition at line 923 of file treelistctrl.cpp.

References m_props_cell, and threshold().

◆ SetData() [1/2]

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

Definition at line 911 of file treelistctrl.cpp.

References m_props_cell, and threshold().

◆ SetData() [2/2]

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

Definition at line 910 of file treelistctrl.cpp.

References wxcode::wxTreeListItemCellAttr::m_data, and m_props_row.

◆ SetHasPlus()

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

Definition at line 876 of file treelistctrl.cpp.

References m_hasPlus, and threshold().

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

◆ SetHeight()

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

Definition at line 969 of file treelistctrl.cpp.

References m_height.

◆ SetHilight()

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

Definition at line 1009 of file treelistctrl.cpp.

References m_hasHilight.

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

◆ SetImage() [1/2]

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

◆ SetImage() [2/2]

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

Definition at line 892 of file treelistctrl.cpp.

References m_images, and threshold().

◆ SetItemParent()

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

Definition at line 983 of file treelistctrl.cpp.

References m_parent, and threshold().

◆ SetText()

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

◆ SetTextX()

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

Definition at line 980 of file treelistctrl.cpp.

References m_text_x, and threshold().

◆ SetToolTip()

void wxcode::wxTreeListItem::SetToolTip ( const wxString tip)
inline

Definition at line 937 of file treelistctrl.cpp.

References m_toolTip, and threshold().

◆ SetWidth()

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

Definition at line 970 of file treelistctrl.cpp.

References m_width.

◆ SetX()

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

Definition at line 963 of file treelistctrl.cpp.

References m_x.

◆ SetY()

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

Definition at line 964 of file treelistctrl.cpp.

References m_y.

Member Data Documentation

◆ m_children

wxArrayTreeListItems wxcode::wxTreeListItem::m_children
private

◆ m_hasHilight

int wxcode::wxTreeListItem::m_hasHilight
private

Definition at line 1081 of file treelistctrl.cpp.

Referenced by IsSelected(), SetHilight(), and wxTreeListItem().

◆ m_hasPlus

int wxcode::wxTreeListItem::m_hasPlus
private

Definition at line 1082 of file treelistctrl.cpp.

Referenced by HasPlus(), SetHasPlus(), and wxTreeListItem().

◆ m_height

unsigned char wxcode::wxTreeListItem::m_height
private

Definition at line 1072 of file treelistctrl.cpp.

Referenced by GetHeight(), SetHeight(), and wxTreeListItem().

◆ m_images

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

Definition at line 1075 of file treelistctrl.cpp.

Referenced by GetImage(), GetImage(), SetImage(), SetImage(), and wxTreeListItem().

◆ m_isCollapsed

int wxcode::wxTreeListItem::m_isCollapsed
private

Definition at line 1080 of file treelistctrl.cpp.

Referenced by Collapse(), Expand(), IsExpanded(), and wxTreeListItem().

◆ m_owner

wxTreeListMainWindow* wxcode::wxTreeListItem::m_owner
private

Definition at line 1063 of file treelistctrl.cpp.

Referenced by GetImage(), GetText(), IsVirtual(), SetImage(), SetText(), and wxTreeListItem().

◆ m_parent

wxTreeListItem* wxcode::wxTreeListItem::m_parent
private

Definition at line 1066 of file treelistctrl.cpp.

Referenced by GetItemParent(), SetItemParent(), and wxTreeListItem().

◆ m_props_cell

wxTreeListItemCellAttrHash wxcode::wxTreeListItem::m_props_cell
private

◆ m_props_row

wxTreeListItemCellAttr wxcode::wxTreeListItem::m_props_row
private

◆ m_text

wxArrayString wxcode::wxTreeListItem::m_text
private

Definition at line 1086 of file treelistctrl.cpp.

Referenced by GetText(), SetText(), and wxTreeListItem().

◆ m_text_x

wxArrayLong wxcode::wxTreeListItem::m_text_x
private

Definition at line 1087 of file treelistctrl.cpp.

Referenced by GetTextX(), SetText(), SetTextX(), and wxTreeListItem().

◆ m_toolTip

wxString* wxcode::wxTreeListItem::m_toolTip
private

◆ m_width

short wxcode::wxTreeListItem::m_width
private

Definition at line 1071 of file treelistctrl.cpp.

Referenced by GetWidth(), SetWidth(), and wxTreeListItem().

◆ m_x

wxCoord wxcode::wxTreeListItem::m_x
private

Definition at line 1069 of file treelistctrl.cpp.

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

◆ m_y

wxCoord wxcode::wxTreeListItem::m_y
private

Definition at line 1070 of file treelistctrl.cpp.

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


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