home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Developers / src / out-of-phase-102-c / OutOfPhase 1.02 Source / OutOfPhase Folder / Level 1 Extensions 29Sep94 / Alert.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-23  |  1.4 KB  |  47 lines  |  [TEXT/KAHL]

  1. /* Alert.h */
  2.  
  3. #ifndef Included_Alert_h
  4. #define Included_Alert_h
  5.  
  6. /* Alert module depends on: */
  7. /* MiscInfo.h */
  8. /* Audit */
  9. /* Debug */
  10. /* Definitions */
  11. /* Memory */
  12. /* Screen */
  13. /* DataMunging */
  14. /* EventLoop */
  15. /* SimpleButton */
  16. /* WrapTextBox */
  17. /* Menus */
  18.  
  19. /* initialize the alert system, allocate the bitmaps and temporary memory stash */
  20. MyBoolean                    InitializeAlertSubsystem(void);
  21.  
  22. /* clean up internal data structures */
  23. void                            ShutdownAlertSubsystem(void);
  24.  
  25. /* display a halt (Stopsign) alert.  ExtraInfo is inserted into Message where */
  26. /* the _ character is */
  27. void                            AlertHalt(char* Message, char* ExtraInfo);
  28.  
  29. /* display a warning (!) alert. ExtraInfo is inserted into Message where */
  30. /* the _ character is */
  31. void                            AlertWarning(char* Message, char* ExtraInfo);
  32.  
  33. /* display an informational (I) alert. ExtraInfo is inserted into Message where */
  34. /* the _ character is */
  35. void                            AlertInfo(char* Message, char* ExtraInfo);
  36.  
  37. /* values that can be returned from AskYesNoCancel */
  38. typedef enum {eYes EXECUTE(= -12343), eNo, eCancel} YesNoCancelType;
  39.  
  40. /* present a dialog with 3 buttons (yes, no, and cancel).  if Cancel is NIL, */
  41. /* then there will only be 2 buttons.  ExtraInfo is inserted into Message where */
  42. /* the _ character is */
  43. YesNoCancelType        AskYesNoCancel(char* Message, char* ExtraInfo,
  44.                                         char* Yes, char* No, char* Cancel);
  45.  
  46. #endif
  47.