]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/filesys.py
made wxLocale::GetSystemLanguage and wxLocale::AddLanguage static;
[wxWidgets.git] / wxPython / src / gtk / 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 streams import *
13 import wx
14 import string
15
16 import types
17 def wxMemoryFSHandler_AddFile(filename, a, b=''):
18 if isinstance(a, wxImage):
19 __wxMemoryFSHandler_AddFile_wxImage(filename, a, b)
20 elif isinstance(a, wxBitmap):
21 __wxMemoryFSHandler_AddFile_wxBitmap(filename, a, b)
22 elif type(a) == types.StringType:
23 #__wxMemoryFSHandler_AddFile_wxString(filename, a)
24 __wxMemoryFSHandler_AddFile_Data(filename, a)
25 else: raise TypeError, 'wxImage, wxBitmap or string expected'
26
27 class wxFSFilePtr :
28 def __init__(self,this):
29 self.this = this
30 self.thisown = 0
31 def GetStream(self, *_args, **_kwargs):
32 val = apply(filesysc.wxFSFile_GetStream,(self,) + _args, _kwargs)
33 return val
34 def GetMimeType(self, *_args, **_kwargs):
35 val = apply(filesysc.wxFSFile_GetMimeType,(self,) + _args, _kwargs)
36 return val
37 def GetLocation(self, *_args, **_kwargs):
38 val = apply(filesysc.wxFSFile_GetLocation,(self,) + _args, _kwargs)
39 return val
40 def GetAnchor(self, *_args, **_kwargs):
41 val = apply(filesysc.wxFSFile_GetAnchor,(self,) + _args, _kwargs)
42 return val
43 def GetModificationTime(self, *_args, **_kwargs):
44 val = apply(filesysc.wxFSFile_GetModificationTime,(self,) + _args, _kwargs)
45 if val: val = wxDateTimePtr(val) ; val.thisown = 1
46 return val
47 def __repr__(self):
48 return "<C wxFSFile instance at %s>" % (self.this,)
49 class wxFSFile(wxFSFilePtr):
50 def __init__(self,*_args,**_kwargs):
51 self.this = apply(filesysc.new_wxFSFile,_args,_kwargs)
52 self.thisown = 1
53
54
55
56
57 class wxCPPFileSystemHandlerPtr :
58 def __init__(self,this):
59 self.this = this
60 self.thisown = 0
61 def __repr__(self):
62 return "<C wxCPPFileSystemHandler instance at %s>" % (self.this,)
63 class wxCPPFileSystemHandler(wxCPPFileSystemHandlerPtr):
64 def __init__(self,this):
65 self.this = this
66
67
68
69
70 class wxFileSystemHandlerPtr(wxCPPFileSystemHandlerPtr):
71 def __init__(self,this):
72 self.this = this
73 self.thisown = 0
74 def _setSelf(self, *_args, **_kwargs):
75 val = apply(filesysc.wxFileSystemHandler__setSelf,(self,) + _args, _kwargs)
76 return val
77 def CanOpen(self, *_args, **_kwargs):
78 val = apply(filesysc.wxFileSystemHandler_CanOpen,(self,) + _args, _kwargs)
79 return val
80 def OpenFile(self, *_args, **_kwargs):
81 val = apply(filesysc.wxFileSystemHandler_OpenFile,(self,) + _args, _kwargs)
82 if val: val = wxFSFilePtr(val)
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._setSelf(self, wxFileSystemHandler)
112
113
114
115
116 class wxFileSystemPtr :
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 if val: val = wxFSFilePtr(val)
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)
155 if val: val = wxFSFilePtr(val)
156 return val
157 def __repr__(self):
158 return "<C wxInternetFSHandler instance at %s>" % (self.this,)
159 class wxInternetFSHandler(wxInternetFSHandlerPtr):
160 def __init__(self,*_args,**_kwargs):
161 self.this = apply(filesysc.new_wxInternetFSHandler,_args,_kwargs)
162 self.thisown = 1
163
164
165
166
167 class wxZipFSHandlerPtr(wxCPPFileSystemHandlerPtr):
168 def __init__(self,this):
169 self.this = this
170 self.thisown = 0
171 def CanOpen(self, *_args, **_kwargs):
172 val = apply(filesysc.wxZipFSHandler_CanOpen,(self,) + _args, _kwargs)
173 return val
174 def OpenFile(self, *_args, **_kwargs):
175 val = apply(filesysc.wxZipFSHandler_OpenFile,(self,) + _args, _kwargs)
176 if val: val = wxFSFilePtr(val)
177 return val
178 def FindFirst(self, *_args, **_kwargs):
179 val = apply(filesysc.wxZipFSHandler_FindFirst,(self,) + _args, _kwargs)
180 return val
181 def FindNext(self, *_args, **_kwargs):
182 val = apply(filesysc.wxZipFSHandler_FindNext,(self,) + _args, _kwargs)
183 return val
184 def __repr__(self):
185 return "<C wxZipFSHandler instance at %s>" % (self.this,)
186 class wxZipFSHandler(wxZipFSHandlerPtr):
187 def __init__(self,*_args,**_kwargs):
188 self.this = apply(filesysc.new_wxZipFSHandler,_args,_kwargs)
189 self.thisown = 1
190
191
192
193
194 class wxMemoryFSHandlerPtr(wxCPPFileSystemHandlerPtr):
195 def __init__(self,this):
196 self.this = this
197 self.thisown = 0
198 def CanOpen(self, *_args, **_kwargs):
199 val = apply(filesysc.wxMemoryFSHandler_CanOpen,(self,) + _args, _kwargs)
200 return val
201 def OpenFile(self, *_args, **_kwargs):
202 val = apply(filesysc.wxMemoryFSHandler_OpenFile,(self,) + _args, _kwargs)
203 if val: val = wxFSFilePtr(val)
204 return val
205 def FindFirst(self, *_args, **_kwargs):
206 val = apply(filesysc.wxMemoryFSHandler_FindFirst,(self,) + _args, _kwargs)
207 return val
208 def FindNext(self, *_args, **_kwargs):
209 val = apply(filesysc.wxMemoryFSHandler_FindNext,(self,) + _args, _kwargs)
210 return val
211 def __repr__(self):
212 return "<C wxMemoryFSHandler instance at %s>" % (self.this,)
213 class wxMemoryFSHandler(wxMemoryFSHandlerPtr):
214 def __init__(self,*_args,**_kwargs):
215 self.this = apply(filesysc.new_wxMemoryFSHandler,_args,_kwargs)
216 self.thisown = 1
217
218
219
220
221
222
223 #-------------- FUNCTION WRAPPERS ------------------
224
225 __wxMemoryFSHandler_AddFile_wxImage = filesysc.__wxMemoryFSHandler_AddFile_wxImage
226
227 __wxMemoryFSHandler_AddFile_wxBitmap = filesysc.__wxMemoryFSHandler_AddFile_wxBitmap
228
229 __wxMemoryFSHandler_AddFile_Data = filesysc.__wxMemoryFSHandler_AddFile_Data
230
231 wxFileSystem_AddHandler = filesysc.wxFileSystem_AddHandler
232
233 wxFileSystem_CleanUpHandlers = filesysc.wxFileSystem_CleanUpHandlers
234
235 wxMemoryFSHandler_RemoveFile = filesysc.wxMemoryFSHandler_RemoveFile
236
237
238
239 #-------------- VARIABLE WRAPPERS ------------------
240