/////////////////////////////////////////////////////////////////////////////
-// 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
// 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(<NSOutlineViewDataSource>)
{
// descriptors specifying the sorting (currently the array only holds one
// object only)
ofItem:(id)item;
-(id)
- outlineView:(NSOutlineView*)outlineView
+ outlineView:(NSOutlineView*)outlineView
objectValueForTableColumn:(NSTableColumn*)tableColumn
byItem:(id)item;
// wxCocoaOutlineView
// ============================================================================
-@interface wxCocoaOutlineView : NSOutlineView
+@interface wxCocoaOutlineView : NSOutlineView wxOSX_10_6_AND_LATER(<NSOutlineViewDelegate>)
{
@private
// column and row of the cell being edited or -1 if none
virtual wxDataViewColumn* GetColumn(unsigned int pos) const;
virtual int GetColumnPosition(wxDataViewColumn const* columnPtr) const;
virtual bool InsertColumn(unsigned int pos, wxDataViewColumn* columnPtr);
+ virtual void FitColumnWidthToContent(unsigned int pos);
// item related methods (inherited from wxDataViewWidgetImpl)
virtual bool Add(const wxDataViewItem& parent, const wxDataViewItem& item);
//
// selection related methods (inherited from wxDataViewWidgetImpl)
//
+ virtual wxDataViewItem GetCurrentItem() const;
+ virtual void SetCurrentItem(const wxDataViewItem& item);
+ virtual wxDataViewColumn *GetCurrentColumn() const;
+ virtual int GetSelectedItemsCount() const;
virtual int GetSelections(wxDataViewItemArray& sel) const;
virtual bool IsSelected(const wxDataViewItem& item) const;
virtual void Select(const wxDataViewItem& item);
wxDataViewColumn*& columnPtr) const;
virtual void SetRowHeight(const wxDataViewItem& item, unsigned int height);
virtual void OnSize();
+
+ virtual void StartEditor( const wxDataViewItem & item, unsigned int column );
// drag & drop helper methods
wxDataFormat GetDnDDataFormat(wxDataObjectComposite* dataObjects);