wxTreeListHeaderWindow Class Reference

List of all members.

Public Member Functions

 wxTreeListHeaderWindow ()
 wxTreeListHeaderWindow (wxWindow *win, wxWindowID id, wxTreeListMainWindow *owner, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0, const wxString &name=_T("wxtreelistctrlcolumntitles"))
virtual ~wxTreeListHeaderWindow ()
void DoDrawRect (wxDC *dc, int x, int y, int w, int h)
void DrawCurrent ()
void AdjustDC (wxDC &dc)
void OnPaint (wxPaintEvent &event)
void OnEraseBackground (wxEraseEvent &WXUNUSED(event))
void OnMouse (wxMouseEvent &event)
void OnSetFocus (wxFocusEvent &event)
int GetWidth () const
int GetColumnCount () const
void AddColumn (const wxTreeListColumnInfo &colInfo)
void InsertColumn (int before, const wxTreeListColumnInfo &colInfo)
void RemoveColumn (int column)
const wxTreeListColumnInfoGetColumn (int column) const
wxTreeListColumnInfoGetColumn (int column)
void SetColumn (int column, const wxTreeListColumnInfo &info)
wxString GetColumnText (int column) const
void SetColumnText (int column, const wxString &text)
int GetColumnAlignment (int column) const
void SetColumnAlignment (int column, int flag)
int GetColumnWidth (int column) const
void SetColumnWidth (int column, int width)
bool IsColumnEditable (int column) const
bool IsColumnShown (int column) const

Public Attributes

bool m_dirty

Protected Attributes

wxTreeListMainWindowm_owner
const wxCursor * m_currentCursor
const wxCursor * m_resizeCursor
bool m_isDragging
int m_column
int m_currentX
int m_minX
wxArrayTreeListColumnInfo m_columns
int m_total_col_width

Private Member Functions

void Init ()
void SendListEvent (wxEventType type, wxPoint pos)

Detailed Description

Definition at line 119 of file treelistctrl.cpp.


Constructor & Destructor Documentation

wxTreeListHeaderWindow::wxTreeListHeaderWindow (  ) 

Definition at line 1257 of file treelistctrl.cpp.

References Init(), m_owner, and m_resizeCursor.

wxTreeListHeaderWindow::wxTreeListHeaderWindow ( wxWindow *  win,
wxWindowID  id,
wxTreeListMainWindow owner,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = 0,
const wxString &  name = _T("wxtreelistctrlcolumntitles") 
)

Definition at line 1265 of file treelistctrl.cpp.

References Init(), m_owner, and m_resizeCursor.

wxTreeListHeaderWindow::~wxTreeListHeaderWindow (  )  [virtual]

Definition at line 1286 of file treelistctrl.cpp.

References m_resizeCursor.


Member Function Documentation

void wxTreeListHeaderWindow::AddColumn ( const wxTreeListColumnInfo colInfo  ) 

Definition at line 1699 of file treelistctrl.cpp.

References wxTreeListMainWindow::AdjustMyScrollbars(), wxTreeListColumnInfo::GetWidth(), m_columns, wxTreeListMainWindow::m_dirty, m_owner, and m_total_col_width.

Referenced by wxTreeListCtrl::AddColumn().

void wxTreeListHeaderWindow::AdjustDC ( wxDC &  dc  ) 

Definition at line 1330 of file treelistctrl.cpp.

References m_owner.

Referenced by DrawCurrent().

void wxTreeListHeaderWindow::DoDrawRect ( wxDC *  dc,
int  x,
int  y,
int  w,
int  h 
)

Definition at line 1291 of file treelistctrl.cpp.

References wxPENSTYLE_SOLID.

void wxTreeListHeaderWindow::DrawCurrent (  ) 

Definition at line 1482 of file treelistctrl.cpp.

References AdjustDC(), m_currentX, m_owner, and wxPENSTYLE_SOLID.

Referenced by OnMouse().

wxTreeListColumnInfo& wxTreeListHeaderWindow::GetColumn ( int  column  )  [inline]

Definition at line 189 of file treelistctrl.cpp.

References wxInvalidTreeListColumnInfo.

