Hugintrunk
0.1
|
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 wxTreeListColumnInfo & | GetColumn (int column) const |
wxTreeListColumnInfo & | GetColumn (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 | |
wxTreeListMainWindow * | m_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) |
Definition at line 111 of file treelistctrl.cpp.
wxcode::wxTreeListHeaderWindow::wxTreeListHeaderWindow | ( | ) |
Definition at line 1247 of file treelistctrl.cpp.
References Init(), 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 1255 of file treelistctrl.cpp.
References Init(), and m_resizeCursor.
|
virtual |
Definition at line 1272 of file treelistctrl.cpp.
References m_resizeCursor.
void wxcode::wxTreeListHeaderWindow::AddColumn | ( | const wxTreeListColumnInfo & | colInfo | ) |
Definition at line 1578 of file treelistctrl.cpp.
References wxcode::wxTreeListColumnInfo::GetWidth(), m_columns, and m_total_col_width.
Referenced by wxcode::wxTreeListCtrl::AddColumn().
void wxcode::wxTreeListHeaderWindow::AdjustDC | ( | wxDC & | dc | ) |
Definition at line 1307 of file treelistctrl.cpp.
Referenced by DrawCurrent(), and OnPaint().
void wxcode::wxTreeListHeaderWindow::DoDrawRect | ( | wxDC * | dc, |
int | x, | ||
int | y, | ||
int | w, | ||
int | h | ||
) |
Definition at line 1277 of file treelistctrl.cpp.
void wxcode::wxTreeListHeaderWindow::DrawCurrent | ( | ) |
Definition at line 1369 of file treelistctrl.cpp.
References AdjustDC(), and m_currentX.
Referenced by OnMouse().
|
inline |
Definition at line 174 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(), OnPaint(), wxcode::wxTreeListMainWindow::PaintItem(), RefreshColLabel(), and XToCol().
|
inline |
Definition at line 179 of file treelistctrl.cpp.
References GetColumnCount(), m_columns, and wxcode::wxInvalidTreeListColumnInfo.
|
inline |
Definition at line 197 of file treelistctrl.cpp.
References GetColumnCount(), and m_columns.
Referenced by wxcode::wxTreeListMainWindow::EditLabel().
|
inline |
Definition at line 165 of file treelistctrl.cpp.
References m_columns.
Referenced by GetColumn(), GetColumnAlignment(), GetColumnText(), GetColumnWidth(), InsertColumn(), IsColumnEditable(), IsColumnShown(), OnMouse(), OnPaint(), RefreshColLabel(), RemoveColumn(), SetColumn(), SetColumnAlignment(), SetColumnText(), SetColumnWidth(), wxcode::wxTreeListMainWindow::SetMainColumn(), wxcode::wxTreeListItem::SetText(), and XToCol().
|
inline |
Definition at line 186 of file treelistctrl.cpp.
References GetColumnCount(), and m_columns.
Referenced by wxcode::wxTreeListCtrl::GetColumnText().
|
inline |
Definition at line 208 of file treelistctrl.cpp.
References GetColumnCount(), and m_columns.
Referenced by wxcode::wxTreeListMainWindow::CalculatePositions(), wxcode::wxTreeListMainWindow::EditLabel(), wxcode::wxTreeListCtrl::GetColumnWidth(), wxcode::wxTreeListItem::HitTest(), OnMouse(), wxcode::wxTreeListMainWindow::OnPaint(), and wxcode::wxTreeListMainWindow::PaintItem().
|
inline |
Definition at line 162 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().
|
private |
Referenced by wxTreeListHeaderWindow(), and wxcode::wxTreeListMainWindow::wxTreeListMainWindow().
void wxcode::wxTreeListHeaderWindow::InsertColumn | ( | int | before, |
const wxTreeListColumnInfo & | colInfo | ||
) |
Definition at line 1594 of file treelistctrl.cpp.
References GetColumnCount(), wxcode::wxTreeListColumnInfo::GetWidth(), m_columns, and m_total_col_width.
Referenced by wxcode::wxTreeListCtrl::InsertColumn().
|
inline |
Definition at line 215 of file treelistctrl.cpp.
References GetColumnCount(), and m_columns.
Referenced by wxcode::wxTreeListMainWindow::OnMouse().
|
inline |
Definition at line 221 of file treelistctrl.cpp.
References GetColumnCount(), and m_columns.
Referenced by wxcode::wxTreeListMainWindow::CalculatePositions(), wxcode::wxTreeListMainWindow::EditLabel(), wxcode::wxTreeListItem::HitTest(), OnMouse(), OnPaint(), wxcode::wxTreeListMainWindow::OnPaint(), wxcode::wxTreeListMainWindow::PaintItem(), RefreshColLabel(), and XToCol().
|
inline |
Definition at line 157 of file treelistctrl.cpp.
void wxcode::wxTreeListHeaderWindow::OnMouse | ( | wxMouseEvent & | event | ) |
Definition at line 1431 of file treelistctrl.cpp.
References DrawCurrent(), wxcode::wxTreeListCtrl::EndEdit(), GetColumnCount(), GetColumnWidth(), IsColumnShown(), m_column, m_columns, m_currentCursor, m_currentX, m_hotTrackCol, m_minX, m_resizeCursor, RefreshColLabel(), SendListEvent(), SetColumnWidth(), and XToCol().
void wxcode::wxTreeListHeaderWindow::OnPaint | ( | wxPaintEvent & | event | ) |
Definition at line 1318 of file treelistctrl.cpp.
References AdjustDC(), flags, wxcode::wxTreeListColumnInfo::GetAlignment(), GetColumn(), GetColumnCount(), wxcode::wxTreeListColumnInfo::GetImage(), wxcode::wxTreeListCtrl::GetImageList(), wxcode::wxTreeListColumnInfo::GetText(), wxcode::wxTreeListColumnInfo::GetWidth(), vigra_ext::EMoR::h, wxcode::HEADER_OFFSET_X, IsColumnShown(), and m_hotTrackCol.
void wxcode::wxTreeListHeaderWindow::OnSetFocus | ( | wxFocusEvent & | event | ) |
Definition at line 1559 of file treelistctrl.cpp.
References wxcode::wxTreeListCtrl::SetFocus().
|
protected |
Definition at line 1412 of file treelistctrl.cpp.
References GetColumn(), GetColumnCount(), wxcode::wxTreeListColumnInfo::GetWidth(), and IsColumnShown().
Referenced by OnMouse().
void wxcode::wxTreeListHeaderWindow::RemoveColumn | ( | int | column | ) |
Definition at line 1602 of file treelistctrl.cpp.
References GetColumnCount(), m_columns, and m_total_col_width.
Referenced by wxcode::wxTreeListCtrl::RemoveColumn().
|
private |
void wxcode::wxTreeListHeaderWindow::SetColumn | ( | int | column, |
const wxTreeListColumnInfo & | info | ||
) |
Definition at line 1610 of file treelistctrl.cpp.
References GetColumnCount(), wxcode::wxTreeListColumnInfo::GetWidth(), celeste::info(), m_columns, and m_total_col_width.
Referenced by wxcode::wxTreeListCtrl::SetColumn(), wxcode::wxTreeListCtrl::SetColumnAlignment(), wxcode::wxTreeListCtrl::SetColumnEditable(), wxcode::wxTreeListCtrl::SetColumnImage(), and wxcode::wxTreeListCtrl::SetColumnShown().
|
inline |
Definition at line 202 of file treelistctrl.cpp.
References GetColumnCount(), and m_columns.
|
inline |
Definition at line 191 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 1585 of file treelistctrl.cpp.
References GetColumnCount(), m_columns, and m_total_col_width.
Referenced by OnMouse(), and wxcode::wxTreeListCtrl::SetColumnWidth().
|
protected |
Definition at line 1395 of file treelistctrl.cpp.
References GetColumn(), GetColumnCount(), wxcode::wxTreeListColumnInfo::GetWidth(), and IsColumnShown().
Referenced by OnMouse().
|
protected |
Definition at line 120 of file treelistctrl.cpp.
Referenced by OnMouse(), and SendListEvent().
|
protected |
Definition at line 129 of file treelistctrl.cpp.
Referenced by AddColumn(), GetColumn(), GetColumnAlignment(), GetColumnCount(), GetColumnText(), GetColumnWidth(), InsertColumn(), IsColumnEditable(), IsColumnShown(), OnMouse(), RemoveColumn(), SetColumn(), SetColumnAlignment(), SetColumnText(), and SetColumnWidth().
|
protected |
Definition at line 115 of file treelistctrl.cpp.
Referenced by wxcode::EVT_ERASE_BACKGROUND(), and OnMouse().
|
protected |
Definition at line 123 of file treelistctrl.cpp.
Referenced by DrawCurrent(), and OnMouse().
bool wxcode::wxTreeListHeaderWindow::m_dirty |
Definition at line 228 of file treelistctrl.cpp.
|
protected |
Definition at line 135 of file treelistctrl.cpp.
Referenced by wxcode::EVT_ERASE_BACKGROUND(), OnMouse(), and OnPaint().
|
protected |
Definition at line 117 of file treelistctrl.cpp.
|
protected |
Definition at line 127 of file treelistctrl.cpp.
Referenced by OnMouse().
|
protected |
Definition at line 114 of file treelistctrl.cpp.
Referenced by wxcode::wxTreeListMainWindow::GetColumnCount().
|
protected |
Definition at line 116 of file treelistctrl.cpp.
Referenced by OnMouse(), wxTreeListHeaderWindow(), and ~wxTreeListHeaderWindow().
|
protected |
Definition at line 132 of file treelistctrl.cpp.
Referenced by AddColumn(), wxcode::EVT_ERASE_BACKGROUND(), GetWidth(), InsertColumn(), RemoveColumn(), SetColumn(), and SetColumnWidth().