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