--disable-nativeanimation is gone, wxGenericAnimationCtrl is a real class

This commit is contained in:
Robin Dunn
2020-03-25 16:31:21 -07:00
parent eafc9a3c09
commit 62ab56e6e2
3 changed files with 7 additions and 2 deletions

View File

@@ -289,7 +289,6 @@ def main(wxDir, args):
"--disable-debugreport",
"--enable-uiactionsim",
"--enable-autoidman",
"--disable-nativeanimation",
]
if sys.platform.startswith("darwin"):
@@ -406,7 +405,6 @@ def main(wxDir, args):
flags["wxUSE_IFF"] = "1"
flags["wxUSE_ACCESSIBILITY"] = "1"
flags["wxUSE_WINRT"] = "0"
flags["wxUSE_NATIVE_ANIMATIONCTRL"] = "0"
# Remove this when Windows XP finally dies, or when there is a
# solution for ticket #13116...

View File

@@ -306,6 +306,7 @@
"AlphaPixelData_Accessor":"wx.",
"Animation":"wx.adv.",
"AnimationCtrl":"wx.adv.",
"AnimationCtrlGeneric":"wx.adv.",
"AnimationCtrlNameStr":"wx.adv.",
"AnimationDecoder":"wx.adv.",
"AnimationDisposal":"wx.adv.",
@@ -1355,6 +1356,7 @@
"Gauge":"wx.",
"GaugeNameStr":"wx.",
"GenericAboutBox":"wx.adv.",
"GenericAnimationCtrl":"wx.adv.",
"GenericCalendarCtrl":"wx.adv.",
"GenericDatePickerCtrl":"wx.adv.",
"GenericDirCtrl":"wx.",

View File

@@ -53,10 +53,15 @@ def run():
module.addItem(tools.wxListWrapperTemplate('wxAnimationDecoderList', 'wxAnimationDecoder', module,
header_extra='#include <wx/animate.h>'))
c = module.find('wxAnimationCtrl')
tools.fixWindowClass(c)
module.addGlobalStr('wxAnimationCtrlNameStr', c)
# Add the generic class too
gen = tools.copyClassDef(c, 'wxGenericAnimationCtrl')
module.insertItemAfter(c, gen)
# move this before wxAnimationCtrl so it can be used for default arg values
item = module.find('wxNullAnimation')
module.items.remove(item)