X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8e59cbe40ca6d003598e71c3c54d9a0c06bdff08..571d991bb3232f0dcd3319dbdc9d35e5c80f4c71:/include/wx/osx/cocoa/dataview.h diff --git a/include/wx/osx/cocoa/dataview.h b/include/wx/osx/cocoa/dataview.h index ded2b5f9b7..6e97eb87ed 100644 --- a/include/wx/osx/cocoa/dataview.h +++ b/include/wx/osx/cocoa/dataview.h @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: wx/osx/carbon/dataview.h +// Name: wx/osx/cocoa/dataview.h // Purpose: wxDataViewCtrl native implementation header for carbon // Author: // Id: $Id: dataview.h 57374 2009-01-27 @@ -250,7 +250,7 @@ private: // owned by the set. Furthermore, children of the last parent are stored // in a linear list. // -@interface wxCocoaOutlineDataSource : NSObject +@interface wxCocoaOutlineDataSource : NSObject wxOSX_10_6_AND_LATER() { // descriptors specifying the sorting (currently the array only holds one // object only) @@ -398,7 +398,7 @@ private: // wxCocoaOutlineView // ============================================================================ -@interface wxCocoaOutlineView : NSOutlineView +@interface wxCocoaOutlineView : NSOutlineView wxOSX_10_6_AND_LATER() { @private // column and row of the cell being edited or -1 if none @@ -471,6 +471,8 @@ public: // // selection related methods (inherited from wxDataViewWidgetImpl) // + virtual wxDataViewItem GetCurrentItem() const; + virtual void SetCurrentItem(const wxDataViewItem& item); virtual int GetSelections(wxDataViewItemArray& sel) const; virtual bool IsSelected(const wxDataViewItem& item) const; virtual void Select(const wxDataViewItem& item); @@ -498,7 +500,12 @@ public: wxDataFormat GetDnDDataFormat(wxDataObjectComposite* dataObjects); wxDataObjectComposite* GetDnDDataObjects(NSData* dataObject) const; + // Cocoa-specific helpers + id GetItemAtRow(int row) const; + private: + void InitOutlineView(long style); + wxCocoaOutlineDataSource* m_DataSource; wxCocoaOutlineView* m_OutlineView;