mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 03:50:06 +01:00
Add declarations of the pure virtuals for the file-system handler classes so they can be instantiated, and some unittests.
Update wx.tools.helpviewer git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73557 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -43,22 +43,41 @@ def run():
|
||||
c.find('AddHandler.handler').transfer = True
|
||||
c.find('RemoveHandler').transferBack = True
|
||||
|
||||
c = module.find('wxFileSystemHandler')
|
||||
c.find('GetAnchor').ignore(False)
|
||||
c.find('GetLeftLocation').ignore(False)
|
||||
c.find('GetProtocol').ignore(False)
|
||||
c.find('GetRightLocation').ignore(False)
|
||||
|
||||
|
||||
def _fixHandlerClass(klass):
|
||||
klass.addItem(etgtools.WigCode("""\
|
||||
virtual bool CanOpen(const wxString& location);
|
||||
virtual wxFSFile* OpenFile(wxFileSystem& fs, const wxString& location);
|
||||
"""))
|
||||
|
||||
|
||||
c = module.find('wxArchiveFSHandler')
|
||||
c.addPrivateCopyCtor();
|
||||
module.addPyCode('ZipFSHandler = wx.deprecated(ArchiveFSHandler, "Use ArchiveFSHandler instead.")')
|
||||
_fixHandlerClass(c)
|
||||
|
||||
c = module.find('wxFSFile')
|
||||
c.addPrivateCopyCtor();
|
||||
_fixHandlerClass(c)
|
||||
|
||||
c = module.find('wxFilterFSHandler')
|
||||
c.addPrivateCopyCtor();
|
||||
_fixHandlerClass(c)
|
||||
|
||||
c = module.find('wxInternetFSHandler')
|
||||
c.addPrivateCopyCtor();
|
||||
_fixHandlerClass(c)
|
||||
|
||||
|
||||
c = module.find('wxMemoryFSHandler')
|
||||
c.addPrivateCopyCtor();
|
||||
_fixHandlerClass(c)
|
||||
|
||||
|
||||
#-----------------------------------------------------------------
|
||||
tools.doCommonTweaks(module)
|
||||
|
||||
Reference in New Issue
Block a user