mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-07 04:20:07 +01:00
Add the concrete art provider classes, and finish tests in test_ribbon_art
This commit is contained in:
@@ -2821,6 +2821,7 @@
|
||||
"RendererNative":"wx.",
|
||||
"RendererVersion":"wx.",
|
||||
"ResourceCat":"wx.StandardPaths.",
|
||||
"RibbonAUIArtProvider":"wx.ribbon.",
|
||||
"RibbonArtProvider":"wx.ribbon.",
|
||||
"RibbonArtSetting":"wx.ribbon.",
|
||||
"RibbonBar":"wx.ribbon.",
|
||||
@@ -2835,6 +2836,7 @@
|
||||
"RibbonGallery":"wx.ribbon.",
|
||||
"RibbonGalleryButtonState":"wx.ribbon.",
|
||||
"RibbonGalleryEvent":"wx.ribbon.",
|
||||
"RibbonMSWArtProvider":"wx.ribbon.",
|
||||
"RibbonPage":"wx.ribbon.",
|
||||
"RibbonPageTabInfo":"wx.ribbon.",
|
||||
"RibbonPanel":"wx.ribbon.",
|
||||
|
||||
@@ -18,6 +18,8 @@ DOCSTRING = ""
|
||||
# The classes and/or the basename of the Doxygen XML files to be processed by
|
||||
# this script.
|
||||
ITEMS = [ 'wxRibbonArtProvider',
|
||||
'wxRibbonMSWArtProvider',
|
||||
'wxRibbonAUIArtProvider',
|
||||
]
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
@@ -36,6 +38,20 @@ def run():
|
||||
c.find('Clone').factory = True
|
||||
|
||||
|
||||
c = module.find('wxRibbonMSWArtProvider')
|
||||
c.find('Clone').factory = True
|
||||
|
||||
|
||||
c = module.find('wxRibbonAUIArtProvider')
|
||||
c.find('Clone').factory = True
|
||||
|
||||
|
||||
module.addPyCode("""\
|
||||
if 'wxMSW' in wx.PlatformInfo:
|
||||
RibbonDefaultArtProvider = RibbonMSWArtProvider
|
||||
else:
|
||||
RibbonDefaultArtProvider = RibbonAUIArtProvider
|
||||
""")
|
||||
|
||||
#-----------------------------------------------------------------
|
||||
tools.doCommonTweaks(module)
|
||||
|
||||
Submodule ext/wxWidgets updated: 95bff5496b...c1a1a13032
@@ -150,17 +150,25 @@ class ribbon_art_Tests(wtc.WidgetTestCase):
|
||||
|
||||
|
||||
def test_ribbon_art3(self):
|
||||
pass
|
||||
art = wx.ribbon.RibbonMSWArtProvider()
|
||||
|
||||
|
||||
def test_ribbon_art4(self):
|
||||
pass
|
||||
art = wx.ribbon.RibbonAUIArtProvider()
|
||||
|
||||
|
||||
def test_ribbon_art5(self):
|
||||
pass
|
||||
art = wx.ribbon.RibbonAUIArtProvider()
|
||||
clone = art.Clone()
|
||||
art.Flags
|
||||
art.GetFlags()
|
||||
art.GetFlags()
|
||||
|
||||
|
||||
def test_ribbon_art6(self):
|
||||
self.assertTrue(
|
||||
wx.ribbon.RibbonDefaultArtProvider in [wx.ribbon.RibbonMSWArtProvider,
|
||||
wx.ribbon.RibbonAUIArtProvider])
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user