X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/86f975a8588dff94739f25091ba7910b0763a316..11c7d5b6d1cb54d5ffdc11d8ff092b41e225bfb6:/include/wx/listctrl.h diff --git a/include/wx/listctrl.h b/include/wx/listctrl.h index f6fe64203a..cf40f4bd41 100644 --- a/include/wx/listctrl.h +++ b/include/wx/listctrl.h @@ -15,6 +15,8 @@ #include "wx/generic/listctrl.h" #elif defined(__WXMAC__) #include "wx/generic/listctrl.h" +#elif defined(__WXPM__) +#include "wx/generic/listctrl.h" #elif defined(__WXSTUBS__) #include "wx/generic/listctrl.h" #endif @@ -37,6 +39,21 @@ public: wxListItem m_item; + inline int GetCode() { return m_code; } + inline long GetIndex() { return m_itemIndex; } + inline long GetOldIndex() { return m_oldItemIndex; } + inline long GetItem() { return m_itemIndex; } + inline long GetOldItem() { return m_oldItemIndex; } + inline int GetColumn() { return m_col; } + inline bool Cancelled() { return m_cancelled; } + inline wxPoint GetPoint() { return m_pointDrag; } + inline const wxString &GetLabel() const { return m_item.m_text; } + inline const wxString &GetText() const { return m_item.m_text; } + inline int GetImage() { return m_item.m_image; } + inline long GetData() { return m_item.m_data; } + inline long GetMask() { return m_item.m_mask; } + inline const wxListItem &GetItem() const { return m_item; } + private: DECLARE_DYNAMIC_CLASS(wxListEvent) }; @@ -56,6 +73,8 @@ typedef void (wxEvtHandler::*wxListEventFunction)(wxListEvent&); #define EVT_LIST_KEY_DOWN(id, fn) { wxEVT_COMMAND_LIST_KEY_DOWN, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, NULL }, #define EVT_LIST_INSERT_ITEM(id, fn) { wxEVT_COMMAND_LIST_INSERT_ITEM, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, NULL }, #define EVT_LIST_COL_CLICK(id, fn) { wxEVT_COMMAND_LIST_COL_CLICK, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, NULL }, +#define EVT_LIST_ITEM_RIGHT_CLICK(id, fn) { wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, (wxObject *) NULL }, +#define EVT_LIST_ITEM_MIDDLE_CLICK(id, fn) { wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, (wxObject *) NULL }, #define EVT_LIST_ITEM_ACTIVATED(id, fn) { wxEVT_COMMAND_LIST_ITEM_ACTIVATED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxListEventFunction) & fn, (wxObject *) NULL }, #endif