home *** CD-ROM | disk | FTP | other *** search
/ LG Super CD / LG Super CD.iso / bitpim / bitpim-0.62-setup.exe / {app} / bitpim.exe / wxPython / filesys.pyo (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2003-11-06  |  18.2 KB  |  326 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.3)
  3.  
  4. import filesysc
  5. from utils import *
  6. from image import *
  7. from misc import *
  8. from gdi import *
  9. from fonts import *
  10. from streams import *
  11. import wx
  12. import types
  13.  
  14. def wxMemoryFSHandler_AddFile(filename, a, b = ''):
  15.     if wx.wxPy_isinstance(a, (wxImage, wxImagePtr)):
  16.         __wxMemoryFSHandler_AddFile_wxImage(filename, a, b)
  17.     elif wx.wxPy_isinstance(a, (wxBitmap, wxBitmapPtr)):
  18.         __wxMemoryFSHandler_AddFile_wxBitmap(filename, a, b)
  19.     elif type(a) == types.StringType:
  20.         __wxMemoryFSHandler_AddFile_Data(filename, a)
  21.     else:
  22.         raise TypeError, 'wxImage, wxBitmap or string expected'
  23.  
  24.  
  25. class wxFSFilePtr(wxObjectPtr):
  26.     
  27.     def __init__(self, this):
  28.         self.this = this
  29.         self.thisown = 0
  30.  
  31.     
  32.     def GetStream(self, *_args, **_kwargs):
  33.         val = filesysc.wxFSFile_GetStream(self, *_args, **_kwargs)
  34.         return val
  35.  
  36.     
  37.     def GetMimeType(self, *_args, **_kwargs):
  38.         val = filesysc.wxFSFile_GetMimeType(self, *_args, **_kwargs)
  39.         return val
  40.  
  41.     
  42.     def GetLocation(self, *_args, **_kwargs):
  43.         val = filesysc.wxFSFile_GetLocation(self, *_args, **_kwargs)
  44.         return val
  45.  
  46.     
  47.     def GetAnchor(self, *_args, **_kwargs):
  48.         val = filesysc.wxFSFile_GetAnchor(self, *_args, **_kwargs)
  49.         return val
  50.  
  51.     
  52.     def GetModificationTime(self, *_args, **_kwargs):
  53.         val = filesysc.wxFSFile_GetModificationTime(self, *_args, **_kwargs)
  54.         if val:
  55.             val = wxDateTimePtr(val)
  56.             val.thisown = 1
  57.         
  58.         return val
  59.  
  60.     
  61.     def __repr__(self):
  62.         return '<%s.%s instance; proxy of C++ wxFSFile instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  63.  
  64.  
  65.  
  66. class wxFSFile(wxFSFilePtr):
  67.     
  68.     def __init__(self, *_args, **_kwargs):
  69.         self.this = filesysc.new_wxFSFile(*_args, **_kwargs)
  70.         self.thisown = 1
  71.  
  72.  
  73.  
  74. class wxCPPFileSystemHandlerPtr(wxObjectPtr):
  75.     
  76.     def __init__(self, this):
  77.         self.this = this
  78.         self.thisown = 0
  79.  
  80.     
  81.     def __repr__(self):
  82.         return '<%s.%s instance; proxy of C++ wxCPPFileSystemHandler instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  83.  
  84.  
  85.  
  86. class wxCPPFileSystemHandler(wxCPPFileSystemHandlerPtr):
  87.     
  88.     def __init__(self, this):
  89.         self.this = this
  90.  
  91.  
  92.  
  93. class wxFileSystemHandlerPtr(wxCPPFileSystemHandlerPtr):
  94.     
  95.     def __init__(self, this):
  96.         self.this = this
  97.         self.thisown = 0
  98.  
  99.     
  100.     def _setCallbackInfo(self, *_args, **_kwargs):
  101.         val = filesysc.wxFileSystemHandler__setCallbackInfo(self, *_args, **_kwargs)
  102.         return val
  103.  
  104.     
  105.     def CanOpen(self, *_args, **_kwargs):
  106.         val = filesysc.wxFileSystemHandler_CanOpen(self, *_args, **_kwargs)
  107.         return val
  108.  
  109.     
  110.     def OpenFile(self, *_args, **_kwargs):
  111.         val = filesysc.wxFileSystemHandler_OpenFile(self, *_args, **_kwargs)
  112.         return val
  113.  
  114.     
  115.     def FindFirst(self, *_args, **_kwargs):
  116.         val = filesysc.wxFileSystemHandler_FindFirst(self, *_args, **_kwargs)
  117.         return val
  118.  
  119.     
  120.     def FindNext(self, *_args, **_kwargs):
  121.         val = filesysc.wxFileSystemHandler_FindNext(self, *_args, **_kwargs)
  122.         return val
  123.  
  124.     
  125.     def GetProtocol(self, *_args, **_kwargs):
  126.         val = filesysc.wxFileSystemHandler_GetProtocol(self, *_args, **_kwargs)
  127.         return val
  128.  
  129.     
  130.     def GetLeftLocation(self, *_args, **_kwargs):
  131.         val = filesysc.wxFileSystemHandler_GetLeftLocation(self, *_args, **_kwargs)
  132.         return val
  133.  
  134.     
  135.     def GetAnchor(self, *_args, **_kwargs):
  136.         val = filesysc.wxFileSystemHandler_GetAnchor(self, *_args, **_kwargs)
  137.         return val
  138.  
  139.     
  140.     def GetRightLocation(self, *_args, **_kwargs):
  141.         val = filesysc.wxFileSystemHandler_GetRightLocation(self, *_args, **_kwargs)
  142.         return val
  143.  
  144.     
  145.     def GetMimeTypeFromExt(self, *_args, **_kwargs):
  146.         val = filesysc.wxFileSystemHandler_GetMimeTypeFromExt(self, *_args, **_kwargs)
  147.         return val
  148.  
  149.     
  150.     def __repr__(self):
  151.         return '<%s.%s instance; proxy of C++ wxFileSystemHandler instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  152.  
  153.  
  154.  
  155. class wxFileSystemHandler(wxFileSystemHandlerPtr):
  156.     
  157.     def __init__(self, *_args, **_kwargs):
  158.         self.this = filesysc.new_wxFileSystemHandler(*_args, **_kwargs)
  159.         self.thisown = 1
  160.         self._setCallbackInfo(self, wxFileSystemHandler)
  161.  
  162.  
  163.  
  164. class wxFileSystemPtr(wxObjectPtr):
  165.     
  166.     def __init__(self, this):
  167.         self.this = this
  168.         self.thisown = 0
  169.  
  170.     
  171.     def ChangePathTo(self, *_args, **_kwargs):
  172.         val = filesysc.wxFileSystem_ChangePathTo(self, *_args, **_kwargs)
  173.         return val
  174.  
  175.     
  176.     def GetPath(self, *_args, **_kwargs):
  177.         val = filesysc.wxFileSystem_GetPath(self, *_args, **_kwargs)
  178.         return val
  179.  
  180.     
  181.     def OpenFile(self, *_args, **_kwargs):
  182.         val = filesysc.wxFileSystem_OpenFile(self, *_args, **_kwargs)
  183.         return val
  184.  
  185.     
  186.     def FindFirst(self, *_args, **_kwargs):
  187.         val = filesysc.wxFileSystem_FindFirst(self, *_args, **_kwargs)
  188.         return val
  189.  
  190.     
  191.     def FindNext(self, *_args, **_kwargs):
  192.         val = filesysc.wxFileSystem_FindNext(self, *_args, **_kwargs)
  193.         return val
  194.  
  195.     
  196.     def __repr__(self):
  197.         return '<%s.%s instance; proxy of C++ wxFileSystem instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  198.  
  199.  
  200.  
  201. class wxFileSystem(wxFileSystemPtr):
  202.     
  203.     def __init__(self, *_args, **_kwargs):
  204.         self.this = filesysc.new_wxFileSystem(*_args, **_kwargs)
  205.         self.thisown = 1
  206.  
  207.  
  208.  
  209. class wxInternetFSHandlerPtr(wxCPPFileSystemHandlerPtr):
  210.     
  211.     def __init__(self, this):
  212.         self.this = this
  213.         self.thisown = 0
  214.  
  215.     
  216.     def CanOpen(self, *_args, **_kwargs):
  217.         val = filesysc.wxInternetFSHandler_CanOpen(self, *_args, **_kwargs)
  218.         return val
  219.  
  220.     
  221.     def OpenFile(self, *_args, **_kwargs):
  222.         val = filesysc.wxInternetFSHandler_OpenFile(self, *_args, **_kwargs)
  223.         return val
  224.  
  225.     
  226.     def __repr__(self):
  227.         return '<%s.%s instance; proxy of C++ wxInternetFSHandler instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  228.  
  229.  
  230.  
  231. class wxInternetFSHandler(wxInternetFSHandlerPtr):
  232.     
  233.     def __init__(self, *_args, **_kwargs):
  234.         self.this = filesysc.new_wxInternetFSHandler(*_args, **_kwargs)
  235.         self.thisown = 1
  236.  
  237.  
  238.  
  239. class wxZipFSHandlerPtr(wxCPPFileSystemHandlerPtr):
  240.     
  241.     def __init__(self, this):
  242.         self.this = this
  243.         self.thisown = 0
  244.  
  245.     
  246.     def CanOpen(self, *_args, **_kwargs):
  247.         val = filesysc.wxZipFSHandler_CanOpen(self, *_args, **_kwargs)
  248.         return val
  249.  
  250.     
  251.     def OpenFile(self, *_args, **_kwargs):
  252.         val = filesysc.wxZipFSHandler_OpenFile(self, *_args, **_kwargs)
  253.         return val
  254.  
  255.     
  256.     def FindFirst(self, *_args, **_kwargs):
  257.         val = filesysc.wxZipFSHandler_FindFirst(self, *_args, **_kwargs)
  258.         return val
  259.  
  260.     
  261.     def FindNext(self, *_args, **_kwargs):
  262.         val = filesysc.wxZipFSHandler_FindNext(self, *_args, **_kwargs)
  263.         return val
  264.  
  265.     
  266.     def __repr__(self):
  267.         return '<%s.%s instance; proxy of C++ wxZipFSHandler instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  268.  
  269.  
  270.  
  271. class wxZipFSHandler(wxZipFSHandlerPtr):
  272.     
  273.     def __init__(self, *_args, **_kwargs):
  274.         self.this = filesysc.new_wxZipFSHandler(*_args, **_kwargs)
  275.         self.thisown = 1
  276.  
  277.  
  278.  
  279. class wxMemoryFSHandlerPtr(wxCPPFileSystemHandlerPtr):
  280.     
  281.     def __init__(self, this):
  282.         self.this = this
  283.         self.thisown = 0
  284.  
  285.     
  286.     def CanOpen(self, *_args, **_kwargs):
  287.         val = filesysc.wxMemoryFSHandler_CanOpen(self, *_args, **_kwargs)
  288.         return val
  289.  
  290.     
  291.     def OpenFile(self, *_args, **_kwargs):
  292.         val = filesysc.wxMemoryFSHandler_OpenFile(self, *_args, **_kwargs)
  293.         return val
  294.  
  295.     
  296.     def FindFirst(self, *_args, **_kwargs):
  297.         val = filesysc.wxMemoryFSHandler_FindFirst(self, *_args, **_kwargs)
  298.         return val
  299.  
  300.     
  301.     def FindNext(self, *_args, **_kwargs):
  302.         val = filesysc.wxMemoryFSHandler_FindNext(self, *_args, **_kwargs)
  303.         return val
  304.  
  305.     
  306.     def __repr__(self):
  307.         return '<%s.%s instance; proxy of C++ wxMemoryFSHandler instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  308.  
  309.  
  310.  
  311. class wxMemoryFSHandler(wxMemoryFSHandlerPtr):
  312.     
  313.     def __init__(self, *_args, **_kwargs):
  314.         self.this = filesysc.new_wxMemoryFSHandler(*_args, **_kwargs)
  315.         self.thisown = 1
  316.  
  317.  
  318. wxFileSystem_URLToFileName = filesysc.wxFileSystem_URLToFileName
  319. __wxMemoryFSHandler_AddFile_wxImage = filesysc.__wxMemoryFSHandler_AddFile_wxImage
  320. __wxMemoryFSHandler_AddFile_wxBitmap = filesysc.__wxMemoryFSHandler_AddFile_wxBitmap
  321. __wxMemoryFSHandler_AddFile_Data = filesysc.__wxMemoryFSHandler_AddFile_Data
  322. wxFileSystem_AddHandler = filesysc.wxFileSystem_AddHandler
  323. wxFileSystem_CleanUpHandlers = filesysc.wxFileSystem_CleanUpHandlers
  324. wxFileSystem_FileNameToURL = filesysc.wxFileSystem_FileNameToURL
  325. wxMemoryFSHandler_RemoveFile = filesysc.wxMemoryFSHandler_RemoveFile
  326.