]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/filesys.py
Use multi-lib build on MSW, and other tweaks
[wxWidgets.git] / wxPython / src / mac / filesys.py
CommitLineData
e6056257
RD
1# This file was created automatically by SWIG.
2import filesysc
3
4from utils import *
5
6from image import *
7
8from misc import *
9
10from gdi import *
11
40699168
RD
12from fonts import *
13
e6056257
RD
14from streams import *
15import wx
e6056257
RD
16
17import types
18def wxMemoryFSHandler_AddFile(filename, a, b=''):
7108497a 19 if wx.wxPy_isinstance(a, (wxImage, wxImagePtr)):
e6056257 20 __wxMemoryFSHandler_AddFile_wxImage(filename, a, b)
7108497a 21 elif wx.wxPy_isinstance(a, (wxBitmap, wxBitmapPtr)):
e6056257
RD
22 __wxMemoryFSHandler_AddFile_wxBitmap(filename, a, b)
23 elif type(a) == types.StringType:
24 #__wxMemoryFSHandler_AddFile_wxString(filename, a)
25 __wxMemoryFSHandler_AddFile_Data(filename, a)
26 else: raise TypeError, 'wxImage, wxBitmap or string expected'
27
28class wxFSFilePtr(wxObjectPtr):
29 def __init__(self,this):
30 self.this = this
31 self.thisown = 0
32 def GetStream(self, *_args, **_kwargs):
d84a9306 33 val = filesysc.wxFSFile_GetStream(self, *_args, **_kwargs)
e6056257
RD
34 return val
35 def GetMimeType(self, *_args, **_kwargs):
d84a9306 36 val = filesysc.wxFSFile_GetMimeType(self, *_args, **_kwargs)
e6056257
RD
37 return val
38 def GetLocation(self, *_args, **_kwargs):
d84a9306 39 val = filesysc.wxFSFile_GetLocation(self, *_args, **_kwargs)
e6056257
RD
40 return val
41 def GetAnchor(self, *_args, **_kwargs):
d84a9306 42 val = filesysc.wxFSFile_GetAnchor(self, *_args, **_kwargs)
e6056257
RD
43 return val
44 def GetModificationTime(self, *_args, **_kwargs):
d84a9306 45 val = filesysc.wxFSFile_GetModificationTime(self, *_args, **_kwargs)
e6056257
RD
46 if val: val = wxDateTimePtr(val) ; val.thisown = 1
47 return val
48 def __repr__(self):
d84a9306 49 return "<%s.%s instance; proxy of C++ wxFSFile instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
e6056257
RD
50class wxFSFile(wxFSFilePtr):
51 def __init__(self,*_args,**_kwargs):
d84a9306 52 self.this = filesysc.new_wxFSFile(*_args,**_kwargs)
e6056257
RD
53 self.thisown = 1
54
55
56
57
58class wxCPPFileSystemHandlerPtr(wxObjectPtr):
59 def __init__(self,this):
60 self.this = this
61 self.thisown = 0
62 def __repr__(self):
d84a9306 63 return "<%s.%s instance; proxy of C++ wxCPPFileSystemHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
e6056257
RD
64class wxCPPFileSystemHandler(wxCPPFileSystemHandlerPtr):
65 def __init__(self,this):
66 self.this = this
67
68
69
70
71class wxFileSystemHandlerPtr(wxCPPFileSystemHandlerPtr):
72 def __init__(self,this):
73 self.this = this
74 self.thisown = 0
75 def _setCallbackInfo(self, *_args, **_kwargs):
d84a9306 76 val = filesysc.wxFileSystemHandler__setCallbackInfo(self, *_args, **_kwargs)
e6056257
RD
77 return val
78 def CanOpen(self, *_args, **_kwargs):
d84a9306 79 val = filesysc.wxFileSystemHandler_CanOpen(self, *_args, **_kwargs)
e6056257
RD
80 return val
81 def OpenFile(self, *_args, **_kwargs):
d84a9306 82 val = filesysc.wxFileSystemHandler_OpenFile(self, *_args, **_kwargs)
e6056257
RD
83 return val
84 def FindFirst(self, *_args, **_kwargs):
d84a9306 85 val = filesysc.wxFileSystemHandler_FindFirst(self, *_args, **_kwargs)
e6056257
RD
86 return val
87 def FindNext(self, *_args, **_kwargs):
d84a9306 88 val = filesysc.wxFileSystemHandler_FindNext(self, *_args, **_kwargs)
e6056257
RD
89 return val
90 def GetProtocol(self, *_args, **_kwargs):
d84a9306 91 val = filesysc.wxFileSystemHandler_GetProtocol(self, *_args, **_kwargs)
e6056257
RD
92 return val
93 def GetLeftLocation(self, *_args, **_kwargs):
d84a9306 94 val = filesysc.wxFileSystemHandler_GetLeftLocation(self, *_args, **_kwargs)
e6056257
RD
95 return val
96 def GetAnchor(self, *_args, **_kwargs):
d84a9306 97 val = filesysc.wxFileSystemHandler_GetAnchor(self, *_args, **_kwargs)
e6056257
RD
98 return val
99 def GetRightLocation(self, *_args, **_kwargs):
d84a9306 100 val = filesysc.wxFileSystemHandler_GetRightLocation(self, *_args, **_kwargs)
e6056257
RD
101 return val
102 def GetMimeTypeFromExt(self, *_args, **_kwargs):
d84a9306 103 val = filesysc.wxFileSystemHandler_GetMimeTypeFromExt(self, *_args, **_kwargs)
e6056257
RD
104 return val
105 def __repr__(self):
d84a9306 106 return "<%s.%s instance; proxy of C++ wxFileSystemHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
e6056257
RD
107class wxFileSystemHandler(wxFileSystemHandlerPtr):
108 def __init__(self,*_args,**_kwargs):
d84a9306 109 self.this = filesysc.new_wxFileSystemHandler(*_args,**_kwargs)
e6056257
RD
110 self.thisown = 1
111 self._setCallbackInfo(self, wxFileSystemHandler)
112
113
114
115
116class wxFileSystemPtr(wxObjectPtr):
117 def __init__(self,this):
118 self.this = this
119 self.thisown = 0
120 def ChangePathTo(self, *_args, **_kwargs):
d84a9306 121 val = filesysc.wxFileSystem_ChangePathTo(self, *_args, **_kwargs)
e6056257
RD
122 return val
123 def GetPath(self, *_args, **_kwargs):
d84a9306 124 val = filesysc.wxFileSystem_GetPath(self, *_args, **_kwargs)
e6056257
RD
125 return val
126 def OpenFile(self, *_args, **_kwargs):
d84a9306 127 val = filesysc.wxFileSystem_OpenFile(self, *_args, **_kwargs)
e6056257
RD
128 return val
129 def FindFirst(self, *_args, **_kwargs):
d84a9306 130 val = filesysc.wxFileSystem_FindFirst(self, *_args, **_kwargs)
e6056257
RD
131 return val
132 def FindNext(self, *_args, **_kwargs):
d84a9306 133 val = filesysc.wxFileSystem_FindNext(self, *_args, **_kwargs)
e6056257
RD
134 return val
135 def __repr__(self):
d84a9306 136 return "<%s.%s instance; proxy of C++ wxFileSystem instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
e6056257
RD
137class wxFileSystem(wxFileSystemPtr):
138 def __init__(self,*_args,**_kwargs):
d84a9306 139 self.this = filesysc.new_wxFileSystem(*_args,**_kwargs)
e6056257
RD
140 self.thisown = 1
141
142
143
144
145class wxInternetFSHandlerPtr(wxCPPFileSystemHandlerPtr):
146 def __init__(self,this):
147 self.this = this
148 self.thisown = 0
149 def CanOpen(self, *_args, **_kwargs):
d84a9306 150 val = filesysc.wxInternetFSHandler_CanOpen(self, *_args, **_kwargs)
e6056257
RD
151 return val
152 def OpenFile(self, *_args, **_kwargs):
d84a9306 153 val = filesysc.wxInternetFSHandler_OpenFile(self, *_args, **_kwargs)
e6056257
RD
154 return val
155 def __repr__(self):
d84a9306 156 return "<%s.%s instance; proxy of C++ wxInternetFSHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
e6056257
RD
157class wxInternetFSHandler(wxInternetFSHandlerPtr):
158 def __init__(self,*_args,**_kwargs):
d84a9306 159 self.this = filesysc.new_wxInternetFSHandler(*_args,**_kwargs)
e6056257
RD
160 self.thisown = 1
161
162
163
164
165class wxZipFSHandlerPtr(wxCPPFileSystemHandlerPtr):
166 def __init__(self,this):
167 self.this = this
168 self.thisown = 0
169 def CanOpen(self, *_args, **_kwargs):
d84a9306 170 val = filesysc.wxZipFSHandler_CanOpen(self, *_args, **_kwargs)
e6056257
RD
171 return val
172 def OpenFile(self, *_args, **_kwargs):
d84a9306 173 val = filesysc.wxZipFSHandler_OpenFile(self, *_args, **_kwargs)
e6056257
RD
174 return val
175 def FindFirst(self, *_args, **_kwargs):
d84a9306 176 val = filesysc.wxZipFSHandler_FindFirst(self, *_args, **_kwargs)
e6056257
RD
177 return val
178 def FindNext(self, *_args, **_kwargs):
d84a9306 179 val = filesysc.wxZipFSHandler_FindNext(self, *_args, **_kwargs)
e6056257
RD
180 return val
181 def __repr__(self):
d84a9306 182 return "<%s.%s instance; proxy of C++ wxZipFSHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
e6056257
RD
183class wxZipFSHandler(wxZipFSHandlerPtr):
184 def __init__(self,*_args,**_kwargs):
d84a9306 185 self.this = filesysc.new_wxZipFSHandler(*_args,**_kwargs)
e6056257
RD
186 self.thisown = 1
187
188
189
190
191class wxMemoryFSHandlerPtr(wxCPPFileSystemHandlerPtr):
192 def __init__(self,this):
193 self.this = this
194 self.thisown = 0
195 def CanOpen(self, *_args, **_kwargs):
d84a9306 196 val = filesysc.wxMemoryFSHandler_CanOpen(self, *_args, **_kwargs)
e6056257
RD
197 return val
198 def OpenFile(self, *_args, **_kwargs):
d84a9306 199 val = filesysc.wxMemoryFSHandler_OpenFile(self, *_args, **_kwargs)
e6056257
RD
200 return val
201 def FindFirst(self, *_args, **_kwargs):
d84a9306 202 val = filesysc.wxMemoryFSHandler_FindFirst(self, *_args, **_kwargs)
e6056257
RD
203 return val
204 def FindNext(self, *_args, **_kwargs):
d84a9306 205 val = filesysc.wxMemoryFSHandler_FindNext(self, *_args, **_kwargs)
e6056257
RD
206 return val
207 def __repr__(self):
d84a9306 208 return "<%s.%s instance; proxy of C++ wxMemoryFSHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
e6056257
RD
209class wxMemoryFSHandler(wxMemoryFSHandlerPtr):
210 def __init__(self,*_args,**_kwargs):
d84a9306 211 self.this = filesysc.new_wxMemoryFSHandler(*_args,**_kwargs)
e6056257
RD
212 self.thisown = 1
213
214
215
216
217
218
219#-------------- FUNCTION WRAPPERS ------------------
220
d84a9306
RD
221wxFileSystem_URLToFileName = filesysc.wxFileSystem_URLToFileName
222
e6056257
RD
223__wxMemoryFSHandler_AddFile_wxImage = filesysc.__wxMemoryFSHandler_AddFile_wxImage
224
225__wxMemoryFSHandler_AddFile_wxBitmap = filesysc.__wxMemoryFSHandler_AddFile_wxBitmap
226
227__wxMemoryFSHandler_AddFile_Data = filesysc.__wxMemoryFSHandler_AddFile_Data
228
229wxFileSystem_AddHandler = filesysc.wxFileSystem_AddHandler
230
231wxFileSystem_CleanUpHandlers = filesysc.wxFileSystem_CleanUpHandlers
232
d84a9306
RD
233wxFileSystem_FileNameToURL = filesysc.wxFileSystem_FileNameToURL
234
e6056257
RD
235wxMemoryFSHandler_RemoveFile = filesysc.wxMemoryFSHandler_RemoveFile
236
237
238
239#-------------- VARIABLE WRAPPERS ------------------
240