]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/filesys.py
reduce flicker in header window when deleting items and let space select items even...
[wxWidgets.git] / wxPython / src / gtk / filesys.py
CommitLineData
c368d904
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
12from streams import *
13import wx
14import string
15
16import types
17def 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
9df61a29 27class wxFSFilePtr(wxObjectPtr):
c368d904
RD
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,)
49class 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
9df61a29 57class wxCPPFileSystemHandlerPtr(wxObjectPtr):
c368d904
RD
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,)
63class wxCPPFileSystemHandler(wxCPPFileSystemHandlerPtr):
64 def __init__(self,this):
65 self.this = this
66
67
68
69
70class 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)
c368d904
RD
82 return val
83 def FindFirst(self, *_args, **_kwargs):
84 val = apply(filesysc.wxFileSystemHandler_FindFirst,(self,) + _args, _kwargs)
85 return val
86 def FindNext(self, *_args, **_kwargs):
87 val = apply(filesysc.wxFileSystemHandler_FindNext,(self,) + _args, _kwargs)
88 return val
89 def GetProtocol(self, *_args, **_kwargs):
90 val = apply(filesysc.wxFileSystemHandler_GetProtocol,(self,) + _args, _kwargs)
91 return val
92 def GetLeftLocation(self, *_args, **_kwargs):
93 val = apply(filesysc.wxFileSystemHandler_GetLeftLocation,(self,) + _args, _kwargs)
94 return val
95 def GetAnchor(self, *_args, **_kwargs):
96 val = apply(filesysc.wxFileSystemHandler_GetAnchor,(self,) + _args, _kwargs)
97 return val
98 def GetRightLocation(self, *_args, **_kwargs):
99 val = apply(filesysc.wxFileSystemHandler_GetRightLocation,(self,) + _args, _kwargs)
100 return val
101 def GetMimeTypeFromExt(self, *_args, **_kwargs):
102 val = apply(filesysc.wxFileSystemHandler_GetMimeTypeFromExt,(self,) + _args, _kwargs)
103 return val
104 def __repr__(self):
105 return "<C wxFileSystemHandler instance at %s>" % (self.this,)
106class wxFileSystemHandler(wxFileSystemHandlerPtr):
107 def __init__(self,*_args,**_kwargs):
108 self.this = apply(filesysc.new_wxFileSystemHandler,_args,_kwargs)
109 self.thisown = 1
110 self._setSelf(self, wxFileSystemHandler)
111
112
113
114
9df61a29 115class wxFileSystemPtr(wxObjectPtr):
c368d904
RD
116 def __init__(self,this):
117 self.this = this
118 self.thisown = 0
119 def ChangePathTo(self, *_args, **_kwargs):
120 val = apply(filesysc.wxFileSystem_ChangePathTo,(self,) + _args, _kwargs)
121 return val
122 def GetPath(self, *_args, **_kwargs):
123 val = apply(filesysc.wxFileSystem_GetPath,(self,) + _args, _kwargs)
124 return val
125 def OpenFile(self, *_args, **_kwargs):
126 val = apply(filesysc.wxFileSystem_OpenFile,(self,) + _args, _kwargs)
c368d904
RD
127 return val
128 def FindFirst(self, *_args, **_kwargs):
129 val = apply(filesysc.wxFileSystem_FindFirst,(self,) + _args, _kwargs)
130 return val
131 def FindNext(self, *_args, **_kwargs):
132 val = apply(filesysc.wxFileSystem_FindNext,(self,) + _args, _kwargs)
133 return val
134 def __repr__(self):
135 return "<C wxFileSystem instance at %s>" % (self.this,)
136class wxFileSystem(wxFileSystemPtr):
137 def __init__(self,*_args,**_kwargs):
138 self.this = apply(filesysc.new_wxFileSystem,_args,_kwargs)
139 self.thisown = 1
140
141
142
143
144class wxInternetFSHandlerPtr(wxCPPFileSystemHandlerPtr):
145 def __init__(self,this):
146 self.this = this
147 self.thisown = 0
148 def CanOpen(self, *_args, **_kwargs):
149 val = apply(filesysc.wxInternetFSHandler_CanOpen,(self,) + _args, _kwargs)
150 return val
151 def OpenFile(self, *_args, **_kwargs):
152 val = apply(filesysc.wxInternetFSHandler_OpenFile,(self,) + _args, _kwargs)
c368d904
RD
153 return val
154 def __repr__(self):
155 return "<C wxInternetFSHandler instance at %s>" % (self.this,)
156class wxInternetFSHandler(wxInternetFSHandlerPtr):
157 def __init__(self,*_args,**_kwargs):
158 self.this = apply(filesysc.new_wxInternetFSHandler,_args,_kwargs)
159 self.thisown = 1
160
161
162
163
164class wxZipFSHandlerPtr(wxCPPFileSystemHandlerPtr):
165 def __init__(self,this):
166 self.this = this
167 self.thisown = 0
168 def CanOpen(self, *_args, **_kwargs):
169 val = apply(filesysc.wxZipFSHandler_CanOpen,(self,) + _args, _kwargs)
170 return val
171 def OpenFile(self, *_args, **_kwargs):
172 val = apply(filesysc.wxZipFSHandler_OpenFile,(self,) + _args, _kwargs)
c368d904
RD
173 return val
174 def FindFirst(self, *_args, **_kwargs):
175 val = apply(filesysc.wxZipFSHandler_FindFirst,(self,) + _args, _kwargs)
176 return val
177 def FindNext(self, *_args, **_kwargs):
178 val = apply(filesysc.wxZipFSHandler_FindNext,(self,) + _args, _kwargs)
179 return val
180 def __repr__(self):
181 return "<C wxZipFSHandler instance at %s>" % (self.this,)
182class wxZipFSHandler(wxZipFSHandlerPtr):
183 def __init__(self,*_args,**_kwargs):
184 self.this = apply(filesysc.new_wxZipFSHandler,_args,_kwargs)
185 self.thisown = 1
186
187
188
189
190class wxMemoryFSHandlerPtr(wxCPPFileSystemHandlerPtr):
191 def __init__(self,this):
192 self.this = this
193 self.thisown = 0
194 def CanOpen(self, *_args, **_kwargs):
195 val = apply(filesysc.wxMemoryFSHandler_CanOpen,(self,) + _args, _kwargs)
196 return val
197 def OpenFile(self, *_args, **_kwargs):
198 val = apply(filesysc.wxMemoryFSHandler_OpenFile,(self,) + _args, _kwargs)
c368d904
RD
199 return val
200 def FindFirst(self, *_args, **_kwargs):
201 val = apply(filesysc.wxMemoryFSHandler_FindFirst,(self,) + _args, _kwargs)
202 return val
203 def FindNext(self, *_args, **_kwargs):
204 val = apply(filesysc.wxMemoryFSHandler_FindNext,(self,) + _args, _kwargs)
205 return val
206 def __repr__(self):
207 return "<C wxMemoryFSHandler instance at %s>" % (self.this,)
208class wxMemoryFSHandler(wxMemoryFSHandlerPtr):
209 def __init__(self,*_args,**_kwargs):
210 self.this = apply(filesysc.new_wxMemoryFSHandler,_args,_kwargs)
211 self.thisown = 1
212
213
214
215
216
217
218#-------------- FUNCTION WRAPPERS ------------------
219
220__wxMemoryFSHandler_AddFile_wxImage = filesysc.__wxMemoryFSHandler_AddFile_wxImage
221
222__wxMemoryFSHandler_AddFile_wxBitmap = filesysc.__wxMemoryFSHandler_AddFile_wxBitmap
223
224__wxMemoryFSHandler_AddFile_Data = filesysc.__wxMemoryFSHandler_AddFile_Data
225
226wxFileSystem_AddHandler = filesysc.wxFileSystem_AddHandler
227
228wxFileSystem_CleanUpHandlers = filesysc.wxFileSystem_CleanUpHandlers
229
230wxMemoryFSHandler_RemoveFile = filesysc.wxMemoryFSHandler_RemoveFile
231
232
233
234#-------------- VARIABLE WRAPPERS ------------------
235