11218
|
1 /*
|
|
2 File: Utilities.h
|
|
3
|
|
4 Description: Interface file for Utilities.c source code.
|
|
5
|
|
6 Copyright: © Copyright 2003 Apple Computer, Inc. All rights reserved.
|
|
7
|
|
8 Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc.
|
|
9 ("Apple") in consideration of your agreement to the following terms, and your
|
|
10 use, installation, modification or redistribution of this Apple software
|
|
11 constitutes acceptance of these terms. If you do not agree with these terms,
|
|
12 please do not use, install, modify or redistribute this Apple software.
|
|
13
|
|
14 In consideration of your agreement to abide by the following terms, and subject
|
|
15 to these terms, Apple grants you a personal, non-exclusive license, under Apple’s
|
|
16 copyrights in this original Apple software (the "Apple Software"), to use,
|
|
17 reproduce, modify and redistribute the Apple Software, with or without
|
|
18 modifications, in source and/or binary forms; provided that if you redistribute
|
|
19 the Apple Software in its entirety and without modifications, you must retain
|
|
20 this notice and the following text and disclaimers in all such redistributions of
|
|
21 the Apple Software. Neither the name, trademarks, service marks or logos of
|
|
22 Apple Computer, Inc. may be used to endorse or promote products derived from the
|
|
23 Apple Software without specific prior written permission from Apple. Except as
|
|
24 expressly stated in this notice, no other rights or licenses, express or implied,
|
|
25 are granted by Apple herein, including but not limited to any patent rights that
|
|
26 may be infringed by your derivative works or by other works in which the Apple
|
|
27 Software may be incorporated.
|
|
28
|
|
29 The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO
|
|
30 WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED
|
|
31 WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
32 PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE OR IN
|
|
33 COMBINATION WITH YOUR PRODUCTS.
|
|
34
|
|
35 IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR
|
|
36 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
|
37 GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
38 ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION
|
|
39 OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF CONTRACT, TORT
|
|
40 (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN
|
|
41 ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
42
|
|
43 Change History (most recent first):
|
|
44
|
|
45 */
|
|
46
|
|
47 #ifdef __APPLE_CC__
|
|
48 // #include <Carbon/Carbon.h>
|
|
49 #include <QuickTime/QuickTime.h>
|
|
50 #else
|
|
51 // #include <Carbon.h>
|
|
52 #include <QuickTime.h>
|
|
53 #endif
|
|
54
|
|
55
|
|
56 #define kTypeListCount 2
|
|
57 #if TARGET_OS_MAC
|
|
58 #define PASCAL_RTN pascal
|
|
59 #endif
|
|
60
|
|
61 #ifdef __APPLE_CC__
|
|
62 #define sigMoviePlayer FOUR_CHAR_CODE('TVOD')
|
|
63 #else
|
|
64 #include <FileTypesAndCreators.h>
|
|
65 #endif
|
|
66
|
|
67
|
|
68 //
|
|
69 // Typedefs
|
|
70 //
|
|
71 typedef const OSTypePtr TypeListPtr;
|
|
72
|
|
73
|
|
74 //
|
|
75 // Prototypes
|
|
76 //
|
|
77 OSErr GetOneFileWithPreview (short theNumTypes, TypeListPtr theTypeList, FSSpecPtr theFSSpecPtr, void *theFilterProc);
|
|
78 Handle CreateOpenHandle (OSType theApplicationSignature, short theNumTypes, TypeListPtr theTypeList);
|
|
79 PASCAL_RTN void HandleNavEvent(NavEventCallbackMessage theCallBackSelector, NavCBRecPtr theCallBackParms, void *theCallBackUD);
|
|
80 OSErr PutFile (ConstStr255Param thePrompt, ConstStr255Param theFileName, FSSpecPtr theFSSpecPtr, Boolean *theIsSelected, Boolean *theIsReplacing);
|
|
81 void DrawLobsterPICTtoGWorld(CGrafPtr destGWorld, Rect *srcRect);
|
|
82
|
|
83
|