Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 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 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.

wxcode::wxTreeListHeaderWindow::~wxTreeListHeaderWindow ( )
virtual

Definition at line 1280 of file treelistctrl.cpp.

References m_resizeCursor.

Member Function Documentation

void wxcode::wxTreeListHeaderWindow::AddColumn ( const wxTreeListColumnInfo colInfo)
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().

const wxTreeListColumnInfo& wxcode::wxTreeListHeaderWindow::GetColumn ( int  column) const
inline
wxTreeListColumnInfo& wxcode::wxTreeListHeaderWindow::GetColumn ( int  column)
inline
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
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
int wxcode::wxTreeListHeaderWindow::GetWidth ( ) const
inline
void wxcode::wxTreeListHeaderWindow::Init ( )
private
void wxcode::wxTreeListHeaderWindow::InsertColumn ( int  before,
const wxTreeListColumnInfo colInfo 
)
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
void wxcode::wxTreeListHeaderWindow::OnEraseBackground ( wxEraseEvent &  WXUNUSEDevent)
inline

Definition at line 163 of file treelistctrl.cpp.

void wxcode::wxTreeListHeaderWindow::OnMouse ( wxMouseEvent &  event)
void wxcode::wxTreeListHeaderWindow::OnPaint ( wxPaintEvent &  event)
void wxcode::wxTreeListHeaderWindow::OnSetFocus ( wxFocusEvent &  event)

Definition at line 1567 of file treelistctrl.cpp.

References wxcode::wxTreeListCtrl::SetFocus().

void wxcode::wxTreeListHeaderWindow::RefreshColLabel ( int  col)
protected
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().

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

Definition at line 1571 of file treelistctrl.cpp.

References m_column.

Referenced by OnMouse().

void wxcode::wxTreeListHeaderWindow::SetColumn ( int  column,
const wxTreeListColumnInfo info 
)
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 1593 of file treelistctrl.cpp.

References GetColumnCount(), m_columns, and m_total_col_width.

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

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

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
const wxCursor* wxcode::wxTreeListHeaderWindow::m_currentCursor
protected

Definition at line 121 of file treelistctrl.cpp.

Referenced by wxcode::EVT_ERASE_BACKGROUND(), and 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 wxcode::EVT_ERASE_BACKGROUND(), OnMouse(), and OnPaint().

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 wxcode::wxTreeListMainWindow::GetColumnCount().

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

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