// wxDataViewIconTextRenderer
// ---------------------------------------------------------
-class wxDataViewIconTextRenderer: public wxDataViewCustomRenderer
+class WXDLLIMPEXP_ADV wxDataViewIconTextRenderer: public wxDataViewCustomRenderer
{
public:
wxDataViewIconTextRenderer( const wxString &varianttype = wxT("wxDataViewIconText"),
wxAlignment m_align;
wxString m_title;
bool m_ascending;
+ bool m_autosize;
void Init(int width);
return GetClientSize().GetWidth() / GetColumnCount();
}
+ // called by header window after reorder
+ void ColumnMoved( wxDataViewColumn* col, unsigned int new_pos );
+
// updates the header window after a change in a column setting
void OnColumnChange();
wxWindow *GetMainWindow() { return (wxWindow*) m_clientArea; }
private:
- wxDataViewColumnList m_cols;
- wxDataViewModelNotifier *m_notifier;
- wxDataViewMainWindow *m_clientArea;
- wxDataViewHeaderWindow *m_headerArea;
- wxDataViewColumn* m_sortingColumn;
+ wxDataViewColumnList m_cols;
+ wxDataViewModelNotifier *m_notifier;
+ wxDataViewMainWindow *m_clientArea;
+ wxDataViewHeaderWindow *m_headerArea;
+ wxDataViewColumn *m_sortingColumn;
private:
void OnSize( wxSizeEvent &event );