X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e86edab05be77792498289f0605b49629bb912af..43c42c18d36c703a88b1b7b697bac27fe5608eca:/include/wx/osx/core/dataview.h?ds=sidebyside diff --git a/include/wx/osx/core/dataview.h b/include/wx/osx/core/dataview.h index e5d4be4a79..f02d328eea 100644 --- a/include/wx/osx/core/dataview.h +++ b/include/wx/osx/core/dataview.h @@ -22,7 +22,7 @@ typedef wxWidgetImpl wxWidgetImplType; // --------------------------------------------------------- // Helper functions for dataview implementation on OSX // --------------------------------------------------------- -wxWidgetImplType* CreateDataView(wxWindowMac* wxpeer, wxWindowMac* parent, wxWindowID id, +wxWidgetImplType* CreateDataView(wxWindowMac* wxpeer, wxWindowMac* parent, wxWindowID id, wxPoint const& pos, wxSize const& size, long style, long extraStyle); wxString ConcatenateDataViewItemValues(wxDataViewCtrl const* dataViewCtrlPtr, wxDataViewItem const& dataViewItem); // concatenates all data of the visible columns of the passed control @@ -34,7 +34,7 @@ wxString ConcatenateDataViewItemValues(wxDataViewCtrl const* dataViewCtrlPtr, wx // for the carbon and cocoa environment. // ATTENTION // All methods assume that the passed column pointers are -// valid (unless a NULL pointer is explicitely allowed +// valid (unless a NULL pointer is explicitly allowed // to be passed)! // ATTENTION // --------------------------------------------------------- @@ -58,6 +58,7 @@ public: virtual int GetColumnPosition (wxDataViewColumn const* columnPtr) const = 0; // returns the position of the passed column in the native control virtual bool InsertColumn (unsigned int pos, wxDataViewColumn* columnPtr) = 0; // inserts a column at pos in the native control; // the method can assume that the column's owner is already set + virtual void FitColumnWidthToContent(unsigned int pos) = 0; // resizes column to fit its content // // item related methods @@ -85,6 +86,12 @@ public: // // selection related methods // + virtual wxDataViewItem GetCurrentItem() const = 0; + virtual void SetCurrentItem(const wxDataViewItem& item) = 0; + + virtual wxDataViewColumn *GetCurrentColumn() const = 0; + + virtual int GetSelectedItemsCount() const = 0; virtual int GetSelections(wxDataViewItemArray& sel) const = 0; // returns all selected items in the native control virtual bool IsSelected (wxDataViewItem const& item) const = 0; // checks if the passed item is selected in the native control virtual void Select (wxDataViewItem const& item) = 0; // selects the passed item in the native control @@ -105,6 +112,7 @@ public: virtual void HitTest (wxPoint const& point, wxDataViewItem& item, wxDataViewColumn*& columnPtr) const = 0; // return the item and column pointer that contains with the passed point virtual void SetRowHeight(wxDataViewItem const& item, unsigned int height) = 0; // sets the height of the row containg the passed item in the native control virtual void OnSize (void) = 0; // updates the layout of the native control after a size event + virtual void StartEditor( const wxDataViewItem & item, unsigned int column ) = 0; // starts editing the passed in item and column }; #endif // _WX_DATAVIEWCTRL_CORE_H_