home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 2 / ETO Development Tools 2.iso / Tools - Objects / MacApp / MacApp CD Release / MacApp 2.0.1 (Many Libraries) / Libraries / Defaults.r < prev    next >
Encoding:
Text File  |  1990-10-25  |  8.3 KB  |  430 lines  |  [TEXT/MPS ]

  1. /* Copyright © 1986-1990 Apple Computer, Inc.  All rights reserved. */
  2. /* Default resources that can be included in your application if desired */
  3.  
  4. /* • Auto-Include the requirements for this source */
  5. #ifndef __TYPES.R__
  6. #include "Types.r"
  7. #endif
  8.  
  9. #ifndef __SYSTYPES.R__
  10. #include "SysTypes.r"
  11. #endif
  12.  
  13. #ifndef __MacAppTypes__
  14. #include "MacAppTypes.r"
  15. #endif
  16.  
  17. #ifndef __ViewTypes__
  18. #include "ViewTypes.r"
  19. #endif
  20.  
  21. #if qTemplateViews
  22. resource 'view' (kDefaultWindowID,
  23. #if qNames
  24. "kDefaultWindowID",
  25. #endif
  26.     purgeable) {
  27.     {
  28.         root, 'WIND', { 50, 20 }, { 260, 430 }, sizeVariable, sizeVariable, shown, enabled,
  29.         Window        { "", zoomDocProc, goAwayBox, resizable, modeless,
  30.                     ignoreFirstClick,
  31.                     freeOnClosing, disposeOnFree, closesDocument, openWithDocument, dontAdaptToScreen,
  32.                     stagger, forceOnScreen, dontCenter, 'DFLT', "" };
  33.  
  34.         'WIND', 'SCLR',    { 0, 0 }, { 260-kSBarSizeMinus1, 430-kSBarSizeMinus1 },
  35.         sizeRelSuperView, sizeRelSuperView, shown, enabled,
  36.         Scroller    { "", vertScrollBar, horzScrollBar, 0, 0, 16, 16,
  37.                     vertConstrain, horzConstrain, { 0, 0, 0, 0 } };
  38.  
  39.         'SCLR',IncludeViews    { kDefaultViewID }
  40.     }
  41. };
  42.  
  43. resource 'view' (kDefaultViewID,
  44. #if qNames
  45. "kDefaultViewID",
  46. #endif
  47.     purgeable) {
  48.     {
  49.         root, 'DFLT', { 0, 0 }, { 134, 414 }, sizeFixed, sizeFixed, shown, enabled,
  50.         DefaultView        {""}                // A ClassName can be put in this string
  51.                                             // or do a RegisterStdType to point to
  52.                                             // something to create for a "Default View"
  53.     }
  54. };
  55. #endif
  56.  
  57. resource 'WIND' (kDefaultWindowID,
  58. #if qNames
  59. "kDefaultWindowID",
  60. #endif
  61.     purgeable) {
  62.     {50, 40, 250, 436},
  63.     zoomDocProc,
  64.     invisible,
  65.     goAway,
  66.     0x0,
  67.     ""
  68. };
  69.  
  70. resource 'SIZE' (-1) {
  71.     saveScreen,
  72.     acceptSuspendResumeEvents,
  73.     enableOptionSwitch,
  74.     canBackground,
  75.     MultiFinderAware,
  76.     backgroundAndForeground,
  77.     dontGetFrontClicks,
  78.     ignoreChildDiedEvents,
  79.     is32BitCompatible,
  80.     reserved,
  81.     reserved,
  82.     reserved,
  83.     reserved,
  84.     reserved,
  85.     reserved,
  86.     reserved,
  87. #if qDebug
  88.     534 * 1024,
  89.     246 * 1024
  90. #else
  91.     384 * 1024,                                                    // try to leave enough room for printing
  92.     96 * 1024
  93. #endif
  94. };
  95.  
  96. resource 'DITL' (phAboutApp,
  97. #if qNames
  98. "phAboutApp",
  99. #endif
  100.     purgeable) {
  101.      {    /* array DITLarray: 3 elements */
  102.         /* [1] */
  103.         {160, 182, 180, 262},
  104.         Button {
  105.             enabled,
  106.             "OK"
  107.         };
  108.         /* [2] */
  109.         {8, 70, 152, 316},
  110.         StaticText {
  111.             disabled,
  112.             "^0"                                                // The ^0 will be dynamically replaced with CurApName
  113.             "\n\nThis program was written "
  114.             "with MacApp® © 1985-1990 Apple Computer, Inc."
  115.         };
  116.         /* [3] */
  117.         {10, 20, 42, 52},
  118.         Icon {
  119.             disabled,
  120.             1
  121.         }
  122.     }
  123. };
  124.  
  125. resource 'ALRT' (phAboutApp,
  126. #if qNames
  127. "phAboutApp",
  128. #endif
  129.     purgeable) {
  130.     {90, 100, 280, 412},
  131.     phAboutApp,
  132.     {
  133.         OK, visible, silent;
  134.         OK, visible, silent;
  135.         OK, visible, silent;
  136.         OK, visible, silent
  137.     }
  138. };
  139.  
  140.  
  141. resource 'cmnu' (mApple,
  142. #if qNames
  143. "mApple",
  144. #endif
  145. nonpurgeable) {
  146.     mApple,
  147.     textMenuProc,
  148.     0x7FFFFFFD,
  149.     enabled,
  150.     apple,
  151.     {
  152.     "About ^0…", noIcon, noKey, noMark, plain, cAboutApp;        // The ^0 will be dynamically replaced with CurApName
  153.     "-",         noIcon, noKey, noMark, plain, nocommand
  154.     }
  155. };
  156.  
  157. resource 'cmnu' (mFile,
  158. #if qNames
  159. "mFile",
  160. #endif
  161. nonpurgeable) {
  162.     mFile,
  163.     textMenuProc,
  164.     0x7FFFFFFD,
  165.     enabled,
  166.     "File",
  167.     {
  168.     "New",                noIcon, "N",    noMark, plain, cNew;
  169.     "Open…",            noIcon, "O",    noMark, plain, cOpen;
  170.     "-",                noIcon, noKey,    noMark, plain, nocommand;
  171.     "Close",            noIcon, "W",    noMark, plain, cClose;
  172.     "Save",                noIcon, "S",    noMark, plain, cSave;
  173.     "Save As…",            noIcon, noKey,    noMark, plain, cSaveAs;
  174.     "Save a Copy In…",    noIcon, noKey,    noMark, plain, cSaveCopy;
  175.     "Revert",            noIcon, noKey,    noMark, plain, cRevert;
  176.     "-",                noIcon, noKey,    noMark, plain, nocommand;
  177.     "Page Setup…",        noIcon, noKey,    noMark, plain, cPageSetup;
  178.     "Print One",        noIcon, noKey,    noMark, plain, cPrintOne;
  179.     "Print…",            noIcon, "P",    noMark, plain, cPrint;
  180.     "-",                noIcon, noKey,    noMark, plain, nocommand;
  181.     "Quit",                noIcon, "Q",    noMark, plain, cQuit
  182.     }
  183. };
  184.  
  185. resource 'cmnu' (mEdit,
  186. #if qNames
  187. "mEdit",
  188. #endif
  189. nonpurgeable) {
  190.     mEdit,
  191.     textMenuProc,
  192.     0x7FFFFFFD,
  193.     enabled,
  194.     "Edit",
  195.     {
  196.     "Undo",                noIcon, "Z",    noMark, plain, cUndo;
  197.     "-",                noIcon, noKey,    noMark, plain, nocommand;
  198.     "Cut",                noIcon, "X",    noMark, plain, cCut;
  199.     "Copy",                noIcon, "C",    noMark, plain, cCopy;
  200.     "Paste",            noIcon, "V",    noMark, plain, cPaste;
  201.     "Clear",            noIcon, noKey,    noMark, plain, cClear;
  202.     "-",                noIcon, noKey,    noMark, plain, nocommand;
  203.     "Select All",        noIcon, "A",    noMark, plain, cSelectAll;
  204.     "-",                noIcon, noKey,    noMark, plain, nocommand;
  205.     "Show Clipboard",    noIcon, noKey,    noMark, plain, cShowClipboard
  206.     }
  207. };
  208.  
  209. resource 'cmnu' (mBuzzwords,
  210. #if qNames
  211. "Buzzwords",
  212. #endif
  213. nonpurgeable
  214. ) {
  215.     mBuzzwords,
  216.     textMenuProc,
  217.     0x7FFFFFFD,
  218.     enabled,
  219.     "Buzzwords",
  220.     {
  221.     "Typing",                noIcon, noKey, noMark, plain, cTyping;
  222.     "Page Setup Change",    noIcon, noKey, noMark, plain, cChangePrinterStyle
  223.     }
  224. };
  225.  
  226. resource 'MBAR' (kMBarDisplayed,
  227. #if qNames
  228. "kMBarDisplayed",
  229. #endif
  230. nonpurgeable) {
  231.  
  232.     {mApple; mFile; mEdit}
  233. };
  234.  
  235. resource 'ICN#' (128,
  236. #if qNames
  237. "Application",
  238. #endif
  239. purgeable) {
  240.     {    /* array: 2 elements */
  241.         /* [1] */
  242.         $"00 00 00 00 00 02 7E 00 00 04 81 00 00 09 00 80 00 12 60 40 00 23 90 20 00 7C FF 1E"
  243.         $"00 C4 60 0E 01 82 00 0E 03 01 00 0E 06 00 C0 0E 0C 00 3F CE 18 00 00 3E 30 00 00 0E"
  244.         $"60 00 00 00 C0 00 15 02 60 00 40 81 30 00 00 42 18 00 10 24 0C 01 40 10 06 0A 2A 8A"
  245.         $"03 00 10 05 01 81 00 02 00 C0 80 05 00 60 21 02 00 30 0A A5 00 18 00 0A 00 0C 08 05"
  246.         $"00 06 10 00 00 03 20 00 00 01 C0 00 00 00 80",
  247.         /* [2] */
  248.         $"00 00 00 00 00 03 FE 00 00 07 FF 00 00 0F FF 80 00 1F FF C0 00 3F FF E0 00 7F FF FE"
  249.         $"00 FF FF FE 01 FF FF FE 03 FF FF FE 07 FF FF FE 0F FF FF FE 1F FF FF FE 3F FF FF FE"
  250.         $"7F FF FF FC FF FF FF FE 7F FF FF FF 3F FF FF FE 1F FF FF FC 0F FF FF F0 07 FF FF FF"
  251.         $"03 FF FF FF 01 FF FF FF 00 FF FF FF 00 7F FF FF 00 3F FE FF 00 1F FC 0F 00 0F F8 07"
  252.         $"00 07 F0 00 00 03 E0 00 00 01 C0 00 00 00 80"
  253.     }
  254. };
  255.  
  256. type 'MApp' as 'STR ';
  257. resource 'MApp' (0,
  258. #if qNames
  259. "Signature",
  260. #endif
  261.     purgeable) {
  262.     "Application created by MacApp®"
  263. };
  264.  
  265. resource 'FREF' (128,
  266. #if qNames
  267. "Application",
  268. #endif
  269.     purgeable) {
  270.     'APPL',
  271.     0,
  272.     ""
  273. };
  274.  
  275. resource 'BNDL' (128,
  276. #if qNames
  277. "Bundle",
  278. #endif
  279.     purgeable) {
  280.     'MApp',
  281.     0,
  282.         {
  283.         'ICN#',
  284.             {
  285.             0, 128,
  286.             },
  287.         'FREF',
  288.             {
  289.             0, 128,
  290.             }
  291.         }
  292. };
  293.  
  294.  
  295. // Version for the "package"
  296. RESOURCE 'vers' (2,
  297. #if qNames
  298.     "Package Version",
  299. #endif
  300.     purgeable) {
  301.     0x02,
  302.     0x01,
  303.     final,
  304.     0x00,
  305.     verUs,
  306.     $$Shell("MAShortVersion"),
  307.     $$Shell("MALongVersion")
  308. };
  309.  
  310. // Version for the "application or file"
  311. RESOURCE 'vers' (1,
  312. #if qNames
  313.     "Application Version",
  314. #endif
  315.     purgeable) {
  316.     0x01,
  317.     0x00,
  318.     development,
  319.     0x01,
  320.     verUs,
  321.     "1.0 d1",
  322.     "1.0 d1, Application created by MacApp®"
  323. };
  324.  
  325.  
  326.  
  327. resource 'STR#' (kDefaultCredits,
  328. #if qNames
  329.     "kDefaultCredits",
  330. #endif
  331.     purgeable) {
  332.      {
  333.     "The great people behind MacApp®…";
  334.  
  335.     "Engineers past and present…";
  336.     "Peter Alley";
  337.     "Curt Bianchi";
  338.     "Mary Boetcher";
  339.     "Ken Doyle";
  340.     "Steve Friedrich";
  341.     "David Goldsmith";
  342.     "Barry Haynes";
  343.     "Chris Knepper";
  344.     "Lonnie Millett";
  345.     "Deb Orton";
  346.     "Larry Rosenstein";
  347.     "Larry Tesler";
  348.     "Scott Wallace";
  349.     "Russ Wetmore";
  350.  
  351.     "Testers past and present…";
  352.     "Dan Allen";
  353.     "John Beswetherick";
  354.     "Cliff Greyson";
  355.     "Richard Kimberly";
  356.     "Kuldip Nijjar";
  357.     "Richard Rodseth";
  358.  
  359.     "Writers past and present…";
  360.     "Dave Bice";
  361.     "Mikel Evins";
  362.     "Bill Harris";
  363.     "Marq Laube";
  364.     "John Perry";
  365.     "Don Reed";
  366.     "Jon Simonoff";
  367.     "Jon Singer";
  368.     "Alan Spragens";
  369.     "Andy Swartz";
  370.  
  371.     "Technical support past and present…";
  372.     "Darin Adler";
  373.     "Mark Bennett";
  374.     "Rick Blair";
  375.     "Clarus™ the DogCow™ (Moof™!)";
  376.     "Bo3b Johnson";
  377.     "Keith Rollin";
  378.     "Andrew Shebanow";
  379.  
  380.     "Configuration Management…";
  381.     "Gary Davis";
  382.     "Ming Low";
  383.  
  384.     "Product Managers past and present…";
  385.     "Harvey Alcabes";
  386.     "Steve Burbeck";
  387.  
  388.     "Managers…";
  389.     "David Goldsmith (yes, he was a manager too!)";
  390.     "Phac LeTuan";
  391.     "Ron Metzker";
  392.     "Jim Thomas";
  393.  
  394.     "Evangelizers…";
  395.     "Scott Knaster";
  396.     "Jon Magill";
  397.     "Gregg Williams";
  398.  
  399.     "MacApp Developers Association…";
  400.     "Bill Anderson";
  401.     "Howard Katz";
  402.     "Carl Nelson";
  403.     "(206) 252-6946";
  404.  
  405.     "Other great people…";
  406.     "Rob Chandhok & John Pane @ Carnegie Mellon University";
  407.     "Dan Cochran";
  408.     "Eileen Crombie";
  409.     "Patricia Eastman";
  410.     "Ann Greyson";
  411.     "Michael Hinkson";
  412.     "Mark Lentczner";
  413.     "Eileen Mayes";
  414.     "Mom and Dad";
  415.     "Kurt Schmucker";
  416.     "Harry Yee";
  417.     "Geri Younggren";
  418.     "You, the billions and billions of MacApp® programmers";
  419.  
  420.     "THE MacApp teachers…";
  421.     "Neal Goldstein";
  422.     "Neil Rhodes";
  423.     "Dave Wilson";
  424.  
  425.     "And because he insisted on being included…";
  426.     "Eagle I. Berns"
  427.  
  428.      }
  429. };
  430.