diff --git a/cfg/wxwidgets.cfg b/cfg/wxwidgets.cfg index ee5978722..f15f4723c 100644 --- a/cfg/wxwidgets.cfg +++ b/cfg/wxwidgets.cfg @@ -1065,7 +1065,7 @@ This function should be used instead of changing 'wxCAL_NO_YEAR_CHANGE' style bit directly. It allows or disallows the user to change the year interactively. Only in generic 'wxCalendarCtrl'. - + false @@ -1074,6 +1074,33 @@ This function is deprecated and kept mostly for backwards compatibility. Please override 'GetMargins()' method instead in any new code. + + + + false + + + + + This function is deprecated and kept mostly for backwards compatibility. Please override 'Dismiss()' method instead in any new code. + + + + + false + + This function is deprecated and kept mostly for backwards compatibility. Please override 'Popup()' method instead in any new code. + + + + + false + + + + + This function is deprecated and kept mostly for backwards compatibility. Please override 'SetMargins()' method instead in any new code. + diff --git a/test/cfg/wxwidgets.cpp b/test/cfg/wxwidgets.cpp index a95596139..1db8076d3 100644 --- a/test/cfg/wxwidgets.cpp +++ b/test/cfg/wxwidgets.cpp @@ -84,17 +84,39 @@ void deprecatedFunctions(wxApp &a, const wxString &s, wxArtProvider *artProvider // cppcheck-suppress MacOpenFileCalled a.MacOpenFile(s); #endif + +#if wxCHECK_VERSION(3, 1, 0) // wxWidets-3.1.0 or higher: + // Some functions are not available anymore in newer versions + + // @todo cppcheck-suppress ShowPopupCalled + comboCtrl.ShowPopup(); +#else // cppcheck-suppress InsertCalled wxArtProvider::Insert(artProvider); + + // cppcheck-suppress GetTextIndentCalled + // cppcheck-suppress ignoredReturnValue + comboCtrl.GetTextIndent(); + + // cppcheck-suppress HidePopupCalled + comboCtrl.HidePopup(true); + // cppcheck-suppress HidePopupCalled + comboCtrl.HidePopup(false); + // cppcheck-suppress HidePopupCalled + comboCtrl.HidePopup(/*default=false*/); + + // cppcheck-suppress SetTextIndentCalled + comboCtrl.SetTextIndent(0); +#endif + #if defined(__WXMSW__) || defined(__WXGTK__) // EnableYearChange() is not available on these GUI systems #else // cppcheck-suppress EnableYearChangeCalled calenderCtrl.EnableYearChange(false); // cppcheck-suppress EnableYearChangeCalled + calenderCtrl.EnableYearChange(true); + // cppcheck-suppress EnableYearChangeCalled calenderCtrl.EnableYearChange(/*default=yes*/); #endif - // cppcheck-suppress GetTextIndentCalled - // cppcheck-suppress ignoredReturnValue - comboCtrl.GetTextIndent(); }