const wxTreeListColumnInfo& wxTreeListHeaderWindow::GetColumn ( int  column  )  const [inline]

Definition at line 184 of file treelistctrl.cpp.

References wxInvalidTreeListColumnInfo.

Referenced by wxTreeListCtrl::GetColumn(), wxTreeListCtrl::GetColumnAlignment(), wxTreeListCtrl::GetColumnImage(), wxTreeListCtrl::IsColumnEditable(), wxTreeListCtrl::IsColumnShown(), and wxTreeListMainWindow::PaintItem().

int wxTreeListHeaderWindow::GetColumnAlignment ( int  column  )  const [inline]

Definition at line 207 of file treelistctrl.cpp.

Referenced by wxTreeListMainWindow::EditLabel().

int wxTreeListHeaderWindow::GetColumnCount (  )  const [inline]

Definition at line 175 of file treelistctrl.cpp.

Referenced by InsertColumn(), OnMouse(), RemoveColumn(), SetColumn(), and SetColumnWidth().

wxString wxTreeListHeaderWindow::GetColumnText ( int  column  )  const [inline]

Definition at line 196 of file treelistctrl.cpp.

Referenced by wxTreeListCtrl::GetColumnText().

int wxTreeListHeaderWindow::GetColumnWidth ( int  column  )  const [inline]

Definition at line 218 of file treelistctrl.cpp.

Referenced by wxTreeListMainWindow::CalculatePositions(), wxTreeListMainWindow::EditLabel(), wxTreeListCtrl::GetColumnWidth(), wxTreeListItem::HitTest(), OnMouse(), and wxTreeListMainWindow::PaintItem().

int wxTreeListHeaderWindow::GetWidth (  )  const [inline]

Definition at line 172 of file treelistctrl.cpp.

Referenced by wxTreeListMainWindow::AdjustMyScrollbars(), wxTreeListItem::HitTest(), wxTreeListMainWindow::PaintItem(), wxTreeListMainWindow::PaintLevel(), and wxTreeListMainWindow::ScrollTo().

void wxTreeListHeaderWindow::Init (  )  [private]

Referenced by wxTreeListHeaderWindow().

void wxTreeListHeaderWindow::InsertColumn ( int  before,
const wxTreeListColumnInfo colInfo 
)

Definition at line 1715 of file treelistctrl.cpp.

References wxTreeListMainWindow::AdjustMyScrollbars(), GetColumnCount(), wxTreeListColumnInfo::GetWidth(), m_columns, wxTreeListMainWindow::m_dirty, m_owner, and m_total_col_width.

Referenced by wxTreeListCtrl::InsertColumn().

bool wxTreeListHeaderWindow::IsColumnEditable ( int  column  )  const [inline]

Definition at line 225 of file treelistctrl.cpp.

Referenced by wxTreeListMainWindow::OnMouse().

bool wxTreeListHeaderWindow::IsColumnShown ( int  column  )  const [inline]

Definition at line 231 of file treelistctrl.cpp.

Referenced by wxTreeListMainWindow::CalculatePositions(), wxTreeListMainWindow::EditLabel(), wxTreeListItem::HitTest(), OnMouse(), and wxTreeListMainWindow::PaintItem().

void wxTreeListHeaderWindow::OnEraseBackground ( wxEraseEvent &  WXUNUSED(event)  )  [inline]

Definition at line 167 of file treelistctrl.cpp.

void wxTreeListHeaderWindow::OnMouse ( wxMouseEvent &  event  ) 

Definition at line 1550 of file treelistctrl.cpp.

References DrawCurrent(), wxTreeListMainWindow::EndEdit(), wxTreeListMainWindow::GetBestColumnWidth(), GetColumnCount(), GetColumnWidth(), IsColumnShown(), m_column, m_columns, m_currentCursor, m_currentX, m_minX, m_owner, m_resizeCursor, SendListEvent(), and SetColumnWidth().

void wxTreeListHeaderWindow::OnPaint ( wxPaintEvent &  event  ) 

void wxTreeListHeaderWindow::OnSetFocus ( wxFocusEvent &  event  ) 

