wxwidgets.cfg: Added more deprecated functions.

This commit is contained in:
orbitcowboy 2018-02-14 09:53:40 +01:00
parent 2f4261e405
commit 2defdb7d4c
2 changed files with 57 additions and 1 deletions

View File

@ -1101,6 +1101,49 @@
</arg>
<warn severity="style">This function is deprecated and kept mostly for backwards compatibility. Please override 'SetMargins()' method instead in any new code.</warn>
</function>
<!-- http://docs.wxwidgets.org/trunk/classwx_data_view_custom_renderer.html#a242d0992df73be6830e66d74b211974d-->
<!-- virtual bool wxDataViewCustomRenderer::Activate (wxRect cell, xDataViewModel * model, const wxDataViewItem & item, unsigned int col) -->
<function name="wxDataViewCustomRenderer::Activate">
<noreturn>false</noreturn>
<leak-ignore/>
<returnValue type="bool"/>
<arg nr="1">
<not-uninit/>
</arg>
<arg nr="2">
<not-null/>
</arg>
<arg nr="3">
<not-uninit/>
</arg>
<arg nr="4">
<not-uninit/>
</arg>
<warn severity="style">This function is deprecated and kept mostly for backwards compatibility. Please override 'wxDataViewCustomRenderer::ActivateCell()' method instead in any new code.</warn>
</function>
<!-- http://docs.wxwidgets.org/trunk/classwx_data_view_custom_renderer.html#ab7fe7693a94fee896eb0b60b843cd474-->
<!-- virtual bool wxDataViewCustomRenderer::LeftClick ( wxPoint cursor, wxRect cell, wxDataViewModel * model, const wxDataViewItem & item, unsigned int col)-->
<function name="wxDataViewCustomRenderer::LeftClick">
<noreturn>false</noreturn>
<leak-ignore/>
<returnValue type="bool"/>
<arg nr="1">
<not-uninit/>
</arg>
<arg nr="2">
<not-uninit/>
</arg>
<arg nr="3">
<not-null/>
</arg>
<arg nr="4">
<not-uninit/>
</arg>
<arg nr="5">
<not-uninit/>
</arg>
<warn severity="style">This function is deprecated and kept mostly for backwards compatibility. Please override 'wxDataViewCustomRenderer::ActivateCell()' method instead in any new code.</warn>
</function>
<!-- Override macros which don't necessarily require semicolons at the end -->
<define name="DECLARE_CLASS(n)" value=""/>
<define name="DECLARE_DYNAMIC_CLASS(n)" value=""/>

View File

@ -16,6 +16,7 @@
#include <wx/combo.h>
#include <wx/icon.h>
#include <wx/bitmap.h>
#include <wx/dataview.h>
void validCode()
{
@ -78,7 +79,19 @@ void uninitvar()
wxLogMessage(pcUninit);
}
void deprecatedFunctions(wxApp &a, const wxString &s, wxArtProvider *artProvider, wxCalendarCtrl &calenderCtrl, wxComboCtrl &comboCtrl)
void deprecatedFunctions_wxDataViewCustomRenderer(wxDataViewCustomRenderer &dataViewCustomRenderer, wxPoint cursor, wxRect cell, wxDataViewModel *model, const wxDataViewItem &item, unsigned int col)
{
// cppcheck-suppress ActivateCalled
dataViewCustomRenderer.Activate(cell, model, item, col);
// cppcheck-suppress LeftClickCalled
dataViewCustomRenderer.LeftClick(cursor, cell, model, item, col);
}
void deprecatedFunctions(wxApp &a,
const wxString &s,
wxArtProvider *artProvider,
wxCalendarCtrl &calenderCtrl,
wxComboCtrl &comboCtrl)
{
#ifdef __WXOSX__
// cppcheck-suppress MacOpenFileCalled