X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cfb667630611a92b0243b7f5767cbe3f750a3d2b..04a33b503114fa4b1d8b96f5c8c31a545a18da6e:/samples/listctrl/listtest.h diff --git a/samples/listctrl/listtest.h b/samples/listctrl/listtest.h index 2673ce0e98..e203f8f5f8 100644 --- a/samples/listctrl/listtest.h +++ b/samples/listctrl/listtest.h @@ -40,6 +40,8 @@ public: : wxListCtrl(parent, id, pos, size, style), m_attr(*wxBLUE, *wxLIGHT_GREY, wxNullFont) { + m_updated = -1; + #ifdef __POCKETPC__ EnableContextMenu(); #endif @@ -59,10 +61,6 @@ public: void OnEndLabelEdit(wxListEvent& event); void OnDeleteItem(wxListEvent& event); void OnDeleteAllItems(wxListEvent& event); -#if WXWIN_COMPATIBILITY_2_4 - void OnGetInfo(wxListEvent& event); - void OnSetInfo(wxListEvent& event); -#endif void OnSelected(wxListEvent& event); void OnDeselected(wxListEvent& event); void OnListKeyDown(wxListEvent& event); @@ -76,6 +74,8 @@ public: void OnContextMenu(wxContextMenuEvent& event); #endif + void OnRightClick(wxMouseEvent& event); + private: void ShowContextMenu(const wxPoint& pos); wxLog *m_logOld; @@ -90,6 +90,9 @@ private: wxListItemAttr m_attr; + long m_updated; + + DECLARE_NO_COPY_CLASS(MyListCtrl) DECLARE_EVENT_TABLE() }; @@ -117,6 +120,7 @@ protected: void OnVirtualView(wxCommandEvent& event); void OnSmallVirtualView(wxCommandEvent& event); + void OnGoTo(wxCommandEvent& event); void OnFocusLast(wxCommandEvent& event); void OnToggleFirstSel(wxCommandEvent& event); void OnDeselectAll(wxCommandEvent& event); @@ -131,9 +135,15 @@ protected: void OnToggleMultiSel(wxCommandEvent& event); void OnShowColInfo(wxCommandEvent& event); void OnShowSelInfo(wxCommandEvent& event); + void OnShowViewRect(wxCommandEvent& event); +#ifdef wxHAS_LISTCTRL_COLUMN_ORDER + void OnSetColOrder(wxCommandEvent& event); + void OnGetColOrder(wxCommandEvent& event); +#endif // wxHAS_LISTCTRL_COLUMN_ORDER void OnFreeze(wxCommandEvent& event); void OnThaw(wxCommandEvent& event); void OnToggleLines(wxCommandEvent& event); + void OnToggleMacUseGeneric(wxCommandEvent& event); void OnUpdateShowColInfo(wxUpdateUIEvent& event); void OnUpdateToggleMultiSel(wxUpdateUIEvent& event); @@ -197,10 +207,17 @@ enum LIST_TOGGLE_FIRST, LIST_SHOW_COL_INFO, LIST_SHOW_SEL_INFO, + LIST_SHOW_VIEW_RECT, +#ifdef wxHAS_LISTCTRL_COLUMN_ORDER + LIST_SET_COL_ORDER, + LIST_GET_COL_ORDER, +#endif // wxHAS_LISTCTRL_COLUMN_ORDER + LIST_GOTO, LIST_FOCUS_LAST, LIST_FREEZE, LIST_THAW, LIST_TOGGLE_LINES, + LIST_MAC_USE_GENERIC, LIST_CTRL = 1000 };