git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47258
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
-bool operator == ( const wxDataViewItem & left, const wxDataViewItem & right );
+bool operator == ( const wxDataViewItem& left, const wxDataViewItem& right );
// ---------------------------------------------------------
// wxDataViewModel
// ---------------------------------------------------------
// ---------------------------------------------------------
// wxDataViewModel
// ---------------------------------------------------------
+typedef int (wxCALLBACK *wxDataViewModelCompare)
+ (const wxDataViewItem& item1, const wxDataViewItem& item2, unsigned int col, unsigned int option );
+
class WXDLLIMPEXP_ADV wxDataViewModel: public wxObjectRefData
{
public:
class WXDLLIMPEXP_ADV wxDataViewModel: public wxObjectRefData
{
public:
void AddNotifier( wxDataViewModelNotifier *notifier );
void RemoveNotifier( wxDataViewModelNotifier *notifier );
void AddNotifier( wxDataViewModelNotifier *notifier );
void RemoveNotifier( wxDataViewModelNotifier *notifier );
+ void SetCompareFunction( wxDataViewModelCompare func ) { m_cmpFunc = func; }
+ wxDataViewModelCompare GetCompareFunction() { return m_cmpFunc; }
+
protected:
// the user should not delete this class directly: he should use DecRef() instead!
virtual ~wxDataViewModel() { }
protected:
// the user should not delete this class directly: he should use DecRef() instead!
virtual ~wxDataViewModel() { }
+ wxList m_notifiers;
+ wxDataViewModelCompare m_cmpFunc;
};
// ---------------------------------------------------------
};
// ---------------------------------------------------------
wxDataViewModel::wxDataViewModel()
{
m_notifiers.DeleteContents( true );
wxDataViewModel::wxDataViewModel()
{
m_notifiers.DeleteContents( true );
}
bool wxDataViewModel::ItemAdded( const wxDataViewItem &parent, const wxDataViewItem &item )
}
bool wxDataViewModel::ItemAdded( const wxDataViewItem &parent, const wxDataViewItem &item )