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 117 of file treelistctrl.cpp.
wxcode::wxTreeListHeaderWindow::wxTreeListHeaderWindow | ( | ) |
Definition at line 1255 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 1263 of file treelistctrl.cpp.
References Init(), and m_resizeCursor.
|
virtual |
Definition at line 1280 of file treelistctrl.cpp.
References m_resizeCursor.
void wxcode::wxTreeListHeaderWindow::AddColumn | ( | const wxTreeListColumnInfo & | colInfo | ) |
Definition at line 1586 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 1315 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 1285 of file treelistctrl.cpp.
void wxcode::wxTreeListHeaderWindow::DrawCurrent | ( | ) |
Definition at line 1377 of file treelistctrl.cpp.
References AdjustDC(), and m_currentX.
Referenced by OnMouse().
|
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(), OnPaint(), wxcode::wxTreeListMainWindow::PaintItem(), RefreshColLabel(), and XToCol().
|
inline |
Definition at line 185 of file treelistctrl.cpp.
References GetColumnCount(), m_columns, and wxcode::wxInvalidTreeListColumnInfo.
|
inline |
Definition at line 203 of file treelistctrl.cpp.
References GetColumnCount(), and m_columns.
Referenced by wxcode::wxTreeListMainWindow::EditLabel().
|
inline |
Definition at line 171 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 192 of file treelistctrl.cpp.
References GetColumnCount(), and m_columns.
Referenced by wxcode::wxTreeListCtrl::GetColumnText().
|
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(), wxcode::wxTreeListMainWindow::OnPaint(), and wxcode::wxTreeListMainWindow::PaintItem().
|
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().
|
private |
Referenced by wxTreeListHeaderWindow(), and wxcode::wxTreeListMainWindow::wxTreeListMainWindow().
void wxcode::wxTreeListHeaderWindow::InsertColumn | ( | int | before, |
const wxTreeListColumnInfo & | colInfo | ||
) |
Definition at line 1602 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 221 of file treelistctrl.cpp.
References GetColumnCount(), and m_columns.
Referenced by wxcode::wxTreeListMainWindow::OnMouse().
|
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(), OnPaint(), wxcode::wxTreeListMainWindow::OnPaint(), wxcode::wxTreeListMainWindow::PaintItem(), RefreshColLabel(), and XToCol().
|
inline |
Definition at line 163 of file treelistctrl.cpp.
void wxcode::wxTreeListHeaderWindow::OnMouse | ( | wxMouseEvent & | event | ) |
Definition at line 1439 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 1326 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 1567 of file treelistctrl.cpp.
References wxcode::wxTreeListCtrl::SetFocus().
|
protected |
Definition at line 1420 of file treelistctrl.cpp.
References GetColumn(), GetColumnCount(), wxcode::wxTreeListColumnInfo::GetWidth(), and IsColumnShown().
Referenced by OnMouse().
void wxcode::wxTreeListHeaderWindow::RemoveColumn | ( | int | column | ) |
Definition at line 1610 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 1618 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 208 of file treelistctrl.cpp.
References GetColumnCount(), and m_columns.
|
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 1593 of file treelistctrl.cpp.
References GetColumnCount(), m_columns, and m_total_col_width.
Referenced by OnMouse(), and wxcode::wxTreeListCtrl::SetColumnWidth().
|
protected |
Definition at line 1403 of file treelistctrl.cpp.
References GetColumn(), GetColumnCount(), wxcode::wxTreeListColumnInfo::GetWidth(), and IsColumnShown().
Referenced by OnMouse().
|
protected |
Definition at line 126 of file treelistctrl.cpp.
Referenced by OnMouse(), and SendListEvent().
|
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().
|
protected |
Definition at line 121 of file treelistctrl.cpp.
Referenced by wxcode::EVT_ERASE_BACKGROUND(), and OnMouse().
|
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.
|
protected |
Definition at line 141 of file treelistctrl.cpp.
Referenced by wxcode::EVT_ERASE_BACKGROUND(), OnMouse(), and OnPaint().
|
protected |
Definition at line 123 of file treelistctrl.cpp.
|
protected |
Definition at line 133 of file treelistctrl.cpp.
Referenced by OnMouse().
|
protected |
Definition at line 120 of file treelistctrl.cpp.
Referenced by wxcode::wxTreeListMainWindow::GetColumnCount().
|
protected |
Definition at line 122 of file treelistctrl.cpp.
Referenced by OnMouse(), wxTreeListHeaderWindow(), and ~wxTreeListHeaderWindow().
|
protected |
Definition at line 138 of file treelistctrl.cpp.
Referenced by AddColumn(), wxcode::EVT_ERASE_BACKGROUND(), GetWidth(), InsertColumn(), RemoveColumn(), SetColumn(), and SetColumnWidth().