1 /*****************************************************************************\
2      Snes9x - Portable Super Nintendo Entertainment System (TM) emulator.
3                 This file is licensed under the Snes9x License.
4    For further information, consult the LICENSE file in the root directory.
5 \*****************************************************************************/
6 
7 /***********************************************************************************
8   SNES9X for Mac OS (c) Copyright John Stiles
9 
10   Snes9x for Mac OS X
11 
12   (c) Copyright 2001 - 2011  zones
13   (c) Copyright 2002 - 2005  107
14   (c) Copyright 2002         PB1400c
15   (c) Copyright 2004         Alexander and Sander
16   (c) Copyright 2004 - 2005  Steven Seeger
17   (c) Copyright 2005         Ryan Vogt
18  ***********************************************************************************/
19 
20 
21 #ifndef _mac_dialog_h_
22 #define _mac_dialog_h_
23 
24 enum
25 {
26 	kS9xMacAlertFolderNotFound = 1,
27 	kS9xMacAlertFolderNotFoundHint,
28 	kS9xMacAlertFolderFailToCreate,
29 	kS9xMacAlertFolderFailToCreateHint,
30 	kS9xMacAlertkBadRom,
31 	kS9xMacAlertkBadRomHint,
32 	kS9xMacAlertCFCantAddEntry,
33 	kS9xMacAlertCFCantAddEntryHint,
34 	kS9xMacAlertRequiredSystem,
35 	kS9xMacAlertRequiredSystemHint
36 };
37 
38 extern int	autofireLastTabIndex;
39 
40 void AboutDialog (void);
41 void RomInfoDialog (void);
42 void ConfigureAutofire (void);
43 void StartCarbonModalDialog (void);
44 void FinishCarbonModalDialog (void);
45 void RegisterHelpBook (void);
46 void MoveWindowPosition (WindowRef, int, Boolean);
47 void SaveWindowPosition (WindowRef, int);
48 void AppearanceAlert (AlertType, int, int);
49 void SetHIViewID (HIViewID *, OSType, SInt32);
50 OSStatus SetStaticTextCStr (HIViewRef, char *, Boolean);
51 OSStatus SetStaticTextCFString (HIViewRef, CFStringRef, Boolean);
52 OSStatus SetStaticTextTrunc (HIViewRef, TruncCode, Boolean);
53 OSStatus GetEditTextCStr (HIViewRef, char *);
54 OSStatus SetEditTextCStr (HIViewRef, char *, Boolean);
55 OSStatus CopyEditTextCFString (HIViewRef, CFStringRef *);
56 OSStatus SetEditTextCFString (HIViewRef, CFStringRef, Boolean);
57 OSStatus SetEditTextSelection (HIViewRef, SInt16, SInt16);
58 pascal OSStatus DefaultEventHandler (EventHandlerCallRef, EventRef, void *);
59 
60 #endif
61