X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f554a14b8989125033f32fd9bfc4ef877664eb39..2d97237dac7f35e78f4a1ce1877dafc7b05ffb4f:/include/wx/generic/dataview.h diff --git a/include/wx/generic/dataview.h b/include/wx/generic/dataview.h index cb8a2d7d39..89d16535c0 100644 --- a/include/wx/generic/dataview.h +++ b/include/wx/generic/dataview.h @@ -20,15 +20,15 @@ // 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 ); @@ -76,7 +76,7 @@ protected: // wxDataViewCustomCell // --------------------------------------------------------- -class wxDataViewCustomCell: public wxDataViewCell +class WXDLLIMPEXP_ADV wxDataViewCustomCell: public wxDataViewCell { public: wxDataViewCustomCell( const wxString &varianttype = wxT("string"), @@ -90,7 +90,7 @@ protected: // wxDataViewTextCell // --------------------------------------------------------- -class wxDataViewTextCell: public wxDataViewCustomCell +class WXDLLIMPEXP_ADV wxDataViewTextCell: public wxDataViewCustomCell { public: wxDataViewTextCell( const wxString &varianttype = wxT("string"), @@ -113,7 +113,7 @@ protected: // wxDataViewToggleCell // --------------------------------------------------------- -class wxDataViewToggleCell: public wxDataViewCustomCell +class WXDLLIMPEXP_ADV wxDataViewToggleCell: public wxDataViewCustomCell { public: wxDataViewToggleCell( const wxString &varianttype = wxT("bool"), @@ -137,7 +137,7 @@ protected: // wxDataViewProgressCell // --------------------------------------------------------- -class wxDataViewProgressCell: public wxDataViewCustomCell +class WXDLLIMPEXP_ADV wxDataViewProgressCell: public wxDataViewCustomCell { public: wxDataViewProgressCell( const wxString &label = wxEmptyString, @@ -162,7 +162,7 @@ protected: // wxDataViewDateCell // --------------------------------------------------------- -class wxDataViewDateCell: public wxDataViewCustomCell +class WXDLLIMPEXP_ADV wxDataViewDateCell: public wxDataViewCustomCell { public: wxDataViewDateCell( const wxString &varianttype = wxT("datetime"), @@ -186,19 +186,24 @@ protected: // 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) @@ -208,7 +213,7 @@ protected: // wxDataViewCtrl // --------------------------------------------------------- -class WXDLLIMPEXP_CORE wxDataViewCtrl: public wxDataViewCtrlBase, +class WXDLLIMPEXP_ADV wxDataViewCtrl: public wxDataViewCtrlBase, public wxScrollHelperNative { public: