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 / OpenDoc Development / Debugging Support / OpenDoc™ Source Code / Core / InfoDefs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-28  |  5.1 KB  |  155 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        InfoDefs.h
  3.  
  4.     Contains:    constants used in both the code & resource of Info
  5.  
  6.     Owned by:    Ed Lai
  7.  
  8.     Copyright:    © 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <5>     6/21/96    eeh        task 10008: add buttons etc. for AppleGuide
  13.          <4>     6/19/96    EL        1358681: Resource IDs are in the reserved
  14.                                     range.
  15.          <3>      6/4/96    EL        1323543: Bundled checkbox is now two radio
  16.                                     buttons.
  17.          <2>     3/20/96    EL        1289563: define more constants for the heap
  18.                                     size dialog
  19.         <10>    10/16/95    CC        GM 1292157: Added kPartInfoEditorLabel and
  20.                                     kPartInfoNoEditorText.
  21.          <9>     4/27/95    TÇ        1223529 BB: ODSetPOName and ODSetIconFamily
  22.                                     should tweak file in root part case (Did
  23.                                     name piece)
  24.          <8>     3/28/95    TÇ        #1151710 BB: Toolbox running out of app
  25.                                     heap.  Document Size dialog implemented.
  26.          <7>     3/24/95    CG        Brought back Editor ID field.
  27.          <6>     3/23/95    TÇ        #1151710 BB: Toolbox running out of app
  28.                                     heap. (Not done).  Document Size dialog
  29.                                     partially implemented.  Added constants for
  30.                                     resources.
  31.          <5>     2/24/95    CG        1221029, 1221185: Info dialog appearance
  32.                                     problems.
  33.          <4>     2/10/95    CG        #1187539: Renaming a document using
  34.                                     Document Info handles file name conflicts.
  35.          <3>     9/26/94    TÇ        #1188044 Part Info Checkbox behaviour
  36.          <2>     9/15/94    TÇ        #1183571 implement Settings Extension
  37.          <1>     7/11/94    TÇ        first checked in
  38.          <1>     7/11/94    TÇ        first checked in
  39.          <1>     7/11/94    TÇ        first checked in
  40.          <0>      7/5/94    SV        SOMverted
  41.          <2>     4/13/94    TÇ        #1147222: Fix the View As popup in the Part
  42.                                     Frame Info dialog.  Also fix the Category
  43.                                     text, and the Kind & Editor popups to show
  44.                                     the current kind & editor respectively.
  45.          <1>    11/18/93    TÇ        first checked in
  46.  
  47.     To Do:
  48. */
  49.  
  50. #ifndef _INFODEFS_
  51. #define _INFODEFS_
  52.  
  53. #ifndef _RSRCBASE_
  54. #include "RsrcBase.h"
  55. #endif
  56.  
  57. #define kPartInfoDlgID            (kODCoreRsrcBase+10)
  58. #define kPartInfoReadOnlyPictID    (kODCoreRsrcBase+10)
  59. #define    kPartInfoKindCntl        (kODCoreRsrcBase+11)
  60. #define    kPartInfoKindMenu        (kODCoreRsrcBase+11)
  61. #define    kPartInfoEditorCntl        (kODCoreRsrcBase+12)
  62. #define    kPartInfoEditorMenu        (kODCoreRsrcBase+12)
  63. #define    kPartInfoViewAsCntl        (kODCoreRsrcBase+13)
  64. #define    kPartInfoViewAsMenu        (kODCoreRsrcBase+13)
  65.  
  66. #define kPartInfoInvalidNameAlertID    (kODCoreRsrcBase+12)
  67. #define kPartInfoLongCommentAlertID    (kODCoreRsrcBase+13)
  68.  
  69.  
  70. #define kPartInfoVertSep             25
  71. #define kPartInfoHorizSep            26
  72.  
  73. /* Changeable fields in Part Info dialog */
  74. #define kPartInfoOKBtn                   1
  75. #define kPartInfoCancelBtn            2
  76. #define kPartInfoSettingsButton        3
  77. #define kPartInfoCommentsEditFld    4
  78. #define kPartInfoByFld                5
  79. #define kPartInfoModifiedFld        7
  80. #define kPartInfoCreatedFld            9
  81. #define kPartInfoSizeFld            11
  82. #define kPartInfoSep1                 13
  83. #define kPartInfoEditorPopup        14
  84. #define kPartInfoKindPopup            15
  85. #define kPartInfoCategoryFld        16
  86. #define kPartInfoSep2                18
  87. #define kPartInfoShowLinksCheckbox  19
  88. #define kPartInfoShowLinksText        20
  89. #define kPartInfoStationeryCheckbox    21
  90. #define kPartInfoStationeryText        22
  91. #define kPartInfoActPartRadBtn        23
  92. #define kPartInfoSelPartRadBtn        24
  93. #define kPartInfoViewAsPopup        25
  94. #define kPartInfoNameEditFld        26
  95. #define kPartInfoPartThumbnail      28
  96. #define kPartInfoDefaultButtonItem    29
  97. #define kPartInfoIDFld                30
  98. #define kPartInfoMemorySizeButton    32
  99. #define kPartInfoEditorLabel        33
  100. #define kPartInfoNoEditorText        34
  101. #define kPartInfoBundledText        35
  102. #define kPartInfoReadOnlyPict        36
  103. #define kPartInfoReadOnlyText        37
  104. #define kPartInfoActPartText        38
  105. #define kPartInfoSelPartText        39
  106. #define kPartInfoAppleGuideButton    40
  107.  
  108. // Strings used by Part Info dialogs
  109. #define kODPartInfoSizeInBytes            (kODCoreRsrcBase+10)
  110. #define kODPartInfoSizeInK                (kODCoreRsrcBase+11)
  111. #define    kODDocumentInfoWindowName        (kODCoreRsrcBase+12)
  112. #define kODPartInfoStrUnknownID            (kODUtilitiesRsrcBase+0)
  113.  
  114. // Other Strings used by InfoUtil
  115. #define    kODInfoUtilStrsID                (kODUtilitiesRsrcBase+1)
  116. #define kODStrIndNoKinds                    1
  117. #define kODStrIndNoEditors                    2
  118.  
  119. /* Document Heap dialog defines */
  120. /* resource ids in the 265-269 range in this file are reserved for the Doc Heap dialog */
  121.  
  122. #define kDocHeapDlgID            (kODCoreRsrcBase+15)
  123.  
  124. #define kArrowBtnsCntlID        (kODCoreRsrcBase+15)
  125.  
  126. #define kPICTRsrcType            'PICT'
  127. #define kSIZERsrcType            'SIZE'
  128.  
  129. #define kArrowBtnsPictOffID        (kODCoreRsrcBase+15)
  130. #define kArrowBtnsPictTopOnID    (kODCoreRsrcBase+16)
  131. #define kArrowBtnsPictBotOnID    (kODCoreRsrcBase+17)
  132.  
  133.  
  134. #define kDocHeapOKBtn                   1
  135. #define kDocHeapCancelBtn            2
  136. #define kDocHeapDefaultSizeRadBtn    3
  137. #define kDocHeapDefaultSizeFld        4
  138. #define kDocHeapDefaultSizeBotBtnRect 5
  139. #define kDocHeapPreferdSizeRadBtn    6
  140. #define kDocHeapPreferdSizeFld        7
  141. #define kDocHeapPreferdSizeBotBtnRect 8
  142. #define kDocHeapMakeChangeStatText     9
  143. #define kDocHeapDocumentNameFld        10
  144. #define kDocHeapDefaultKStatText    11
  145. #define kDocHeapPreferdKStatText    12
  146. #define kDocHeapDefaultButtonItem    13
  147. #define kDocHeapDefaultSizeTopBtnRect 14
  148. #define kDocHeapDefaultSizeBtns        15
  149. #define kDocHeapPreferdSizeTopBtnRect 16
  150. #define kDocHeapPreferdSizeBtns        17
  151. #define kDocHeapChangeNextLaunchStatText     20
  152.  
  153.  
  154. #endif // _INFODEFS_
  155.