1 /* 2 * Alerts.h 3 * Copyright (C) 2007 by Bryan Duff <duff0097@gmail.com> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 18 * USA 19 */ 20 21 #ifndef _MYALERTS_H_ 22 #define _MYALERTS_H_ 23 24 #include <string.h> 25 #include <stdlib.h> 26 27 #define kMoveToFront kFirstWindowOfClass 28 // Alerts 29 #define kResID_ALRT_MessageAlert 128 30 #define kResID_ALRT_ErrorAlert 129 31 // Dialogs 32 #define kResID_DLOG_SelectResolution 130 33 #define iOK 1 34 #define iResolutionPopUp 2 35 // Menus 36 #define mResolution 128 37 #define i640x480 1 38 #define i800x600 2 39 #define i1024x768 3 40 // String resources 41 #define kResID_STRn_ErrorStrings 128 42 // Misc 43 #define kInsignificantConstant7454955 0 44 45 // Error numbers 46 #define kErr_DSpFindBestContextFailed 1 47 #define kErr_DSpContext_ReserveFailed 2 48 #define kErr_ActivateContextFailed 3 49 #define kErr_DSpStartupFailed 4 50 #define kErr_DSpFadeFailed 5 51 #define kErr_AGLContext_CreationFailed 6 52 53 int SelectResolution(void); 54 void MessageAlert(unsigned char *theMessage); 55 void FatalErrorAlert(UInt16 errorNum, OSErr osError); 56 57 #endif 58