NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
wxTreeListHeaderWindow Class Reference
Inheritance diagram for wxTreeListHeaderWindow:
Collaboration diagram for wxTreeListHeaderWindow:

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 117 of file treelistctrl.cpp.

Constructor & Destructor Documentation

◆ wxTreeListHeaderWindow() [1/2]

wxTreeListHeaderWindow::wxTreeListHeaderWindow ( )

Definition at line 1451 of file treelistctrl.cpp.

◆ wxTreeListHeaderWindow() [2/2]

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 1459 of file treelistctrl.cpp.

References Init(), m_owner, and m_resizeCursor.

Here is the call graph for this function:

◆ ~wxTreeListHeaderWindow()

wxTreeListHeaderWindow::~wxTreeListHeaderWindow ( )
virtual

Definition at line 1480 of file treelistctrl.cpp.

References m_resizeCursor.

Member Function Documentation

◆ AddColumn()

void wxTreeListHeaderWindow::AddColumn ( const wxTreeListColumnInfo colInfo)

Definition at line 1906 of file treelistctrl.cpp.

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

Here is the call graph for this function:

◆ AdjustDC()

void wxTreeListHeaderWindow::AdjustDC ( wxDC &  dc)

Definition at line 1520 of file treelistctrl.cpp.

References m_owner.

Referenced by DrawCurrent(), and OnPaint().

◆ DoDrawRect()

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

Definition at line 1485 of file treelistctrl.cpp.

Referenced by OnPaint().

◆ DrawCurrent()

void wxTreeListHeaderWindow::DrawCurrent ( )

Definition at line 1676 of file treelistctrl.cpp.

References AdjustDC(), m_currentX, and m_owner.

Referenced by OnMouse().

Here is the call graph for this function:

◆ GetColumn() [1/2]

wxTreeListColumnInfo & wxTreeListHeaderWindow::GetColumn ( int  column)
inline

Definition at line 194 of file treelistctrl.cpp.

References _T, and wxInvalidTreeListColumnInfo.

◆ GetColumn() [2/2]

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

Definition at line 188 of file treelistctrl.cpp.

References _T, and wxInvalidTreeListColumnInfo.

Referenced by OnPaint(), and wxTreeListMainWindow::PaintItem().

◆ GetColumnAlignment()

int wxTreeListHeaderWindow::GetColumnAlignment ( int  column) const
inline

Definition at line 215 of file treelistctrl.cpp.

References _T.

Referenced by wxTreeListMainWindow::EditLabel().

◆ GetColumnCount()

int wxTreeListHeaderWindow::GetColumnCount ( ) const
inline

◆ GetColumnText()

wxString wxTreeListHeaderWindow::GetColumnText ( int  column) const
inline

Definition at line 202 of file treelistctrl.cpp.

References _T.

◆ GetColumnWidth()

int wxTreeListHeaderWindow::GetColumnWidth ( int  column) const
inline

◆ GetWidth()

◆ Init()

void wxTreeListHeaderWindow::Init ( )
private

Referenced by wxTreeListHeaderWindow().

◆ InsertColumn()

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

Definition at line 1924 of file treelistctrl.cpp.

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

Here is the call graph for this function:

◆ IsColumnEditable()

bool wxTreeListHeaderWindow::IsColumnEditable ( int  column) const
inline

Definition at line 236 of file treelistctrl.cpp.

References _T.

Referenced by wxTreeListMainWindow::OnMouse().

◆ IsColumnShown()

bool wxTreeListHeaderWindow::IsColumnShown ( int  column) const
inline

◆ OnEraseBackground()

void wxTreeListHeaderWindow::OnEraseBackground ( wxEraseEvent &  WXUNUSEDevent)
inline

Definition at line 165 of file treelistctrl.cpp.

◆ OnMouse()

void wxTreeListHeaderWindow::OnMouse ( wxMouseEvent &  event)

Definition at line 1742 of file treelistctrl.cpp.

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

Here is the call graph for this function:

◆ OnPaint()

void wxTreeListHeaderWindow::OnPaint ( wxPaintEvent &  event)

Definition at line 1531 of file treelistctrl.cpp.

References AdjustDC(), DoDrawRect(), EXTRA_HEIGHT, EXTRA_WIDTH, wxTreeListColumnInfo::GetAlignment(), GetColumn(), GetColumnCount(), wxTreeListColumnInfo::GetImage(), wxTreeListMainWindow::GetImageList(), wxTreeListColumnInfo::GetText(), wxTreeListColumnInfo::GetWidth(), HEADER_OFFSET_X, HEADER_OFFSET_Y, IsColumnShown(), m_owner, and MARGIN.

Here is the call graph for this function:

◆ OnSetFocus()

void wxTreeListHeaderWindow::OnSetFocus ( wxFocusEvent &  event)

Definition at line 1885 of file treelistctrl.cpp.

References m_owner, and wxTreeListMainWindow::SetFocus().

Here is the call graph for this function:

◆ RemoveColumn()

void wxTreeListHeaderWindow::RemoveColumn ( int  column)

Definition at line 1933 of file treelistctrl.cpp.

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

Here is the call graph for this function:

◆ SendListEvent()

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

Definition at line 1890 of file treelistctrl.cpp.

References m_column.

Referenced by OnMouse().

◆ SetColumn()

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

Definition at line 1942 of file treelistctrl.cpp.

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

Here is the call graph for this function:

◆ SetColumnAlignment()

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

Definition at line 221 of file treelistctrl.cpp.

References _T.

◆ SetColumnText()

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

Definition at line 208 of file treelistctrl.cpp.

References _T.

◆ SetColumnWidth()

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

Definition at line 1914 of file treelistctrl.cpp.

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

Referenced by OnMouse().

Here is the call graph for this function:

Member Data Documentation

◆ m_column

int wxTreeListHeaderWindow::m_column
protected

Definition at line 126 of file treelistctrl.cpp.

Referenced by OnMouse(), and SendListEvent().

◆ m_columns

wxArrayTreeListColumnInfo wxTreeListHeaderWindow::m_columns
protected

Definition at line 135 of file treelistctrl.cpp.

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

◆ m_currentCursor

const wxCursor* wxTreeListHeaderWindow::m_currentCursor
protected

Definition at line 121 of file treelistctrl.cpp.

Referenced by OnMouse().

◆ m_currentX

int wxTreeListHeaderWindow::m_currentX
protected

Definition at line 129 of file treelistctrl.cpp.

Referenced by DrawCurrent(), and OnMouse().

◆ m_dirty

bool wxTreeListHeaderWindow::m_dirty

Definition at line 251 of file treelistctrl.cpp.

Referenced by OnMouse().

◆ m_isDragging

bool wxTreeListHeaderWindow::m_isDragging
protected

Definition at line 123 of file treelistctrl.cpp.

Referenced by OnMouse().

◆ m_minX

int wxTreeListHeaderWindow::m_minX
protected

Definition at line 133 of file treelistctrl.cpp.

Referenced by OnMouse().

◆ m_owner

◆ m_resizeCursor

const wxCursor* wxTreeListHeaderWindow::m_resizeCursor
protected

Definition at line 122 of file treelistctrl.cpp.

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

◆ m_total_col_width

int wxTreeListHeaderWindow::m_total_col_width
protected

Definition at line 138 of file treelistctrl.cpp.

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


The documentation for this class was generated from the following file: