Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 ()
 
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)
 
wxItemAttr * GetAttributes (int column) const
 
wxItemAttr * GetAttributes () const
 
wxItemAttr & Attr (int column)
 
wxItemAttr & 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 814 of file treelistctrl.cpp.

Constructor & Destructor Documentation

wxcode::wxTreeListItem::wxTreeListItem ( )
inline

Definition at line 819 of file treelistctrl.cpp.

References m_toolTip.

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

Definition at line 1656 of file treelistctrl.cpp.

References m_children, m_props_cell, and m_toolTip.

Member Function Documentation

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

Definition at line 1002 of file treelistctrl.cpp.

References m_isCollapsed.

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

void wxcode::wxTreeListItem::DeleteChildren ( )

Definition at line 1668 of file treelistctrl.cpp.

References m_children.

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

Definition at line 1018 of file treelistctrl.cpp.

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

Referenced by GetAttributes().

wxArrayTreeListItems& wxcode::wxTreeListItem::GetChildren ( )
inline
size_t wxcode::wxTreeListItem::GetChildrenCount ( bool  recursively = true) const

Definition at line 1672 of file treelistctrl.cpp.

References m_children.

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

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

Definition at line 855 of file treelistctrl.cpp.

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

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

Definition at line 856 of file treelistctrl.cpp.

References m_props_cell.

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

Definition at line 842 of file treelistctrl.cpp.

References m_images.

Referenced by GetCurrentImage(), and wxcode::wxTreeListMainWindow::PaintItem().

int wxcode::wxTreeListItem::GetImage ( int  column,
wxTreeItemIcon  which = wxTreeItemIcon_Normal 
) const
inline
wxTreeListItem* wxcode::wxTreeListItem::GetItemParent ( ) const
inline
void wxcode::wxTreeListItem::GetSize ( int &  x,
int &  y,
const wxTreeListMainWindow theButton 
)
const wxString wxcode::wxTreeListItem::GetText ( int  column) const
inline
int wxcode::wxTreeListItem::GetTextX ( int  column) const
inline

Definition at line 967 of file treelistctrl.cpp.

References m_text_x.

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

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

Definition at line 862 of file treelistctrl.cpp.

References m_toolTip.

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

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

Definition at line 962 of file treelistctrl.cpp.

References m_width.

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

int wxcode::wxTreeListItem::GetX ( ) const
inline
int wxcode::wxTreeListItem::GetY ( ) const
inline
bool wxcode::wxTreeListItem::HasChildren ( ) const
inline
bool wxcode::wxTreeListItem::HasPlus ( ) const
inline
wxTreeListItem * wxcode::wxTreeListItem::HitTest ( const wxPoint &  point,
const wxTreeListMainWindow theCtrl,
int &  flags,
int &  column,
int  level 
)
void wxcode::wxTreeListItem::Insert ( wxTreeListItem child,
size_t  index 
)
inline

Definition at line 998 of file treelistctrl.cpp.

References m_children.

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

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

Definition at line 944 of file treelistctrl.cpp.

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

Referenced by IsBold().

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

Definition at line 945 of file treelistctrl.cpp.

References IsBold(), and m_props_cell.

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

Definition at line 951 of file treelistctrl.cpp.

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

Referenced by GetText().

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

Definition at line 918 of file treelistctrl.cpp.

References m_props_cell.

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

Definition at line 905 of file treelistctrl.cpp.

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

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

Definition at line 906 of file treelistctrl.cpp.

References data, and m_props_cell.

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

Definition at line 964 of file treelistctrl.cpp.

References m_height.

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

void wxcode::wxTreeListItem::SetHilight ( bool  set = true)
inline
void wxcode::wxTreeListItem::SetImage ( int  image,
wxTreeItemIcon  which 
)
inline

Definition at line 887 of file treelistctrl.cpp.

References m_images.

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

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

Definition at line 978 of file treelistctrl.cpp.

References m_parent.

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

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

Definition at line 975 of file treelistctrl.cpp.

References m_text_x.

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

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

Definition at line 932 of file treelistctrl.cpp.

References m_toolTip.

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

Definition at line 965 of file treelistctrl.cpp.

References m_width.

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

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

Member Data Documentation

wxArrayTreeListItems wxcode::wxTreeListItem::m_children
private
int wxcode::wxTreeListItem::m_hasHilight
private

Definition at line 1076 of file treelistctrl.cpp.

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

int wxcode::wxTreeListItem::m_hasPlus
private

Definition at line 1077 of file treelistctrl.cpp.

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

unsigned char wxcode::wxTreeListItem::m_height
private

Definition at line 1067 of file treelistctrl.cpp.

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

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

Definition at line 1070 of file treelistctrl.cpp.

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

int wxcode::wxTreeListItem::m_isCollapsed
private

Definition at line 1075 of file treelistctrl.cpp.

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

wxTreeListMainWindow* wxcode::wxTreeListItem::m_owner
private

Definition at line 1058 of file treelistctrl.cpp.

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

wxTreeListItem* wxcode::wxTreeListItem::m_parent
private

Definition at line 1061 of file treelistctrl.cpp.

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

wxTreeListItemCellAttrHash wxcode::wxTreeListItem::m_props_cell
private
wxTreeListItemCellAttr wxcode::wxTreeListItem::m_props_row
private
wxArrayString wxcode::wxTreeListItem::m_text
private

Definition at line 1081 of file treelistctrl.cpp.

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

wxArrayLong wxcode::wxTreeListItem::m_text_x
private

Definition at line 1082 of file treelistctrl.cpp.

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

wxString* wxcode::wxTreeListItem::m_toolTip
private

Definition at line 1072 of file treelistctrl.cpp.

Referenced by GetToolTip(), SetToolTip(), wxTreeListItem(), and ~wxTreeListItem().

short wxcode::wxTreeListItem::m_width
private

Definition at line 1066 of file treelistctrl.cpp.

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

wxCoord wxcode::wxTreeListItem::m_x
private

Definition at line 1064 of file treelistctrl.cpp.

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

wxCoord wxcode::wxTreeListItem::m_y
private

Definition at line 1065 of file treelistctrl.cpp.

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


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