mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 11:30:06 +01:00
For .setCppCode fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69188 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -35,7 +35,7 @@ def run():
|
||||
c = module.find('wxDataFormat')
|
||||
assert isinstance(c, etgtools.ClassDef)
|
||||
|
||||
c.find('GetType').setCppCode("sipRes = static_cast<wxDataFormatId>(sipCpp->GetType());")
|
||||
c.find('GetType').setCppCode("return static_cast<wxDataFormatId>(self->GetType());")
|
||||
|
||||
#-----------------------------------------------------------------
|
||||
tools.doCommonTweaks(module)
|
||||
|
||||
@@ -36,7 +36,7 @@ def run():
|
||||
c = module.find('wxIndividualLayoutConstraint')
|
||||
assert isinstance(c, etgtools.ClassDef)
|
||||
|
||||
c.find('GetOtherWindow').setCppCode('sipRes = (wxWindow*)sipCpp->GetOtherWindow();')
|
||||
c.find('GetOtherWindow').setCppCode('return (wxWindow*)self->GetOtherWindow();')
|
||||
|
||||
c.addProperty('Done GetDone SetDone')
|
||||
c.addProperty('Margin GetMargin SetMargin')
|
||||
|
||||
18
etg/menu.py
18
etg/menu.py
@@ -50,17 +50,19 @@ def run():
|
||||
c.find('wxMenuBar').findOverload('wxMenu *menus[], const wxString titles[], long style=0)').ignore()
|
||||
c.find('FindItem').ignore()
|
||||
mac_scmb = c.find('MacSetCommonMenuBar')
|
||||
mac_scmb.setCppCode("""
|
||||
#ifdef __WXMAC__
|
||||
wxMenuBar::MacSetCommonMenuBar(menubar);
|
||||
#endif
|
||||
mac_scmb.setCppCode("""\
|
||||
#ifdef __WXMAC__
|
||||
wxMenuBar::MacSetCommonMenuBar(menubar);
|
||||
#endif
|
||||
""")
|
||||
|
||||
mac_gcmb = c.find('MacGetCommonMenuBar')
|
||||
mac_gcmb.setCppCode("""
|
||||
#ifdef __WXMAC__
|
||||
sipRes = wxMenuBar::MacGetCommonMenuBar();
|
||||
#endif
|
||||
mac_gcmb.setCppCode("""\
|
||||
#ifdef __WXMAC__
|
||||
return wxMenuBar::MacGetCommonMenuBar();
|
||||
#else
|
||||
return NULL;
|
||||
#endif
|
||||
""")
|
||||
|
||||
# don't transfer on other platforms, as this is a no-op there.
|
||||
|
||||
Reference in New Issue
Block a user