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)

Constructor & Destructor Documentation

wxTreeListHeaderWindow::wxTreeListHeaderWindow  ) 
 

Definition at line 1253 of file treelistctrl.cpp.

References Init(), 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 1261 of file treelistctrl.cpp.

References Init(), and m_resizeCursor.

wxTreeListHeaderWindow::~wxTreeListHeaderWindow  )  [virtual]
 

Definition at line 1282 of file treelistctrl.cpp.


Member Function Documentation

void wxTreeListHeaderWindow::AddColumn const wxTreeListColumnInfo colInfo  ) 
 

Definition at line 1687 of file treelistctrl.cpp.

References wxTreeListColumnInfo::GetWidth(), m_columns, and m_total_col_width.

Referenced by wxTreeListCtrl::AddColumn().

void wxTreeListHeaderWindow::AdjustDC wxDC &  dc  ) 
 

Definition at line 1322 of file treelistctrl.cpp.

Referenced by DrawCurrent().

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

Definition at line 1287 of file treelistctrl.cpp.

void wxTreeListHeaderWindow::DrawCurrent  ) 
 

Definition at line 1474 of file treelistctrl.cpp.

References AdjustDC(), and m_currentX.

Referenced by OnMouse().

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

Definition at line 186 of file treelistctrl.cpp.

References GetColumnCount(), m_columns, and wxInvalidTreeListColumnInfo.

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

Definition at line 181 of file treelistctrl.cpp.

References GetColumnCount(), m_columns, and 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 204 of file treelistctrl.cpp.

References wxTreeListColumnInfo::GetAlignment(), GetColumnCount(), and m_columns.

Referenced by wxTreeListMainWindow::EditLabel().

int wxTreeListHeaderWindow::GetColumnCount  )  const [inline]
 

Definition at line 172 of file treelistctrl.cpp.

References m_columns.

Referenced by GetColumn(), GetColumnAlignment(), GetColumnText(), GetColumnWidth(), InsertColumn(), IsColumnEditable(), IsColumnShown(), OnMouse(), RemoveColumn(), SetColumn(), SetColumnAlignment(), SetColumnText(), SetColumnWidth(), and wxTreeListMainWindow::SetMainColumn().

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

Definition at line 193 of file treelistctrl.cpp.

References GetColumnCount(), wxTreeListColumnInfo::GetText(), and m_columns.

Referenced by wxTreeListCtrl::GetColumnText().

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

Definition at line 215 of file treelistctrl.cpp.

References GetColumnCount(), wxTreeListColumnInfo::GetWidth(), and m_columns.

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

int wxTreeListHeaderWindow::GetWidth  )  const [inline]
 

Definition at line 169 of file treelistctrl.cpp.

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

void wxTreeListHeaderWindow::Init  )  [private]
 

Referenced by wxTreeListHeaderWindow(), and wxTreeListMainWindow::wxTreeListMainWindow().

void wxTreeListHeaderWindow::InsertColumn int  before,
const wxTreeListColumnInfo colInfo
 

Definition at line 1703 of file treelistctrl.cpp.

References GetColumnCount(), wxTreeListColumnInfo::GetWidth(), m_columns, and m_total_col_width.

Referenced by wxTreeListCtrl::InsertColumn().

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

Definition at line 222 of file treelistctrl.cpp.

References GetColumnCount(), wxTreeListColumnInfo::IsEditable(), and m_columns.

Referenced by wxTreeListMainWindow::OnMouse().

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

Definition at line 228 of file treelistctrl.cpp.

References GetColumnCount(), wxTreeListColumnInfo::IsShown(), and m_columns.

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

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

Definition at line 164 of file treelistctrl.cpp.

void wxTreeListHeaderWindow::OnMouse wxMouseEvent &  event  ) 
 

Definition at line 1538 of file treelistctrl.cpp.

References DrawCurrent(), wxTreeListCtrl::EndEdit(), GetColumnCount(), GetColumnWidth(), IsColumnShown(), m_column, m_columns, m_currentCursor, m_currentX, m_minX, SendListEvent(), and SetColumnWidth().

void wxTreeListHeaderWindow::OnPaint wxPaintEvent &  event  ) 
 

void wxTreeListHeaderWindow::OnSetFocus wxFocusEvent &  event  ) 
 

void wxTreeListHeaderWindow::RemoveColumn int  column  ) 
 

Definition at line 1711 of file treelistctrl.cpp.

References GetColumnCount(), m_columns, and m_total_col_width.

Referenced by wxTreeListCtrl::RemoveColumn().

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

Definition at line 1672 of file treelistctrl.cpp.

Referenced by OnMouse().

void wxTreeListHeaderWindow::SetColumn int  column,
const wxTreeListColumnInfo info
 

Definition at line 1719 of file treelistctrl.cpp.

References GetColumnCount(), wxTreeListColumnInfo::GetWidth(), m_columns, 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 209 of file treelistctrl.cpp.

References GetColumnCount(), m_columns, and wxTreeListColumnInfo::SetAlignment().

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

Definition at line 198 of file treelistctrl.cpp.

References GetColumnCount(), m_columns, and wxTreeListColumnInfo::SetText().

Referenced by wxTreeListCtrl::SetColumnText().

void wxTreeListHeaderWindow::SetColumnWidth int  column,
int  width
 

Definition at line 1694 of file treelistctrl.cpp.

References GetColumnCount(), m_columns, and m_total_col_width.

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


Member Data Documentation

int wxTreeListHeaderWindow::m_column [protected]
 

Definition at line 125 of file treelistctrl.cpp.

Referenced by OnMouse().

wxArrayTreeListColumnInfo wxTreeListHeaderWindow::m_columns [protected]
 

Definition at line 134 of file treelistctrl.cpp.

Referenced by AddColumn(), GetColumn(), GetColumnAlignment(), GetColumnCount(), GetColumnText(), GetColumnWidth(), InsertColumn(), IsColumnEditable(), IsColumnShown(), OnMouse(), RemoveColumn(), SetColumn(), SetColumnAlignment(), SetColumnText(), and SetColumnWidth().

const wxCursor* wxTreeListHeaderWindow::m_currentCursor [protected]
 

Definition at line 120 of file treelistctrl.cpp.

Referenced by OnMouse().

int wxTreeListHeaderWindow::m_currentX [protected]
 

Definition at line 128 of file treelistctrl.cpp.

Referenced by DrawCurrent(), and OnMouse().

bool wxTreeListHeaderWindow::m_dirty
 

Definition at line 235 of file treelistctrl.cpp.

bool wxTreeListHeaderWindow::m_isDragging [protected]
 

Definition at line 122 of file treelistctrl.cpp.

int wxTreeListHeaderWindow::m_minX [protected]
 

Definition at line 132 of file treelistctrl.cpp.

Referenced by OnMouse().

wxTreeListMainWindow* wxTreeListHeaderWindow::m_owner [protected]
 

Definition at line 119 of file treelistctrl.cpp.

const wxCursor* wxTreeListHeaderWindow::m_resizeCursor [protected]
 

Definition at line 121 of file treelistctrl.cpp.

Referenced by wxTreeListHeaderWindow().

int wxTreeListHeaderWindow::m_total_col_width [protected]
 

Definition at line 137 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 Wed Jul 30 01:25:54 2014 for Hugintrunk by  doxygen 1.3.9.1