home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2001 / MacHack 2001.toast / pc / The Hacks / GrowBoxDock / Sources / English.lproj / TextFile.r < prev   
Encoding:
Text File  |  2001-01-30  |  5.3 KB  |  228 lines

  1. /*
  2.     File:        TextFile.r
  3.  
  4.     Contains:    Text file support for simple text application
  5.  
  6.     Version:    Mac OS X
  7.  
  8.     Disclaimer:    IMPORTANT:  This Apple software is supplied to you by Apple Computer, Inc.
  9.                 ("Apple") in consideration of your agreement to the following terms, and your
  10.                 use, installation, modification or redistribution of this Apple software
  11.                 constitutes acceptance of these terms.  If you do not agree with these terms,
  12.                 please do not use, install, modify or redistribute this Apple software.
  13.  
  14.                 In consideration of your agreement to abide by the following terms, and subject
  15.                 to these terms, Apple grants you a personal, non-exclusive license, under Apple’s
  16.                 copyrights in this original Apple software (the "Apple Software"), to use,
  17.                 reproduce, modify and redistribute the Apple Software, with or without
  18.                 modifications, in source and/or binary forms; provided that if you redistribute
  19.                 the Apple Software in its entirety and without modifications, you must retain
  20.                 this notice and the following text and disclaimers in all such redistributions of
  21.                 the Apple Software.  Neither the name, trademarks, service marks or logos of
  22.                 Apple Computer, Inc. may be used to endorse or promote products derived from the
  23.                 Apple Software without specific prior written permission from Apple.  Except as
  24.                 expressly stated in this notice, no other rights or licenses, express or implied,
  25.                 are granted by Apple herein, including but not limited to any patent rights that
  26.                 may be infringed by your derivative works or by other works in which the Apple
  27.                 Software may be incorporated.
  28.  
  29.                 The Apple Software is provided by Apple on an "AS IS" basis.  APPLE MAKES NO
  30.                 WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED
  31.                 WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  32.                 PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE OR IN
  33.                 COMBINATION WITH YOUR PRODUCTS.
  34.  
  35.                 IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR
  36.                 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
  37.                 GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  38.                 ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION
  39.                 OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF CONTRACT, TORT
  40.                 (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN
  41.                 ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  42.  
  43.     Copyright © 1993-2001 Apple Computer, Inc., All Rights Reserved
  44. */
  45.  
  46. #include "TextFile.h"
  47.  
  48. #ifdef USE_UMBRELLA_HEADERS && USE_UMBRELLA_HEADERS
  49. #include "Carbon.r"
  50. #else
  51. #include "MacTypes.r"
  52. #include "Dialogs.r"
  53. #endif
  54.  
  55. #include "Localize.r"
  56.  
  57. resource 'STR#' (kTextStrings, purgeable) {
  58.     {
  59.     SOUNDSPEAKSELECTIONITEM;
  60.     SOUNDSPEAKALLITEM;
  61.     
  62.     TEXTSTATIONERY;
  63.     TEXTSTATIONERYSELECTED;
  64.     TEXTDOCUMENT;
  65.     TEXTDOCUMENTSELECTED;
  66.     
  67.     TEXTPICTMARKER1;
  68.     TEXTPICTMARKER2;
  69.     };
  70. };
  71.  
  72. resource 'DLOG' (kTextSaveAsDialogID) {
  73.     {0, 0, 238, 344},
  74.     dBoxProc,
  75.     invisible,
  76.     noGoAway,
  77.     'tmDI',
  78.     kTextSaveAsDialogID,
  79.     "",
  80.     alertPositionMainScreen
  81. };
  82.  
  83. resource 'dlgx' (kTextSaveAsDialogID) {
  84.     versionZero {
  85.         kDialogFlagsUseThemeBackground     + kDialogFlagsUseControlHierarchy + kDialogFlagsUseThemeControls
  86.     };
  87. };
  88.  
  89. resource 'dctb' (kTextSaveAsDialogID, purgeable) {
  90.      {};
  91. };
  92.  
  93. resource 'DITL' (kTextSaveAsDialogID) {
  94.     {    /* array DITLarray: 17 elements */
  95.         /* [1] */
  96.         {161, 252, 181, 332},
  97.         Button {
  98.             enabled,
  99.             TEXTSAVEBUTTON
  100.         },
  101.         /* [2] */
  102.         {130, 252, 150, 332},
  103.         Button {
  104.             enabled,
  105.             TEXTCANCELBUTTON
  106.         },
  107.         /* [3] */
  108.         {-1, -1, -1, -1},
  109.         HelpItem {
  110.             disabled,
  111.             HMScanhdlg {
  112.                 -6043
  113.             }
  114.         },
  115.         /* [4] */
  116.         {8, 235, 24, 337},
  117.         UserItem {
  118.             enabled
  119.         },
  120.         /* [5] */
  121.         {32, 252, 52, 332},
  122.         Button {
  123.             enabled,
  124.             TEXTEJECTBUTTON
  125.         },
  126.         /* [6] */
  127.         {60, 252, 80, 332},
  128.         Button {
  129.             enabled,
  130.             TEXTDESKTOPBUTTON
  131.         },
  132.         /* [7] */
  133.         {29, 12, 175, 230},
  134.         UserItem {
  135.             enabled
  136.         },
  137.         /* [8] */
  138.         {7, 12, 26, 230},
  139.         UserItem {
  140.             enabled
  141.         },
  142.         /* [9] */
  143.         {117, 250, 118, 334},
  144.         Picture {
  145.             disabled,
  146.             11
  147.         },
  148.         /* [10] */
  149.         {209, 15, 225, 211},
  150.         EditText {
  151.             enabled,
  152.             ""
  153.         },
  154.         /* [11] */
  155.         {188, 15, 204, 211},
  156.         StaticText {
  157.             disabled,
  158.             TEXTSAVEPROMPT
  159.         },
  160.         /* [12] */
  161.         {87, 252, 107, 332},
  162.         UserItem {
  163.             disabled
  164.         },
  165.         /* [13] */
  166.         {-2, -2, -2, -2},
  167.         HelpItem {
  168.             disabled,
  169.             HMScanhdlg {
  170.                 kTextSaveAsDialogID
  171.             }
  172.         },
  173.         /* [14] */
  174.         {196, 232, 228, 280},
  175.         RadioButton {
  176.             enabled,
  177.             ""
  178.         },
  179.         /* [15] */
  180.         {196, 288, 228, 336},
  181.         RadioButton {
  182.             enabled,
  183.             ""
  184.         },
  185.         /* [16] */
  186.         {196, 248, 228, 280},
  187.         UserItem {
  188.             enabled,
  189.         },
  190.         /* [17] */
  191.         {196, 304, 228, 336},
  192.         UserItem {
  193.             enabled,
  194.         }
  195.     }
  196. };
  197.  
  198. #if CALL_NOT_IN_CARBON
  199. // this is extra help for our save as dialog
  200. resource 'hdlg' (kTextSaveAsDialogID) {
  201.     HelpMgrVersion,                            /* Help Version */
  202.     13,                                        /* offset to first DITL */
  203.     0,                                        /* options */
  204.     0,                                        /* theProc */
  205.     0,                                        /* variant */
  206.     HMSkipItem {},
  207.     {
  208.         HMStringResItem {
  209.             {0,0},
  210.             {0,0,0,0},
  211.             kTextStrings, iDocumentHelp,
  212.             kTextStrings, 0,
  213.             kTextStrings, iDocumentSelectedHelp,
  214.             kTextStrings, 0
  215.         },
  216.         HMStringResItem {
  217.             {0,0},
  218.             {0,0,0,0},
  219.             kTextStrings, iStationeryHelp,
  220.             kTextStrings, 0,
  221.             kTextStrings, iStationerySelectedHelp,
  222.             kTextStrings, 0
  223.         },
  224.     }
  225. };
  226. #endif
  227.  
  228.