home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / OS / FWToolbx / FWAltDef.h < prev    next >
Encoding:
Text File  |  1996-09-17  |  2.6 KB  |  85 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWAltDef.h
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef FWALTDEF_H
  11. #define FWALTDEF_H
  12.  
  13. // ----- Windows includes -----
  14.  
  15. #if defined(FW_BUILD_WIN) && !defined(_INC_WINDOWS)
  16. #include <Windows.h>
  17. #endif
  18.  
  19. //========================================================================================
  20. //    Constants
  21. //========================================================================================
  22.  
  23. typedef short FW_AlertResult;
  24. typedef short FW_ButtonType;
  25. typedef short FW_IconType;
  26. typedef short FW_DefaultButton;
  27.  
  28. #ifdef FW_BUILD_MAC
  29. const FW_ButtonType FW_kOK                    = 0x0000;
  30. const FW_ButtonType FW_kOKCancel             = 0x0001;
  31. const FW_ButtonType FW_kAbortRetryIgnore     = 0x0002;
  32. const FW_ButtonType FW_kYesNoCancel         = 0x0003;
  33. const FW_ButtonType FW_kYesNo                 = 0x0004;
  34. const FW_ButtonType FW_kRetryCancel         = 0x0005;
  35.  
  36. const FW_IconType FW_kStopAlert             = 0x0010;
  37. const FW_IconType FW_kCautionAlert             = 0x0020;
  38. const FW_IconType FW_kNoteAlert             = 0x0040;
  39.     
  40. const FW_DefaultButton FW_kDefaultButton1     = 0x0000;
  41. const FW_DefaultButton FW_kDefaultButton2     = 0x0100;
  42. const FW_DefaultButton FW_kDefaultButton3     = 0x0200;
  43.     
  44. enum EAlertResultConstants
  45. {
  46.     FW_kOKButtonPressed         = 1,
  47.     FW_kCancelButtonPressed     = 2,
  48.     FW_kAbortButtonPressed         = 3,
  49.     FW_kRetryButtonPressed         = 4,
  50.     FW_kIgnoreButtonPressed     = 5,
  51.     FW_kYesButtonPressed         = 6,
  52.     FW_kNoButtonPressed         = 7
  53. };
  54. #endif
  55.  
  56. #ifdef FW_BUILD_WIN
  57. const FW_ButtonType FW_kOK                    = MB_OK;
  58. const FW_ButtonType FW_kOKCancel             = MB_OKCANCEL;
  59. const FW_ButtonType FW_kAbortRetryIgnore     = MB_ABORTRETRYIGNORE;
  60. const FW_ButtonType FW_kYesNoCancel         = MB_YESNOCANCEL;
  61. const FW_ButtonType FW_kYesNo                 = MB_YESNO;
  62. const FW_ButtonType FW_kRetryCancel         = MB_RETRYCANCEL;
  63.     
  64. const FW_IconType FW_kStopAlert                = MB_ICONHAND;
  65. const FW_IconType FW_kCautionAlert             = MB_ICONQUESTION;
  66. const FW_IconType FW_kNoteAlert             = MB_ICONASTERISK;
  67.     
  68. const FW_DefaultButton FW_kDefaultButton1     = MB_DEFBUTTON1;
  69. const FW_DefaultButton FW_kDefaultButton2     = MB_DEFBUTTON2;
  70. const FW_DefaultButton FW_kDefaultButton3     = MB_DEFBUTTON3;
  71.  
  72. enum EAlertResultConstants
  73. {
  74.     FW_kOKButtonPressed         = IDOK ,
  75.     FW_kCancelButtonPressed     = IDCANCEL,
  76.     FW_kAbortButtonPressed         = IDABORT ,
  77.     FW_kRetryButtonPressed         = IDRETRY,
  78.     FW_kIgnoreButtonPressed     = IDIGNORE,
  79.     FW_kYesButtonPressed         = IDYES,
  80.     FW_kNoButtonPressed         = IDNO
  81. };
  82. #endif
  83.     
  84. #endif
  85.