- bool m_ascending; // sorting order
-
- WXDataBrowserPropertyID m_propertyID; // each column is identified by its unique property ID (NOT by the column index)
-
- int m_flags; // flags for the column
- int m_maxWidth; // maximum width for the column
- int m_minWidth; // minimum width for the column
- int m_width; // column width
-
- wxAlignment m_alignment; // column header alignment
-
- wxString m_title; // column title
-
- // wxWidget internal stuff:
- DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewColumn)
-};
-
-// ---------------------------------------------------------
-// wxDataViewCtrl
-// ---------------------------------------------------------
-class WXDLLIMPEXP_ADV wxDataViewCtrl: public wxDataViewCtrlBase
-{
-public:
- // Constructors / destructor:
- wxDataViewCtrl()
- {
- this->Init();
- }
- wxDataViewCtrl(wxWindow *parent, wxWindowID id, wxPoint const& pos = wxDefaultPosition, wxSize const& size = wxDefaultSize, long style = 0,
- wxValidator const& validator = wxDefaultValidator)
- {
- this->Init();
- this->Create(parent, id, pos, size, style, validator );
- }
-
- ~wxDataViewCtrl();
-
- // explicit control creation
- bool Create(wxWindow *parent, wxWindowID id, wxPoint const& pos=wxDefaultPosition, wxSize const& size=wxDefaultSize, long style=0,
- wxValidator const& validator=wxDefaultValidator);
-
- virtual wxControl* GetMainWindow() // should disappear as it is not of any use for the native implementation
- {
- return this;
- }
-
- // inherited methods from 'wxDataViewCtrlBase':
- virtual bool AssociateModel(wxDataViewModel* model);
-
- virtual bool AppendColumn(wxDataViewColumn* columnPtr);
- virtual bool PrependColumn(wxDataViewColumn* columnPtr);
- virtual bool InsertColumn( unsigned int pos, wxDataViewColumn *col );
-
- virtual bool ClearColumns();
- virtual bool DeleteColumn(wxDataViewColumn* columnPtr);
- virtual wxDataViewColumn* GetColumn(unsigned int pos) const;
- virtual unsigned int GetColumnCount() const;
- virtual int GetColumnPosition(wxDataViewColumn const* columnPtr) const;
-
- virtual void Collapse(wxDataViewItem const& item);
- virtual void EnsureVisible(wxDataViewItem const& item, wxDataViewColumn const* columnPtr=NULL);
- virtual void Expand(wxDataViewItem const& item);
-
- virtual wxDataViewColumn* GetSortingColumn() const;
-
- virtual unsigned int GetCount() const;
- virtual wxRect GetItemRect(wxDataViewItem const& item, wxDataViewColumn const* columnPtr) const;
- virtual wxDataViewItem GetSelection() const;
- virtual int GetSelections(wxDataViewItemArray& sel) const;
-
- virtual void HitTest(wxPoint const& point, wxDataViewItem& item, wxDataViewColumn*& columnPtr) const;
-
- virtual bool IsSelected(wxDataViewItem const& item) const;
-
- virtual void SelectAll();
- virtual void Select(wxDataViewItem const& item);
- virtual void SetSelections(wxDataViewItemArray const& sel);
-
- virtual void Unselect(wxDataViewItem const& item);
- virtual void UnselectAll();
+ virtual void DataBrowserDrawItemProc(DataBrowserItemID itemID, DataBrowserPropertyID propertyID, DataBrowserItemState state, Rect const* rectangle, SInt16 bitDepth, Boolean colorDevice);
+ virtual Boolean DataBrowserEditItemProc(DataBrowserItemID itemID, DataBrowserPropertyID propertyID, CFStringRef theString, Rect* maxEditTextRect, Boolean* shrinkToFit);
+ virtual Boolean DataBrowserHitTestProc (DataBrowserItemID itemID, DataBrowserPropertyID propertyID, Rect const* theRect, Rect const* mouseRect);
+ virtual DataBrowserTrackingResult DataBrowserTrackingProc(DataBrowserItemID itemID, DataBrowserPropertyID propertyID, Rect const* theRect, Point startPt, EventModifiers modifiers);