X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e51bf69961dcb305d1c74539310ebd686993d143..3d5930b5ea5cd28d97ca9df147cd48bc51061480:/include/wx/generic/dataview.h diff --git a/include/wx/generic/dataview.h b/include/wx/generic/dataview.h index 6b14e807a3..a10ee6606b 100644 --- a/include/wx/generic/dataview.h +++ b/include/wx/generic/dataview.h @@ -389,8 +389,6 @@ class WXDLLIMPEXP_ADV wxDataViewCtrl: public wxDataViewCtrlBase, public: wxDataViewCtrl() : wxScrollHelperNative(this) { - //No sorting column at start, I think - m_sortingColumn = NULL; Init(); } @@ -400,7 +398,6 @@ public: const wxValidator& validator = wxDefaultValidator ) : wxScrollHelperNative(this) { - m_sortingColumn = NULL; Create(parent, id, pos, size, style, validator ); } @@ -414,8 +411,10 @@ public: const wxValidator& validator = wxDefaultValidator ); virtual bool AssociateModel( wxDataViewModel *model ); + virtual bool AppendColumn( wxDataViewColumn *col ); virtual bool PrependColumn( wxDataViewColumn *col ); + virtual bool InsertColumn( unsigned int pos, wxDataViewColumn *col ); virtual void DoSetExpanderColumn(); virtual void DoSetIndent(); @@ -445,6 +444,8 @@ public: virtual void Expand( const wxDataViewItem & item ); virtual void Collapse( const wxDataViewItem & item ); + + virtual void SetFocus(); protected: virtual int GetSelections( wxArrayInt & sel ) const; @@ -488,6 +489,7 @@ private: private: void OnSize( wxSizeEvent &event ); + virtual wxSize GetSizeAvailableForScrollTarget(const wxSize& size); // we need to return a special WM_GETDLGCODE value to process just the // arrows but let the other navigation characters through