wxwidgets.cfg: Added support for wxMenuBar::Append().

This commit is contained in:
orbitcowboy 2018-03-31 13:34:40 +02:00
parent 43aac4696e
commit d7072136dc
2 changed files with 19 additions and 1 deletions

View File

@ -1362,6 +1362,16 @@
<not-uninit/>
</arg>
</function>
<!-- virtual bool wxMenuBar::Append(wxMenu * menu, const wxString & title) -->
<function name="wxMenuBar::Append">
<noreturn>false</noreturn>
<leak-ignore/>
<returnValue type="bool"/>
<arg nr="1">
<not-uninit/>
</arg>
<arg nr="2"/>
</function>
<define name="DECLARE_EVENT_TABLE()" value="wxDECLARE_EVENT_TABLE()"/>
<define name="wxDECLARE_EVENT_TABLE()" value="private: static const wxEventTableEntry sm_eventTableEntries[]; protected: const wxEventTable* GetEventTable() const; wxEventHashTable&amp; GetEventHashTable() const; static const wxEventTable sm_eventTable; static wxEventHashTable sm_eventHashTable;"/>
<define name="wxIMPLEMENT_APP(appname)" value="wxIMPLEMENT_WX_THEME_SUPPORT wxIMPLEMENT_APP_NO_THEMES(appname)"/>

View File

@ -82,12 +82,20 @@ void uninitvar(void)
wxLogMessage(pcUninit);
}
void uninitvar_SetMenuBar(wxFrame * const framePtr, wxMenuBar *menuBarPtr)
void uninitvar_SetMenuBar(wxFrame * const framePtr, wxMenuBar * const menuBarPtr)
{
wxMenuBar *menuBar;
// cppcheck-suppress uninitvar
framePtr->SetMenuBar(menuBar);
framePtr->SetMenuBar(menuBarPtr);
}
void uninitvar_wxMenuBarAppend(wxMenuBar * const menuBarPtr, wxMenu * const menuPtr, const wxString &title)
{
wxMenu *menu;
// cppcheck-suppress uninitvar
menuBarPtr->Append(menu, title);
menuBarPtr->Append(menuPtr, title);
}
void deprecatedFunctions_wxDataViewCustomRenderer(wxDataViewCustomRenderer &dataViewCustomRenderer, wxPoint cursor, wxRect cell, wxDataViewModel *model, const wxDataViewItem &item, unsigned int col)