X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fadc2df6823d988f7a264b94e69a7e1bbcac1337..565382de29554aceb4bf275e650e3b9ef70826f8:/interface/wx/dataview.h diff --git a/interface/wx/dataview.h b/interface/wx/dataview.h index c5f69353bd..22c00f4efe 100644 --- a/interface/wx/dataview.h +++ b/interface/wx/dataview.h @@ -203,11 +203,6 @@ public: */ wxDataViewModel(); - /** - Destructor. This should not be called directly. Use DecRef() instead. - */ - virtual ~wxDataViewModel(); - /** Adds a wxDataViewModelNotifier to the model. */ @@ -369,6 +364,13 @@ public: */ virtual bool ValueChanged(const wxDataViewItem& item, unsigned int col); + +protected: + + /** + Destructor. This should not be called directly. Use DecRef() instead. + */ + virtual ~wxDataViewModel(); }; @@ -855,11 +857,6 @@ public: */ virtual bool ClearColumns(); - /** - Unselects all rows. - */ - void ClearSelection(); - /** Collapses the item. */ @@ -1516,7 +1513,7 @@ public: */ wxDataViewBitmapRenderer(const wxString& varianttype = "wxBitmap", wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT, - int align = wxDVR_DEFAULT_ALIGNMENT, + int align = wxDVR_DEFAULT_ALIGNMENT); }; @@ -1543,7 +1540,7 @@ enum wxDataViewColumnFlags @library{wxadv} @category{dvc} */ -class wxDataViewColumn : public wxObject +class wxDataViewColumn : public wxHeaderColumn { public: //@{ @@ -1564,16 +1561,6 @@ public: int flags = wxDATAVIEW_COL_RESIZABLE); //@} - /** - Destructor. - */ - virtual ~wxDataViewColumn(); - - /** - Returns the bitmap in the header of the column, if any. - */ - const wxBitmap& GetBitmap() const; - /** Returns the index of the column of the model, which this wxDataViewColumn is displaying. @@ -1591,68 +1578,6 @@ public: @see wxDataViewRenderer. */ wxDataViewRenderer* GetRenderer() const; - - /** - Returns @true if the column is reorderable. - */ - bool GetReorderable(); - - /** - Returns @true if the column is sortable. - - @see SetSortable() - */ - bool GetSortable(); - - /** - Returns the width of the column. - */ - virtual int GetWidth() const; - - /** - Returns @true, if the sort order is ascending. - - @see SetSortOrder() - */ - virtual bool IsSortOrderAscending() const; - - /** - Set the alignment of the column header. - */ - virtual void SetAlignment(wxAlignment align); - - /** - Set the bitmap of the column header. - */ - virtual void SetBitmap(const wxBitmap& bitmap); - - /** - Indicate wether the column can be reordered by the user using the mouse. - This is typically implemented visually by dragging the header button around. - */ - virtual void SetReorderable(bool reorderable); - - /** - Indicate the sort order if the implementation of the wxDataViewCtrl supports - it, most commonly by showing a little arrow. - */ - virtual void SetSortOrder(bool ascending); - - /** - Indicate that the column is sortable. - This does not show any sorting indicate yet, but it does make the column - header clickable. Call SetSortOrder() afterwards to actually make the sort - indicator appear. - - If @a sortable is @false, the column header is no longer clickable and - the sort indicator (little arrow) will disappear. - */ - virtual void SetSortable(bool sortable); - - /** - Set the title of the column header to @a title. - */ - virtual void SetTitle(const wxString& title); };