Rev 439 | Rev 449 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 439 | Rev 444 | ||
---|---|---|---|
Line 42... | Line 42... | ||
42 | typedef struct NavReplyRecord { |
42 | typedef struct NavReplyRecord { |
43 | ScriptCode keyScript; |
43 | ScriptCode keyScript; |
44 | } NavReplyRecord; |
44 | } NavReplyRecord; |
45 | #endif |
45 | #endif |
46 | 46 | ||
- | 47 | #ifdef macintosh |
|
- | 48 | typedef StringPtr PString; |
|
- | 49 | #else |
|
- | 50 | typedef LPCTSTR PString; |
|
- | 51 | #endif |
|
- | 52 | ||
47 | Boolean fileHasExtension(StandardFileReply* sfr, const char* extension); |
53 | Boolean fileHasExtension(StandardFileReply* sfr, const TCHAR* extension); |
48 | 54 | ||
49 | Boolean customchoosefile_nav(FSSpec *fss,ScriptCode *script, |
55 | Boolean customchoosefile_nav(FSSpec *fss,ScriptCode *script, |
50 | OSType tlist[], StringPtr extlist[],Boolean *premult); |
56 | OSType tlist[], PString extlist[],Boolean *premult); |
51 | 57 | ||
52 | Boolean choosefiletypes(StringPtr prompt,StandardFileReply *sfr,NavReplyRecord *reply, |
58 | Boolean choosefiletypes(PString prompt,StandardFileReply *sfr,NavReplyRecord *reply, |
53 | OSType types[],int ntypes,const char *lpstrFilter |
59 | OSType types[],int ntypes,const TCHAR *lpstrFilter |
54 | #ifdef _WIN32 |
60 | #ifdef _WIN32 |
55 | ,HWND hwndOwner |
61 | ,HWND hwndOwner |
56 | #endif /* _WIN32 */ |
62 | #endif /* _WIN32 */ |
57 | ); |
63 | ); |
58 | 64 | ||
59 | Boolean choosefile(StringPtr prompt,StandardFileReply *sfr, |
65 | Boolean choosefile(PString prompt,StandardFileReply *sfr, |
60 | NavReplyRecord *reply,OSType type,const char *lpstrFilter |
66 | NavReplyRecord *reply,OSType type,const TCHAR *lpstrFilter |
61 | #ifdef _WIN32 |
67 | #ifdef _WIN32 |
62 | ,HWND hwndOwner |
68 | ,HWND hwndOwner |
63 | #endif /* _WIN32 */ |
69 | #endif /* _WIN32 */ |
64 | ); |
70 | ); |
65 | 71 | ||
Line 73... | Line 79... | ||
73 | use a semicolon to separate the patterns (for example, "*.TXT;*.DOC;*.BAK"). |
79 | use a semicolon to separate the patterns (for example, "*.TXT;*.DOC;*.BAK"). |
74 | A pattern string can be a combination of valid file name characters |
80 | A pattern string can be a combination of valid file name characters |
75 | and the asterisk (*) wildcard character. Do not include spaces in the pattern string. |
81 | and the asterisk (*) wildcard character. Do not include spaces in the pattern string. |
76 | */ |
82 | */ |
77 | 83 | ||
78 | Boolean putfile(StringPtr prompt,StringPtr fname,OSType fileType,OSType fileCreator, |
84 | Boolean putfile(PString prompt, PString fname,OSType fileType,OSType fileCreator, |
79 | NavReplyRecord *reply,StandardFileReply *sfr, |
85 | NavReplyRecord *reply,StandardFileReply *sfr, |
80 | const char *lpstrDefExt, const char *lpstrFilter,int nFilterIndex |
86 | const TCHAR *lpstrDefExt, const TCHAR *lpstrFilter,int nFilterIndex |
81 | #ifdef _WIN32 |
87 | #ifdef _WIN32 |
82 | ,HWND hwndOwner |
88 | ,HWND hwndOwner |
83 | #endif /* _WIN32 */ |
89 | #endif /* _WIN32 */ |
84 | ); |
90 | ); |
85 | 91 | ||
86 | OSErr completesave(NavReplyRecord *reply); |
92 | OSErr completesave(NavReplyRecord *reply); |
87 | 93 | ||
88 | Boolean choosefile_sf(StringPtr prompt,StandardFileReply *sfr,NavReplyRecord *reply, |
94 | Boolean choosefile_sf(PString prompt,StandardFileReply *sfr,NavReplyRecord *reply, |
89 | OSType type,const char *lpstrFilter); |
95 | OSType type,const TCHAR *lpstrFilter); |
90 | 96 | ||
91 | Boolean putfile_sf(StringPtr prompt,StringPtr fname, |
97 | Boolean putfile_sf(PString prompt, PString fname, |
92 | OSType fileType,OSType fileCreator, |
98 | OSType fileType,OSType fileCreator, |
93 | NavReplyRecord *reply,StandardFileReply *sfr); |
99 | NavReplyRecord *reply,StandardFileReply *sfr); |
94 | 100 | ||
95 | OSErr completesave_sf(NavReplyRecord *reply); |
101 | OSErr completesave_sf(NavReplyRecord *reply); |
96 | 102 | ||
97 | Boolean customchoosefile_nav(FSSpec *fss,ScriptCode *script, |
103 | Boolean customchoosefile_nav(FSSpec *fss,ScriptCode *script, |
98 | OSType tlist[], StringPtr extlist[],Boolean *premult); |
104 | OSType tlist[], PString extlist[],Boolean *premult); |
99 | 105 | ||
100 | Boolean choosefile_nav(StringPtr prompt,StandardFileReply *sfr,NavReplyRecord *reply, |
106 | Boolean choosefile_nav(PString prompt,StandardFileReply *sfr,NavReplyRecord *reply, |
101 | OSType type,const char *lpstrFilter); |
107 | OSType type,const TCHAR *lpstrFilter); |
102 | 108 | ||
103 | Boolean putfile_nav(StringPtr prompt,StringPtr fname, |
109 | Boolean putfile_nav(PString prompt, PString fname, |
104 | OSType fileType,OSType fileCreator, |
110 | OSType fileType,OSType fileCreator, |
105 | NavReplyRecord *reply,StandardFileReply *sfr); |
111 | NavReplyRecord *reply,StandardFileReply *sfr); |
106 | 112 | ||
107 | OSErr completesave_nav(NavReplyRecord *reply); |
113 | OSErr completesave_nav(NavReplyRecord *reply); |
108 | 114 |