// classes
// ---------------------------------------------------------
-class WXDLLIMPEXP_CORE wxDataViewCtrl;
-class WXDLLIMPEXP_CORE wxDataViewMainWindow;
-class WXDLLIMPEXP_CORE wxDataViewHeaderWindow;
+class WXDLLIMPEXP_ADV wxDataViewCtrl;
+class WXDLLIMPEXP_ADV wxDataViewMainWindow;
+class WXDLLIMPEXP_ADV wxDataViewHeaderWindow;
// ---------------------------------------------------------
// wxDataViewCell
// ---------------------------------------------------------
-class wxDataViewCell: public wxDataViewCellBase
+class WXDLLIMPEXP_ADV wxDataViewCell: public wxDataViewCellBase
{
public:
wxDataViewCell( const wxString &varianttype, wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT );
// wxDataViewCustomCell
// ---------------------------------------------------------
-class wxDataViewCustomCell: public wxDataViewCell
+class WXDLLIMPEXP_ADV wxDataViewCustomCell: public wxDataViewCell
{
public:
wxDataViewCustomCell( const wxString &varianttype = wxT("string"),
// wxDataViewTextCell
// ---------------------------------------------------------
-class wxDataViewTextCell: public wxDataViewCustomCell
+class WXDLLIMPEXP_ADV wxDataViewTextCell: public wxDataViewCustomCell
{
public:
wxDataViewTextCell( const wxString &varianttype = wxT("string"),
// wxDataViewToggleCell
// ---------------------------------------------------------
-class wxDataViewToggleCell: public wxDataViewCustomCell
+class WXDLLIMPEXP_ADV wxDataViewToggleCell: public wxDataViewCustomCell
{
public:
wxDataViewToggleCell( const wxString &varianttype = wxT("bool"),
// wxDataViewProgressCell
// ---------------------------------------------------------
-class wxDataViewProgressCell: public wxDataViewCustomCell
+class WXDLLIMPEXP_ADV wxDataViewProgressCell: public wxDataViewCustomCell
{
public:
wxDataViewProgressCell( const wxString &label = wxEmptyString,
// wxDataViewDateCell
// ---------------------------------------------------------
-class wxDataViewDateCell: public wxDataViewCustomCell
+class WXDLLIMPEXP_ADV wxDataViewDateCell: public wxDataViewCustomCell
{
public:
wxDataViewDateCell( const wxString &varianttype = wxT("datetime"),
// wxDataViewColumn
// ---------------------------------------------------------
-class WXDLLIMPEXP_CORE wxDataViewColumn: public wxDataViewColumnBase
+class WXDLLIMPEXP_ADV wxDataViewColumn: public wxDataViewColumnBase
{
public:
- wxDataViewColumn( const wxString &title, wxDataViewCell *cell, size_t model_column, int flags = 0 );
+ wxDataViewColumn( const wxString &title, wxDataViewCell *cell, size_t model_column,
+ int fixed_width = 80, wxDataViewColumnSizing sizing = wxDATAVIEW_COL_WIDTH_FIXED, int flags = 0 );
virtual ~wxDataViewColumn();
virtual void SetTitle( const wxString &title );
- void SetWidth( int width ) { m_width = width; }
- int GetWidth() { return m_width; }
+ virtual int GetWidth();
+ virtual void SetFixedWidth( int width );
+ virtual int GetFixedWidth();
+
private:
- int m_width;
+ int m_width;
+ wxDataViewColumnSizing m_sizing;
+ int m_fixedWidth;
protected:
DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewColumn)
// wxDataViewCtrl
// ---------------------------------------------------------
-class WXDLLIMPEXP_CORE wxDataViewCtrl: public wxDataViewCtrlBase,
+class WXDLLIMPEXP_ADV wxDataViewCtrl: public wxDataViewCtrlBase,
public wxScrollHelperNative
{
public: