X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/526954c5968baa29218c994ec48e476ae2bd4b9f..e59127de8b89a377348c11ea11430a4fcbf4ff5d:/samples/listctrl/listtest.h?ds=inline diff --git a/samples/listctrl/listtest.h b/samples/listctrl/listtest.h index a75cd3cadd..f99c135eb2 100644 --- a/samples/listctrl/listtest.h +++ b/samples/listctrl/listtest.h @@ -11,7 +11,7 @@ // not all ports have support for EVT_CONTEXT_MENU yet, don't define // USE_CONTEXT_MENU for those which don't -#if defined(__WXMOTIF__) || defined(__WXPM__) || defined(__WXX11__) || defined(__WXMGL__) +#if defined(__WXMOTIF__) || defined(__WXPM__) || defined(__WXX11__) #define USE_CONTEXT_MENU 0 #else #define USE_CONTEXT_MENU 1 @@ -37,8 +37,7 @@ public: const wxPoint& pos, const wxSize& size, long style) - : wxListCtrl(parent, id, pos, size, style), - m_attr(*wxBLUE, *wxLIGHT_GREY, wxNullFont) + : wxListCtrl(parent, id, pos, size, style) { m_updated = -1; @@ -88,8 +87,6 @@ private: virtual int OnGetItemColumnImage(long item, long column) const; virtual wxListItemAttr *OnGetItemAttr(long item) const; - wxListItemAttr m_attr; - long m_updated; @@ -135,6 +132,7 @@ protected: void OnSort(wxCommandEvent& event); void OnSetFgColour(wxCommandEvent& event); void OnSetBgColour(wxCommandEvent& event); + void OnSetRowLines(wxCommandEvent& event); void OnToggleMultiSel(wxCommandEvent& event); void OnShowColInfo(wxCommandEvent& event); void OnShowSelInfo(wxCommandEvent& event); @@ -147,6 +145,7 @@ protected: void OnThaw(wxCommandEvent& event); void OnToggleLines(wxCommandEvent& event); void OnToggleHeader(wxCommandEvent& event); + void OnToggleBell(wxCommandEvent& event); #ifdef __WXOSX__ void OnToggleMacUseGeneric(wxCommandEvent& event); #endif // __WXOSX__ @@ -155,6 +154,7 @@ protected: void OnUpdateUIEnableInReport(wxUpdateUIEvent& event); void OnUpdateToggleMultiSel(wxUpdateUIEvent& event); void OnUpdateToggleHeader(wxUpdateUIEvent& event); + void OnUpdateRowLines(wxUpdateUIEvent& event); wxImageList *m_imageListNormal; wxImageList *m_imageListSmall; @@ -217,8 +217,10 @@ enum LIST_FIND, LIST_SET_FG_COL, LIST_SET_BG_COL, + LIST_ROW_LINES, LIST_TOGGLE_MULTI_SEL, LIST_TOGGLE_HEADER, + LIST_TOGGLE_BELL, LIST_TOGGLE_FIRST, LIST_SHOW_COL_INFO, LIST_SHOW_SEL_INFO,