void wxTreeListHeaderWindow::RemoveColumn ( int  column  ) 

Definition at line 1723 of file treelistctrl.cpp.

References wxTreeListMainWindow::AdjustMyScrollbars(), GetColumnCount(), m_columns, wxTreeListMainWindow::m_dirty, m_owner, and m_total_col_width.

Referenced by wxTreeListCtrl::RemoveColumn().

void wxTreeListHeaderWindow::SendListEvent ( wxEventType  type,
wxPoint  pos 
) [private]

Definition at line 1684 of file treelistctrl.cpp.

References m_column.

Referenced by OnMouse().

void wxTreeListHeaderWindow::SetColumn ( int  column,
const wxTreeListColumnInfo info 
)

Definition at line 1731 of file treelistctrl.cpp.

References wxTreeListMainWindow::AdjustMyScrollbars(), GetColumnCount(), celeste::info(), m_columns, wxTreeListMainWindow::m_dirty, m_owner, and m_total_col_width.

Referenced by wxTreeListCtrl::SetColumn(), wxTreeListCtrl::SetColumnAlignment(), wxTreeListCtrl::SetColumnEditable(), wxTreeListCtrl::SetColumnImage(), and wxTreeListCtrl::SetColumnShown().

void wxTreeListHeaderWindow::SetColumnAlignment ( int  column,
int  flag 
) [inline]

Definition at line 212 of file treelistctrl.cpp.

void wxTreeListHeaderWindow::SetColumnText ( int  column,
const wxString &  text 
) [inline]

Definition at line 201 of file treelistctrl.cpp.

Referenced by wxTreeListCtrl::SetColumnText().

void wxTreeListHeaderWindow::SetColumnWidth ( int  column,
int  width 
)

Definition at line 1706 of file treelistctrl.cpp.

References wxTreeListMainWindow::AdjustMyScrollbars(), GetColumnCount(), m_columns, wxTreeListMainWindow::m_dirty, m_owner, and m_total_col_width.

Referenced by OnMouse(), and wxTreeListCtrl::SetColumnWidth().


Member Data Documentation

int wxTreeListHeaderWindow::m_column [protected]

Definition at line 128 of file treelistctrl.cpp.

Referenced by OnMouse(), and SendListEvent().

wxArrayTreeListColumnInfo wxTreeListHeaderWindow::m_columns [protected]

Definition at line 137 of file treelistctrl.cpp.

Referenced by AddColumn(), InsertColumn(), OnMouse(), RemoveColumn(), SetColumn(), and SetColumnWidth().

const wxCursor* wxTreeListHeaderWindow::m_currentCursor [protected]

Definition at line 123 of file treelistctrl.cpp.

Referenced by OnMouse().

int wxTreeListHeaderWindow::m_currentX [protected]

Definition at line 131 of file treelistctrl.cpp.

Referenced by DrawCurrent(), and OnMouse().

bool wxTreeListHeaderWindow::m_dirty

Definition at line 238 of file treelistctrl.cpp.

bool wxTreeListHeaderWindow::m_isDragging [protected]

Definition at line 125 of file treelistctrl.cpp.

int wxTreeListHeaderWindow::m_minX [protected]

Definition at line 135 of file treelistctrl.cpp.

Referenced by OnMouse().

wxTreeListMainWindow* wxTreeListHeaderWindow::m_owner [protected]

Definition at line 122 of file treelistctrl.cpp.

Referenced by AddColumn(), AdjustDC(), DrawCurrent(), InsertColumn(), OnMouse(), RemoveColumn(), SetColumn(), SetColumnWidth(), and wxTreeListHeaderWindow().

const wxCursor* wxTreeListHeaderWindow::m_resizeCursor [protected]

Definition at line 124 of file treelistctrl.cpp.

Referenced by OnMouse(), wxTreeListHeaderWindow(), and ~wxTreeListHeaderWindow().

int wxTreeListHeaderWindow::m_total_col_width [protected]

Definition at line 140 of file treelistctrl.cpp.

Referenced by AddColumn(), InsertColumn(), RemoveColumn(), SetColumn(), and SetColumnWidth().


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