X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/72bc14da9d9db1916a5dc51c89fa4ae33857d53b..f089713f9e8be7aa10fd7094b11de361c9bc949a:/include/wx/mac/carbon/listctrl.h diff --git a/include/wx/mac/carbon/listctrl.h b/include/wx/mac/carbon/listctrl.h index f9b166f2ae..6330ba6be8 100644 --- a/include/wx/mac/carbon/listctrl.h +++ b/include/wx/mac/carbon/listctrl.h @@ -12,15 +12,10 @@ #ifndef _WX_LISTCTRL_H_ #define _WX_LISTCTRL_H_ -#include "wx/control.h" -#include "wx/event.h" -#include "wx/imaglist.h" #include "wx/generic/listctrl.h" class wxMacDataBrowserListCtrlControl; - -// type of compare function for wxListCtrl sort operation -typedef int (*wxListCtrlCompare)(long item1, long item2, long sortData); +class wxMacListControl; class WXDLLEXPORT wxListCtrl: public wxControl { @@ -311,6 +306,9 @@ class WXDLLEXPORT wxListCtrl: public wxControl void Command(wxCommandEvent& event) { ProcessCommand(event); }; + wxListCtrlCompare GetCompareFunc() { return m_compareFunc; }; + long GetCompareFuncData() { return m_compareFuncData; }; + protected: // overrides needed for pimpl approach virtual void DoSetSize(int x, int y, @@ -322,7 +320,10 @@ protected: wxGenericListCtrl* m_genericImpl; // allow use of the generic impl. wxMacDataBrowserListCtrlControl* m_dbImpl; - + void* /*EventHandlerRef*/ m_macListCtrlEventHandler; + wxListCtrlCompare m_compareFunc; + long m_compareFuncData; + wxTextCtrl* m_textCtrl; // The control used for editing a label wxImageList * m_imageListNormal; // The image list for normal icons wxImageList * m_imageListSmall; // The image list for small icons @@ -342,7 +343,5 @@ protected: int m_count; // for virtual lists, store item count }; -typedef void (wxEvtHandler::*wxListEventFunction)(wxListEvent&); - #endif // _WX_LISTCTRL_H_