Hugin trunk 0.1
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
wxcode::wxTreeListHeaderWindow Class Reference
Inheritance diagram for wxcode::wxTreeListHeaderWindow:
Inheritance graph

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 wxCursorm_currentCursor
 
const wxCursorm_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 116 of file treelistctrl.cpp.

Constructor & Destructor Documentation

◆ wxTreeListHeaderWindow() [1/2]

wxcode::wxTreeListHeaderWindow::wxTreeListHeaderWindow ( )

Definition at line 1252 of file treelistctrl.cpp.

References Init(), m_owner, m_resizeCursor, and threshold().

◆ wxTreeListHeaderWindow() [2/2]

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

References Init(), m_owner, m_resizeCursor, and threshold().

◆ ~wxTreeListHeaderWindow()

wxcode::wxTreeListHeaderWindow::~wxTreeListHeaderWindow ( )
virtual

Definition at line 1277 of file treelistctrl.cpp.

References m_resizeCursor.

Member Function Documentation

◆ AddColumn()

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

◆ AdjustDC()

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

Definition at line 1312 of file treelistctrl.cpp.

References m_owner, and threshold().

Referenced by DrawCurrent(), and OnPaint().

◆ DoDrawRect()

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

Definition at line 1282 of file treelistctrl.cpp.

References threshold().

◆ DrawCurrent()

void wxcode::wxTreeListHeaderWindow::DrawCurrent ( )

Definition at line 1374 of file treelistctrl.cpp.

References AdjustDC(), m_currentX, m_owner, and threshold().

Referenced by OnMouse().

◆ GetColumn() [1/2]

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

◆ GetColumn() [2/2]

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

◆ GetColumnAlignment()

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

Definition at line 202 of file treelistctrl.cpp.

References GetColumnCount(), m_columns, and threshold().

◆ GetColumnCount()

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

◆ GetColumnText()

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

Definition at line 191 of file treelistctrl.cpp.

References GetColumnCount(), m_columns, and threshold().

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

◆ GetColumnWidth()

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

◆ GetWidth()

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

◆ Init()

void wxcode::wxTreeListHeaderWindow::Init ( )
private

◆ InsertColumn()

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

◆ IsColumnEditable()

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

Definition at line 220 of file treelistctrl.cpp.

References GetColumnCount(), m_columns, and threshold().

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

◆ IsColumnShown()

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

◆ OnEraseBackground()

void wxcode::wxTreeListHeaderWindow::OnEraseBackground ( wxEraseEvent WXUNUSEDevent)
inline

Definition at line 162 of file treelistctrl.cpp.

Referenced by Init().

◆ OnMouse()

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

◆ OnPaint()

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

◆ OnSetFocus()

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

Definition at line 1564 of file treelistctrl.cpp.

References m_owner, and wxcode::wxTreeListMainWindow::SetFocus().

Referenced by Init().

◆ RefreshColLabel()

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

Definition at line 1417 of file treelistctrl.cpp.

References GetColumn(), GetColumnCount(), IsColumnShown(), m_owner, and threshold().

Referenced by OnMouse().

◆ RemoveColumn()

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

◆ SendListEvent()

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

Definition at line 1568 of file treelistctrl.cpp.

References m_column, and threshold().

Referenced by OnMouse().

◆ SetColumn()

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

◆ SetColumnAlignment()

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

Definition at line 207 of file treelistctrl.cpp.

References GetColumnCount(), m_columns, and threshold().

◆ SetColumnText()

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

Definition at line 196 of file treelistctrl.cpp.

References GetColumnCount(), m_columns, and threshold().

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

◆ SetColumnWidth()

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

◆ XToCol()

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

Definition at line 1400 of file treelistctrl.cpp.

References GetColumn(), GetColumnCount(), IsColumnShown(), and threshold().

Referenced by OnMouse().

Member Data Documentation

◆ m_column

int wxcode::wxTreeListHeaderWindow::m_column
protected

Definition at line 125 of file treelistctrl.cpp.

Referenced by OnMouse(), and SendListEvent().

◆ m_columns

wxArrayTreeListColumnInfo wxcode::wxTreeListHeaderWindow::m_columns
protected

◆ m_currentCursor

const wxCursor* wxcode::wxTreeListHeaderWindow::m_currentCursor
protected

Definition at line 120 of file treelistctrl.cpp.

Referenced by Init(), and OnMouse().

◆ m_currentX

int wxcode::wxTreeListHeaderWindow::m_currentX
protected

Definition at line 128 of file treelistctrl.cpp.

Referenced by DrawCurrent(), and OnMouse().

◆ m_dirty

bool wxcode::wxTreeListHeaderWindow::m_dirty

Definition at line 233 of file treelistctrl.cpp.

Referenced by Init(), and OnMouse().

◆ m_hotTrackCol

int wxcode::wxTreeListHeaderWindow::m_hotTrackCol
protected

Definition at line 140 of file treelistctrl.cpp.

Referenced by Init(), OnMouse(), and OnPaint().

◆ m_isDragging

bool wxcode::wxTreeListHeaderWindow::m_isDragging
protected

Definition at line 122 of file treelistctrl.cpp.

Referenced by Init(), and OnMouse().

◆ m_minX

int wxcode::wxTreeListHeaderWindow::m_minX
protected

Definition at line 132 of file treelistctrl.cpp.

Referenced by OnMouse().

◆ m_owner

wxTreeListMainWindow* wxcode::wxTreeListHeaderWindow::m_owner
protected

◆ m_resizeCursor

const wxCursor* wxcode::wxTreeListHeaderWindow::m_resizeCursor
protected

◆ m_total_col_width

int wxcode::wxTreeListHeaderWindow::m_total_col_width
protected

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