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:
Robin Dunn
2013-02-22 06:20:36 +00:00
parent d108a412d0
commit 9760539742
3 changed files with 33 additions and 5 deletions

View File

@@ -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)