Rev 193 | Rev 259 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 193 | Rev 199 | ||
---|---|---|---|
Line 155... | Line 155... | ||
155 | } |
155 | } |
156 | return true; |
156 | return true; |
157 | } |
157 | } |
158 | 158 | ||
159 | Boolean choosefiletypes(StringPtr prompt,StandardFileReply *sfr,NavReplyRecord *reply, |
159 | Boolean choosefiletypes(StringPtr prompt,StandardFileReply *sfr,NavReplyRecord *reply, |
160 | OSType types[],int ntypes,char *lpstrFilter) |
160 | OSType types[],int ntypes,const char *lpstrFilter) |
161 | { |
161 | { |
162 | //NavTypeListHandle tl = (NavTypeListHandle)NewHandle(sizeof(NavTypeList) + ntypes*sizeof(OSType)); |
162 | //NavTypeListHandle tl = (NavTypeListHandle)NewHandle(sizeof(NavTypeList) + ntypes*sizeof(OSType)); |
163 | OSErr e; |
163 | OSErr e; |
164 | long count; |
164 | long count; |
165 | AEKeyword theKeyword; |
165 | AEKeyword theKeyword; |
Line 193... | Line 193... | ||
193 | DisposeNavObjectFilterUPP(filter_upp); |
193 | DisposeNavObjectFilterUPP(filter_upp); |
194 | return sfr->sfGood; |
194 | return sfr->sfGood; |
195 | } |
195 | } |
196 | 196 | ||
197 | Boolean choosefile(StringPtr prompt,StandardFileReply *sfr, |
197 | Boolean choosefile(StringPtr prompt,StandardFileReply *sfr, |
198 | NavReplyRecord *reply,OSType type,char *lpstrFilter) |
198 | NavReplyRecord *reply,OSType type,const char *lpstrFilter) |
199 | { |
199 | { |
200 | return choosefiletypes(prompt,sfr,reply,&type,1,lpstrFilter); |
200 | return choosefiletypes(prompt,sfr,reply,&type,1,lpstrFilter); |
201 | } |
201 | } |
202 | 202 | ||
203 | Boolean putfile(StringPtr prompt,StringPtr fname,OSType fileType,OSType fileCreator, |
203 | Boolean putfile(StringPtr prompt,StringPtr fname,OSType fileType,OSType fileCreator, |
204 | NavReplyRecord *reply,StandardFileReply *sfr, |
204 | NavReplyRecord *reply,StandardFileReply *sfr, |
205 | char *lpstrDefExt,char *lpstrFilter,int nFilterIndex){ |
205 | char *lpstrDefExt,const char *lpstrFilter,int nFilterIndex){ |
206 | // NavReplyRecord reply; |
206 | // NavReplyRecord reply; |
207 | NavDialogOptions dopts; |
207 | NavDialogOptions dopts; |
208 | // AEDesc defaultLocation; |
208 | // AEDesc defaultLocation; |
209 | AEKeyword theKeyword; |
209 | AEKeyword theKeyword; |
210 | DescType actualType; |
210 | DescType actualType; |