home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Applications / Creator Changer 2.7 / Code & Resource / Creator Changer.h < prev    next >
Encoding:
Text File  |  1996-04-30  |  3.2 KB  |  151 lines  |  [TEXT/KAHL]

  1. typedef unsigned     char Str4[5];
  2. typedef unsigned    char Str16[17];
  3.  
  4. typedef union
  5.     {
  6.     Str4            TEXT;
  7.     OSType            LONG;
  8.     } File_Union;
  9.  
  10. typedef struct
  11.     {
  12.     Str4            CreatorType;
  13.     Str4            FileType;
  14.     Str32            Description;
  15.     } pref_types;
  16.  
  17. typedef struct
  18.     {
  19.     Str4            FromFile;
  20.     Str4            ToCreator;
  21.     Str4            ToFile;
  22.     Str16            Name;
  23.     } auto_chng;
  24.  
  25. typedef struct
  26.     {
  27.     Boolean            DragQuit;
  28.     Boolean            AutoChange;
  29.     } global_prefs;
  30.     
  31. typedef struct
  32.     {
  33.     short            menu_id;
  34.     short            dlog_id;
  35.     short            num_items;
  36.     long            num_files;
  37.     OSType            pref_type;
  38.     Ptr                storage;
  39.     DialogPtr        dialog;
  40.     AEDescList        files;
  41.     } Dialog_Info;
  42.  
  43. #define    TRUE                    1
  44. #define    FALSE                    0
  45. #define    GOOD                    1
  46. #define    BAD                        0
  47. #define    YES                        1
  48. #define    NO                        0
  49. #define    ENTIRE_MENU                0
  50. #define    REMOVE_EVENTS            0
  51. #define    NIL_PTR                    0L
  52. #define    IN_FRONT                 (WindowPtr)-1L
  53. #define    MOUSE_REGION            0L
  54. #define    DELAY                    8
  55. #define    TYPE_LEN                 4
  56. #define    DESC_LEN                32
  57.  
  58. #define    CHNG_TYPE_DLOG_ID        200
  59. #define        CHNG_OK                1
  60. #define        CHNG_CANCEL            2
  61. #define        CHNG_CREATOR        3
  62. #define        CHNG_FILE            4
  63. #define        CHNG_CRNT_CREATOR    5
  64. #define        CHNG_CRNT_TYPE        6
  65. #define        CHNG_POP_UP            7
  66. #define        CHNG_MKLK             8
  67. #define        CHNG_ICON            14
  68. #define        CHNG_DLOG_UI        15
  69.  
  70. #define    PREF_DLOG_ID            500
  71. #define        PREF_POPUP            1
  72. #define        PREF_MAX_ITEMS        6
  73.  
  74. #define        PREF_PTYPE_DITL        501
  75. #define            P_PT_CT            1
  76. #define            P_PT_FT            2
  77. #define            P_PT_DS            3
  78. #define            P_PT_PM            4
  79. #define            P_PT_ADD        9
  80. #define            P_PT_DEL        10
  81. #define            P_PT_GFL        11
  82. #define            P_PT_DON        12
  83. #define            P_PT_USI        13
  84. #define        PREF_ATYPE_DITL        502
  85. #define            P_AC_CHFT        1
  86. #define            P_AC_CTCT        2
  87. #define            P_AC_CTFT        3
  88. #define            P_AC_POPM        4
  89. #define            P_AC_ADD        10
  90. #define            P_AC_DEL        11
  91. #define            P_AC_GFL        12
  92. #define            P_AC_DON        13
  93. #define            P_AC_USI        14
  94. #define        PREF_GNERL_DITL        503
  95. #define            P_GN_OKAC        1
  96. #define            P_GN_QADD        2
  97. #define            P_GN_OKBT        3
  98. #define            P_GN_USRI        4
  99.  
  100. #define    ABOUT_DLOG_ID            400                //    "About Creator Changer..." ID
  101. #define        ABOUT_OK            1
  102. #define        ABOUT_DLOG_UI        2
  103.     
  104. #define    ERROR_ALERT_ID            300                //    Error alert ID
  105.  
  106. #define    ERROR_STRING_LIST        128
  107. #define        TYPES_ERROR_1        1
  108. #define        TYPES_ERROR_2        2
  109. #define        DESC_ERROR            3
  110. #define        SYS7_ERROR_1        4
  111. #define        SYS7_ERROR_2        5
  112. #define        BAD_ITEM_ERROR        6
  113. #define        BAD_CF_TYPE_1        7
  114. #define        BAD_CF_TYPE_2        8
  115. #define        BAD_CF_TYPE_3        9
  116. #define        BAD_CF_TYPE_4        10
  117. #define        MULTI_FILE_1        11
  118. #define        MULTI_FILE_2        12
  119. #define        MULTI_FILE_3        13
  120.  
  121. #define    MISC_STRING_LIST        129
  122. #define        PREF_FILE_NAME        1
  123.     
  124. #define    MAIN_MENU_BAR_ID        128                //    The menubar ID
  125.     
  126. #define    APPLE_MENU_ID            128                //    The apple menu ID
  127. #define        A_ABOUT_ITEM        1                //    about creator changer menu ID
  128.     
  129. #define    FILE_MENU_ID            129                //    The options menu ID
  130. #define        F_OPEN_ITEM            1                //    open file menu item ID
  131. #define        F_PREF_ITEM            2
  132. #define        F_QUIT_ITEM            4                //    quit menu item ID
  133.  
  134. #define    EDIT_MENU_ID            130
  135. #define        E_UNDO_ITEM            1
  136. #define        E_CUT_ITEM            3
  137. #define        E_COPY_ITEM            4
  138. #define        E_PASTE_ITEM        5
  139. #define        E_CLEAR_ITEM        6
  140.     
  141. #define    PREF_TYPES_ID            300                //    the pop-up menu ID
  142. #define    AUTO_CHANGE_ID            301
  143.  
  144. #define    PREF_TYPE_ID            302
  145. #define        P_EPTYPE_ITEM        1
  146. #define        P_EATYPE_ITEM        2
  147. #define        P_GENERL_ITEM        3
  148.  
  149. #define    PREF_PT                    'CCpt'
  150. #define    PREF_GL                    'CCgl'
  151. #define    PREF_AC                    'CCac'