wxwidgets.cfg: Added more deprecated functions.

This commit is contained in:
orbitcowboy 2018-02-07 13:33:15 +01:00
parent 85d8bbacb8
commit dccf96cb7b
2 changed files with 27 additions and 1 deletions

View File

@ -1055,6 +1055,25 @@
</arg> </arg>
<warn severity="style">This function is deprecated and kept mostly for backwards compatibility. Please override 'PushBack' method instead in any new code.</warn> <warn severity="style">This function is deprecated and kept mostly for backwards compatibility. Please override 'PushBack' method instead in any new code.</warn>
</function> </function>
<!-- http://docs.wxwidgets.org/trunk/classwx_calendar_ctrl.html#ab2e1f2d643c4a48f3d5cb2273e3a6e13 -->
<!-- virtual void wxCalendarCtrl::EnableYearChange( bool enable = true)-->
<function name="wxCalendarCtrl::EnableYearChange">
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1" default="true">
<not-uninit/>
</arg>
<warn severity="style">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'.</warn>
</function>
<!-- http://docs.wxwidgets.org/trunk/classwx_calendar_ctrl.html#ab2e1f2d643c4a48f3d5cb2273e3a6e13 -->
<!-- wxCoord wxComboCtrl::GetTextIndent( ) const-->
<function name="wxComboCtrl::GetTextIndent">
<noreturn>false</noreturn>
<leak-ignore/>
<use-retval/>
<returnValue type="wxCoord"/>
<warn severity="style">This function is deprecated and kept mostly for backwards compatibility. Please override 'GetMargins()' method instead in any new code.</warn>
</function>
<!-- Override macros which don't necessarily require semicolons at the end --> <!-- Override macros which don't necessarily require semicolons at the end -->
<define name="DECLARE_CLASS(n)" value=""/> <define name="DECLARE_CLASS(n)" value=""/>
<define name="DECLARE_DYNAMIC_CLASS(n)" value=""/> <define name="DECLARE_DYNAMIC_CLASS(n)" value=""/>

View File

@ -59,10 +59,17 @@ void uninitvar()
wxLogMessage(pcUninit); wxLogMessage(pcUninit);
} }
void deprecatedFunctions(wxApp &a, const wxString &s, wxArtProvider *artProvider) void deprecatedFunctions(wxApp &a, const wxString &s, wxArtProvider *artProvider, wxCalendarCtrl &calenderCtrl, wxComboCtrl &comboCtrl)
{ {
// cppcheck-suppress MacOpenFileCalled // cppcheck-suppress MacOpenFileCalled
a.MacOpenFile(s); a.MacOpenFile(s);
// cppcheck-suppress InsertCalled // cppcheck-suppress InsertCalled
wxArtProvider::Insert(artProvider); wxArtProvider::Insert(artProvider);
// cppcheck-suppress EnableYearChangeCalled
calenderCtrl.EnableYearChange(false);
// cppcheck-suppress EnableYearChangeCalled
calenderCtrl.EnableYearChange(/*default=yes*/);
// cppcheck-suppress GetTextIndentCalled
// cppcheck-suppress ignoredReturnValue
comboCtrl.GetTextIndent();
} }