home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc / OpenDoc Development / Debugging Support / OpenDoc Source Code / DocShell / OpenDocX.r < prev    next >
Encoding:
Text File  |  1996-04-22  |  6.2 KB  |  216 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        OpenDocX.r
  3.  
  4.     Contains:    resources for the launcher (OpenDoc™)
  5.  
  6.     Owned by:    Tantek Çelik
  7.  
  8.     Copyright:    © 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <3>     3/14/96    NP        1258295: Definition of ALRT resource to
  13.                                     display when user double-clicks app.
  14.          <2>     1/15/96    JA        1269485: Added 'ictb' for splash dlog to
  15.                                     change font to Geneva 10
  16.         <15>    10/26/95    TÇ        1296574 GM:Cannot set default memory
  17.                                     partition size.
  18.         <14>    10/25/95    TÇ        1281409 GM: OpenDoc needs an AboutBox.
  19.         <13>     9/29/95    eeh        1287262: use ShellDef.h
  20.         <12>      9/8/95    eeh        1268998: add prefs file name 'STR '
  21.                                     resource
  22.         <11>      6/8/95    RR        #1257260 Collapse base classes. #1214898
  23.                                     StdTypes.r -> ODTypes.r
  24.         <10>     5/19/95    TÇ        1155852 BB: String constants need to be
  25.                                     moved to resource for Localization
  26.          <9>      1/6/95    jpa        Get rsrcs from OpenDocX.res (not .rsrc) and
  27.                                     DocStub.rsrc. Don't copy ckid's. [1196515]
  28.          <8>    12/25/94    TÇ        1191189 Eliminate duplicate Def.h, Def.xh
  29.                                     files
  30.          <7>     12/5/94    jpa        Added resources for error handling. Include
  31.                                     new OpenDocX.rsrc (moved many rsrcs into
  32.                                     it.) [1198075]
  33.          <6>     10/7/94    TÇ        #1191470 Need both 68K and PPC document
  34.                                     stub application
  35.          <5>     8/19/94    TÇ        #1159233 Remove references to j3di, all but
  36.                                     the one mpwshell variable reference
  37.          <4>     7/25/94    TÇ        added Jens' Error Alert ALRT and DITL
  38.                                     resources for launcher error alerts
  39.          <3>     7/14/94    TÇ        use constants for resources which are
  40.                                     CHANGEd for copying into documents
  41.          <2>     7/14/94    TÇ        use full path for read statement
  42.          <1>     7/13/94    TÇ        first checked in
  43.          <0>     6/27/94    SV        SOMverted
  44.          <5>     4/18/94    TÇ        #1144379 Stationery model & generation have
  45.                                     been fixed to enable dragging & dropping of
  46.                                     stationery onto open documents.
  47.          <4>    12/17/93    eeh        added line "Change 'scsz' (0) to 'J3DI'
  48.                                     (3)" to allow docs to get GetAETE events
  49.          <3>    11/23/93    TÇ        ?
  50.          <2>    10/26/93    TÇ        Change 'CODE' (2) to 'J3DI' (2);
  51.          <1>    10/18/93    TÇ        first checked in
  52.  
  53.     To Do:
  54.     In Progress:
  55.         
  56. */
  57.  
  58. #ifndef _SHELLDEF_
  59. #include "ShellDef.h"
  60. #endif
  61.  
  62. #ifndef SOM_Module_OpenDoc_StdDefs_defined
  63. #include "StdDefs.r"
  64. #endif
  65.  
  66. // Resources from the ResEdit file.
  67. // Graphical resources like ALRT, DLOG, DITL, PICT, and icons should go here.
  68. include "OpenDocX.res" not 'ckid';
  69.  
  70. // Resources for the document stub:
  71. include "DocStub.rsrc";
  72.  
  73.  
  74. // Resources for OpenDoc™ the application
  75.  
  76. #define SystemSevenOrBetter 1            // we want the extended types
  77. #define    SystemSevenOrLater    1            // Types.r uses this variable
  78.  
  79. #ifndef __TYPES_R__
  80. #include "Types.r"
  81. #endif
  82.  
  83. #ifndef __SYSTYPES_R__
  84. #include "SysTypes.r"
  85. #endif
  86.  
  87.  
  88. #define kApplCrtrID        128
  89. #define kWildCrtrID        129
  90.  
  91. resource 'ALRT' (2002, "Double-click warning") {
  92.     {40, 40, 164, 405},
  93.     2002,
  94.     {    /* array: 4 elements */
  95.         /* [1] */
  96.         OK, visible, sound1,
  97.         /* [2] */
  98.         OK, visible, sound1,
  99.         /* [3] */
  100.         OK, visible, sound1,
  101.         /* [4] */
  102.         OK, visible, sound1
  103.     },
  104.     alertPositionMainScreen
  105. };
  106.  
  107. resource 'DITL' (2002, "Double-click warning") {
  108.     {    /* array DITLarray: 2 elements */
  109.         /* [1] */
  110.         {91, 293, 111, 351},
  111.         Button {
  112.             enabled,
  113.             "OK"
  114.         },
  115.         /* [2] */
  116.         {11, 71, 75, 355},
  117.         StaticText {
  118.             disabled,
  119.             "Double clicking on this OpenDoc™ icon ha"
  120.             "s no effect. If you wish to create a new"
  121.             " document, please use stationery -- foun"
  122.             "d in the Stationery folder."
  123.         }
  124.     }
  125. };
  126.  
  127. // SIZE -1
  128.  
  129.  RESOURCE 'SIZE' (-1) {
  130.     reserved,
  131.     acceptSuspendResumeEvents,
  132.     reserved,
  133.     canBackground,
  134.     doesActivateOnFGSwitch,
  135.     backgroundAndForeground,
  136.     dontGetFrontClicks,
  137.     acceptChildDiedEvents,    // Need to be notified by CFM if load fails
  138.     is32BitCompatible,
  139.     isHighLevelEventAware,
  140.     localAndRemoteHLEvents,
  141.     isStationeryAware,
  142.     dontUseTextEditServices,
  143.     reserved,
  144.     reserved,
  145.     reserved,
  146.     160 * 1024,    
  147.     80 * 1024
  148. };
  149.  
  150.  
  151. resource 'STR#' (kLaunchFailedErrStrings, purgeable) {
  152.     {
  153.         /* [1] */ "of an unexpected error ^3",
  154.         /* [2] */ "of an invalid context ID",
  155.         /* [3] */ "of an invalid connection to the library “^2”",
  156.         /* [4] */ "a symbol was not found in the library “^2”",
  157.         /* [5] */ "of a missing section in the library “^2”",
  158.         /* [6] */ "the library “^2” could not be found",
  159.         /* [7] */ "the library name “^2” is already in use",
  160.         /* [8] */ "the library “^2” has an unknown data format",
  161.         /* [9] */ "the library “^2” has unresolved symbols",
  162.         /* [10] */ "of an error ^3",
  163.         /* [11] */ "there was not enough memory available to"
  164.         " load the library “^2”",
  165.         /* [12] */ "there was not enough memory available to"
  166.                     " load the library “^2”",
  167.         /* [13] */ "no more context IDs are available for library “^2”",
  168.         /* [14] */ "of an order error in the init function of"
  169.                     " library “^2”",
  170.         /* [15] */ "the library “^2” is too old",
  171.         /* [16] */ "the library “^2” is too new",
  172.         /* [17] */ "of a circularity in the load order of library “^2”",
  173.         /* [18] */ "of an error connecting to library “^2”",
  174.         /* [19] */ "of an error connecting to library “^2”",
  175.         /* [20] */ "of an error during initialization of library “^2”",
  176.         /* [21] */ "of an internal CFM inconsistency",
  177.         /* [22] */ "the library “^2” is corrupted: please replace it",
  178.         /* [23] */ "of an error in the “^2” library’s initialization routine ",
  179.         /* [24] */ "no application was found in the library “^2”s 'cfrg' resource",
  180.         /* [25] */ "the library “^2” cannot be run on this "
  181.                     "type of Macintosh; please replace it",
  182.         /* [26] */ "the library “^2” is used invalidly"
  183.     }
  184. };
  185.  
  186. resource 'STR#' (kODXLibsFldrStrID, purgeable) {
  187.     {
  188.         "OpenDoc Libraries",
  189.         "They're EVERYWHERE!"
  190.     }
  191. };
  192.  
  193. resource 'STR ' (kSHLPrefsFileNameResID, "ODPrefs file name") {
  194.     "OpenDoc Preferences"
  195. };
  196.  
  197. resource 'STR ' (kSHLPrefsFolderNameResID, "ODPrefs folder name") {
  198.     "OpenDoc Prefs"
  199. };
  200.  
  201. data 'ictb' (kODSplashDlogID) {
  202.     $"0000 0000"    /* User item is unaffected */
  203.     $"0005 0008"    /* Change font + size of text item */
  204.     
  205.     $"0001"            /* Use application font */
  206.     $"0000"            /* Plain style [ignored] */
  207.     $"000A"            /* 10pt size */
  208.     $"0000"            /* Red component [ignored] */
  209.     $"0000"            /* Blue component [ignored] */
  210.     $"0000"            /* Green component [ignored] */
  211.     $"0000"            /* BG Red component [ignored] */
  212.     $"0000"            /* BG Blue component [ignored] */
  213.     $"0000"            /* BG Green component [ignored] */
  214.     $"0001"            /* srcOr mode [ignored] */
  215. };
  216.