#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;
class wxMacListControl;
-// type of compare function for wxListCtrl sort operation
-typedef int (*wxListCtrlCompare)(long item1, long item2, long sortData);
-
class WXDLLEXPORT wxListCtrl: public wxControl
{
DECLARE_DYNAMIC_CLASS(wxListCtrl)
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,
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
int m_count; // for virtual lists, store item count
};
-typedef void (wxEvtHandler::*wxListEventFunction)(wxListEvent&);
-
#endif
// _WX_LISTCTRL_H_