X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8045736e4d85cfa0fc9115787ab34cfc8332a8bb..ad63bf413b716c673804ab7ef957d90731f8f839:/include/wx/gtk/dataview.h diff --git a/include/wx/gtk/dataview.h b/include/wx/gtk/dataview.h index 1e398fe662..1dd168ddb7 100644 --- a/include/wx/gtk/dataview.h +++ b/include/wx/gtk/dataview.h @@ -83,8 +83,10 @@ class wxDataViewCustomCell: public wxDataViewCell { public: wxDataViewCustomCell( const wxString &varianttype = wxT("string"), - wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT ); + wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT, + bool no_init = false ); ~wxDataViewCustomCell(); + bool Init(); virtual bool Render( wxRect cell, wxDC *dc, int state ) = 0; virtual wxSize GetSize() = 0; @@ -99,6 +101,31 @@ protected: DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewCustomCell) }; +// --------------------------------------------------------- +// wxDataViewProgressCell +// --------------------------------------------------------- + +class wxDataViewProgressCell: public wxDataViewCustomCell +{ +public: + wxDataViewProgressCell( const wxString &label = wxEmptyString, + const wxString &varianttype = wxT("long"), + wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT ); + ~wxDataViewProgressCell(); + + bool SetValue( const wxVariant &value ); + + virtual bool Render( wxRect cell, wxDC *dc, int state ); + virtual wxSize GetSize(); + +private: + wxString m_label; + int m_value; + +protected: + DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewProgressCell) +}; + // --------------------------------------------------------- // wxDataViewColumn // ---------------------------------------------------------