summary refs log tree commit diff
path: root/src/Alerts.h
blob: 02cad9fa0a5f01daa400a79c4d0d6d09845b7f45 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef _MYALERTS_H_
#define _MYALERTS_H_

/**> HEADER FILES <**/
#include <string.h>
#include <stdlib.h>

/**> CONSTANT DECLARATIONS <**/
#define	kMoveToFront		kFirstWindowOfClass
// Alerts
#define	kResID_ALRT_MessageAlert		128
#define	kResID_ALRT_ErrorAlert			129
// Dialogs
#define	kResID_DLOG_SelectResolution	130
#define	iOK								1
#define	iResolutionPopUp				2
// Menus
#define	mResolution						128
#define	i640x480						1
#define	i800x600						2
#define	i1024x768						3
// String resources
#define	kResID_STRn_ErrorStrings		128
// Misc
#define kInsignificantConstant7454955	0

// Error numbers
#define	kErr_DSpFindBestContextFailed	1
#define	kErr_DSpContext_ReserveFailed	2
#define	kErr_ActivateContextFailed		3
#define	kErr_DSpStartupFailed			4
#define	kErr_DSpFadeFailed				5
#define	kErr_AGLContext_CreationFailed	6

/**> FUNCTION PROTOTYPES <**/
int		SelectResolution( void );
void	MessageAlert( unsigned char *theMessage );
void	FatalErrorAlert( UInt16 errorNum, OSErr osError );

#endif