X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c71963cdbeb3b801cbce75830922dfa05c5ee721..7c2779590d7128bf7354e86dd0e487f09fe3434c:/samples/listctrl/listtest.h diff --git a/samples/listctrl/listtest.h b/samples/listctrl/listtest.h index 0fafad7b75..f529be7d6e 100644 --- a/samples/listctrl/listtest.h +++ b/samples/listctrl/listtest.h @@ -80,7 +80,9 @@ class MyFrame: public wxFrame { public: MyFrame(const wxChar *title, int x, int y, int w, int h); - ~MyFrame(); + virtual ~MyFrame(); + + void DoSize(); protected: void OnSize(wxSizeEvent& event); @@ -111,8 +113,10 @@ protected: void OnShowSelInfo(wxCommandEvent& event); void OnFreeze(wxCommandEvent& event); void OnThaw(wxCommandEvent& event); + void OnToggleLines(wxCommandEvent& event); void OnUpdateShowColInfo(wxUpdateUIEvent& event); + void OnUpdateToggleMultiSel(wxUpdateUIEvent& event); wxImageList *m_imageListNormal; wxImageList *m_imageListSmall; @@ -123,14 +127,19 @@ protected: private: // recreate the list control with the new flags - void RecreateList(long flags, bool withText = TRUE); + void RecreateList(long flags, bool withText = true); // fill the control with items depending on the view void InitWithListItems(); void InitWithReportItems(); - void InitWithIconItems(bool withText, bool sameIcon = FALSE); + void InitWithIconItems(bool withText, bool sameIcon = false); void InitWithVirtualItems(); + // return true if the control is not in virtual view, give an error message + // and return false if it is + bool CheckNonVirtual() const; + + wxLog *m_logOld; DECLARE_NO_COPY_CLASS(MyFrame) @@ -168,6 +177,7 @@ enum LIST_FOCUS_LAST, LIST_FREEZE, LIST_THAW, + LIST_TOGGLE_LINES, LIST_CTRL = 1000 };