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