wxcode::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 Member Functions

int XToCol (int x)
void RefreshColLabel (int col)

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
int m_hotTrackCol

Private Member Functions

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

Detailed Description

Definition at line 117 of file treelistctrl.cpp.


Constructor & Destructor Documentation

wxcode::wxTreeListHeaderWindow::wxTreeListHeaderWindow (  ) 

Definition at line 1251 of file treelistctrl.cpp.

References Init(), m_owner, and m_resizeCursor.

wxcode::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 1259 of file treelistctrl.cpp.

References Init(), m_owner, and m_resizeCursor.

wxcode::wxTreeListHeaderWindow::~wxTreeListHeaderWindow (  )  [virtual]

Definition at line 1276 of file treelistctrl.cpp.

References m_resizeCursor.


Member Function Documentation

void wxcode::wxTreeListHeaderWindow::AddColumn ( const wxTreeListColumnInfo colInfo  ) 

Definition at line 1582 of file treelistctrl.cpp.

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

Referenced by wxcode::wxTreeListCtrl::AddColumn().

void wxcode::wxTreeListHeaderWindow::AdjustDC ( wxDC &  dc  ) 

Definition at line 1311 of file treelistctrl.cpp.

References m_owner.

Referenced by DrawCurrent().

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

Definition at line 1281 of file treelistctrl.cpp.

void wxcode::wxTreeListHeaderWindow::DrawCurrent (  ) 

Definition at line 1373 of file treelistctrl.cpp.

References AdjustDC(), m_currentX, and m_owner.

Referenced by OnMouse().

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

Definition at line 185 of file treelistctrl.cpp.

References GetColumnCount(), m_columns, and wxcode::wxInvalidTreeListColumnInfo.

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

Definition at line 180 of file treelistctrl.cpp.

References GetColumnCount(), m_columns, and wxcode::wxInvalidTreeListColumnInfo.

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

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

Definition at line 203 of file treelistctrl.cpp.

References GetColumnCount(), and m_columns.

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

int wxcode::wxTreeListHeaderWindow::GetColumnCount (  )  const [inline]

Definition at line 171 of file treelistctrl.cpp.

References m_columns.

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

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

Definition at line 192 of file treelistctrl.cpp.

References GetColumnCount(), and m_columns.

Referenced by wxcode::wxTreeListCtrl::GetColumnText().

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

Definition at line 214 of file treelistctrl.cpp.

References GetColumnCount(), and m_columns.

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

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

Definition at line 168 of file treelistctrl.cpp.

References m_total_col_width.

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

void wxcode::wxTreeListHeaderWindow::Init (  )  [private]

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

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

Definition at line 1598 of file treelistctrl.cpp.

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

Referenced by wxcode::wxTreeListCtrl::InsertColumn().

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

Definition at line 221 of file treelistctrl.cpp.

References GetColumnCount(), and m_columns.

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

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

Definition at line 227 of file treelistctrl.cpp.

References GetColumnCount(), and m_columns.

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

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

Definition at line 163 of file treelistctrl.cpp.

void wxcode::wxTreeListHeaderWindow::OnMouse ( wxMouseEvent &  event  ) 

Definition at line 1435 of file treelistctrl.cpp.

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

void wxcode::wxTreeListHeaderWindow::OnPaint ( wxPaintEvent &  event  ) 

void wxcode::wxTreeListHeaderWindow::OnSetFocus ( wxFocusEvent &  event  ) 

void wxcode::wxTreeListHeaderWindow::RefreshColLabel ( int  col  )  [protected]

Definition at line 1416 of file treelistctrl.cpp.

References GetColumn(), GetColumnCount(), wxcode::wxTreeListColumnInfo::GetWidth(), IsColumnShown(), and m_owner.

Referenced by OnMouse().

void wxcode::wxTreeListHeaderWindow::RemoveColumn ( int  column  ) 

Definition at line 1606 of file treelistctrl.cpp.

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

Referenced by wxcode::wxTreeListCtrl::RemoveColumn().

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

Definition at line 1567 of file treelistctrl.cpp.

References m_column.

Referenced by OnMouse().

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

Definition at line 1614 of file treelistctrl.cpp.

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

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

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

Definition at line 208 of file treelistctrl.cpp.

References GetColumnCount(), and m_columns.

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

Definition at line 197 of file treelistctrl.cpp.

References GetColumnCount(), and m_columns.

Referenced by wxcode::wxTreeListCtrl::SetColumnText().

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

Definition at line 1589 of file treelistctrl.cpp.

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

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

int wxcode::wxTreeListHeaderWindow::XToCol ( int  x  )  [protected]

Definition at line 1399 of file treelistctrl.cpp.

References GetColumn(), GetColumnCount(), wxcode::wxTreeListColumnInfo::GetWidth(), and IsColumnShown().

Referenced by OnMouse().


Member Data Documentation

int wxcode::wxTreeListHeaderWindow::m_column [protected]

Definition at line 126 of file treelistctrl.cpp.

Referenced by OnMouse(), and SendListEvent().

wxArrayTreeListColumnInfo wxcode::wxTreeListHeaderWindow::m_columns [protected]

Definition at line 135 of file treelistctrl.cpp.

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

const wxCursor* wxcode::wxTreeListHeaderWindow::m_currentCursor [protected]

Definition at line 121 of file treelistctrl.cpp.

Referenced by OnMouse().

int wxcode::wxTreeListHeaderWindow::m_currentX [protected]

Definition at line 129 of file treelistctrl.cpp.

Referenced by DrawCurrent(), and OnMouse().

bool wxcode::wxTreeListHeaderWindow::m_dirty

Definition at line 234 of file treelistctrl.cpp.

int wxcode::wxTreeListHeaderWindow::m_hotTrackCol [protected]

Definition at line 141 of file treelistctrl.cpp.

Referenced by OnMouse().

bool wxcode::wxTreeListHeaderWindow::m_isDragging [protected]

Definition at line 123 of file treelistctrl.cpp.

int wxcode::wxTreeListHeaderWindow::m_minX [protected]

Definition at line 133 of file treelistctrl.cpp.

Referenced by OnMouse().

wxTreeListMainWindow* wxcode::wxTreeListHeaderWindow::m_owner [protected]

Definition at line 120 of file treelistctrl.cpp.

Referenced by AddColumn(), AdjustDC(), DrawCurrent(), wxcode::wxTreeListMainWindow::GetColumnCount(), wxcode::wxTreeListItem::GetImage(), wxcode::wxTreeListItem::GetText(), InsertColumn(), wxcode::wxTreeListItem::IsVirtual(), OnMouse(), RefreshColLabel(), RemoveColumn(), SetColumn(), SetColumnWidth(), wxcode::wxTreeListItem::SetImage(), wxcode::wxEditTextCtrl::SetOwner(), wxcode::wxTreeListItem::SetText(), and wxTreeListHeaderWindow().

const wxCursor* wxcode::wxTreeListHeaderWindow::m_resizeCursor [protected]

Definition at line 122 of file treelistctrl.cpp.

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

int wxcode::wxTreeListHeaderWindow::m_total_col_width [protected]

Definition at line 138 of file treelistctrl.cpp.

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


The documentation for this class was generated from the following file:
Generated on 26 Apr 2018 for Hugintrunk by  doxygen 1.4.7