home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / MPW / gawk 2.11.1r3 / Sources / gawk.r < prev    next >
Encoding:
Text File  |  1991-06-08  |  5.7 KB  |  225 lines  |  [TEXT/MPS ]

  1. /*
  2.  * gawk.r - Resources for projector & version identification.
  3.  */
  4.  
  5. /* 
  6.  * Copyright (C) 1986, 1988, 1989, 1991 the Free Software Foundation, Inc.
  7.  * 
  8.  * This file is part of GAWK, the GNU implementation of the
  9.  * AWK Progamming Language.
  10.  * 
  11.  * GAWK is free software; you can redistribute it and/or modify
  12.  * it under the terms of the GNU General Public License as published by
  13.  * the Free Software Foundation; either version 1, or (at your option)
  14.  * any later version.
  15.  * 
  16.  * GAWK is distributed in the hope that it will be useful,
  17.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  19.  * GNU General Public License for more details.
  20.  * 
  21.  * You should have received a copy of the GNU General Public License
  22.  * along with GAWK; see the file COPYING.  If not, write to
  23.  * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  24.  */
  25.  
  26. #include "Types.r"
  27. #include "SysTypes.r"
  28. #include "Cmdo.r"
  29.  
  30. /**************************** Version identification ****************************/
  31.  
  32. resource 'vers' (1) {
  33.     0x02, 0x11, release, 0x03, verGrSwiss,                                                                                                                                                                                                                                                                             /* Version #    */
  34.     "2.11.1r3",                                             /* Short string */              
  35.     "2.11.1r3"                                                        /* Long string  */
  36. };
  37.  
  38. /**************************** Cursor images ****************************/
  39.  
  40. resource 'CURS' (128) {
  41.     $"FFFE 8002 9E62 B092 BEF2 B692 9E92 8002"
  42.     $"8002 A492 A4A2 A4C2 BCA2 A492 8002 FFFE",
  43.     $"FFFE FFFE FFFE FFFE FFFE FFFE FFFE FFFE"
  44.     $"FFFE FFFE FFFE FFFE FFFE FFFE FFFE FFFE",
  45.     {8, 8}
  46. };
  47.  
  48. resource 'CURS' (129) {
  49.     $"FFFE 8002 9C72 A0DA ACFA A4DA 9CDA 8002"
  50.     $"8002 A492 A4A2 A4C2 BCA2 A492 8002 FFFE",
  51.     $"FFFE FFFE FFFE FFFE FFFE FFFE FFFE FFFE"
  52.     $"FFFE FFFE FFFE FFFE FFFE FFFE FFFE FFFE",
  53.     {8, 8}
  54. };
  55.  
  56. resource 'CURS' (130) {
  57.     $"FFFE 8002 9C62 A092 ACF2 A492 9C92 8002"
  58.     $"8002 B692 B6A2 B6C2 BEA2 B692 8002 FFFE",
  59.     $"FFFE FFFE FFFE FFFE FFFE FFFE FFFE FFFE"
  60.     $"FFFE FFFE FFFE FFFE FFFE FFFE FFFE FFFE",
  61.     {8, 8}
  62. };
  63.  
  64. resource 'CURS' (131) {
  65.     $"FFFE 8002 9C62 A092 ACF2 A492 9C92 8002"
  66.     $"8002 A4DA A4F2 A4E2 BCF2 A4DA 8002 FFFE",
  67.     $"FFFE FFFE FFFE FFFE FFFE FFFE FFFE FFFE"
  68.     $"FFFE FFFE FFFE FFFE FFFE FFFE FFFE FFFE",
  69.     {8, 8}
  70. };
  71.  
  72. resource 'acur' (0) {
  73.     {    128,
  74.         129,
  75.         130,
  76.         131,
  77.     }
  78. };
  79.  
  80. /**************************** Commando dialog ****************************/
  81.  
  82. resource 'cmdo' (128) {
  83.     {
  84.         295,            /* Height of dialog */
  85.         "Gawk, the GNU implementation of the AWK Programming Language.",
  86.         {
  87.             notDependent {}, RegularEntry {
  88.                 "Field separator:",
  89.                 {167,  10, 183, 115},
  90.                 {167, 120, 183, 195},
  91.                 " ",
  92.                 keepCase,
  93.                 "-F",
  94.                 "Character or regular expression used to separate fields."
  95.             },
  96.             notDependent {}, NestedDialog {
  97.                 2,
  98.                 {85,  25, 105, 185},
  99.                 "More Options",
  100.                 "Variable definitions and GNU specific options."
  101.             },
  102.             Or {{-4}}, MultiFiles {
  103.                 "Program File(s)…",
  104.                 "Select program files.  If no files are specified, Gawk expects the program"
  105.                 "to be given on the command line.",
  106.                 {55,  25, 75, 185},
  107.                 "Program files:",
  108.                 "-f",
  109.                 MultiInputFiles {
  110.                     {TEXT},
  111.                     ".awk",
  112.                     "Files ending with .awk",
  113.                     "All text files",
  114.                 }
  115.             },
  116.             Or {{-3}}, RegularEntry {
  117.                 "Program:",
  118.                 {142,  10, 158, 115},
  119.                 {142, 120, 158, 465},
  120.                 "",
  121.                 keepCase,
  122.                 "",
  123.                 "Program to execute."
  124.             },
  125.             Or {{-6}}, MultiFiles {
  126.                 "Input File(s)…",
  127.                 "Select input files.  If no files are specified, Gawk reads from standard input.",
  128.                 {25, 25, 45, 185},
  129.                 "Input files:",
  130.                 "",
  131.                 MultiInputFiles {
  132.                     {TEXT},
  133.                     FilterTypes,
  134.                     "Only text files",
  135.                     "All files",
  136.                 }
  137.             },
  138.             Or {{-5}}, Redirection {
  139.                 StandardInput,
  140.                 { 25, 215}
  141.             },
  142.             notDependent {}, Redirection {
  143.                 StandardOutput,
  144.                 { 60, 215}
  145.             },
  146.             notDependent {}, Redirection {
  147.                 DiagnosticOutput,
  148.                 { 95, 215}
  149.             },
  150.             notDependent {}, TextBox {
  151.                 gray,
  152.                 { 20, 200, 135, 468},
  153.                 "Redirection"
  154.             },
  155.             notDependent {}, VersionDialog {
  156.                 VersionString {
  157.                     "2.11.1r3"
  158.                 },
  159.                 "Gawk for MPW. Gawk by Free Software Foundation, Inc.\n"
  160.                 "MPW port by Matthias Neeracher <neeri@iis.ethz.ch>.",
  161.                 0
  162.             },
  163.         },
  164.         275,
  165.         "Variable definitions and GNU specific options.",
  166.         {
  167.             notDependent {}, RadioButtons {
  168.                 {
  169.                     { 35,  20,  51, 240},
  170.                     "Awk style",
  171.                     "-a",
  172.                     Set,
  173.                     "Use awk style regular expressions, as described in the book.",
  174.                     
  175.                     { 55,  20,  71, 240},
  176.                     "Egrep style",
  177.                     "-e",
  178.                     NotSet,
  179.                     "Use egrep style regular expressions, as described in the POSIX standard.",
  180.                     
  181.                     { 75,  20,  91, 240},
  182.                     "MPW style",
  183.                     "-m",
  184.                     NotSet,
  185.                     "Use MPW shell patterns."
  186.                 }
  187.             },
  188.             notDependent {}, TextBox {
  189.                 gray,
  190.                 { 25,  15,  95, 245},
  191.                 "Regular expressions"
  192.             },
  193.             notDependent {}, CheckOption {
  194.                 NotSet,
  195.                 {105,  20, 121, 240},
  196.                 "Compatibility mode",
  197.                 "-c",
  198.                 "Behave exactly like UNIX awk, don't recognize any GNU specific extensions."
  199.             },
  200.             Or {{-3}}, CheckOption {
  201.                 NotSet,
  202.                 {130,  20, 146, 240},
  203.                 "Print copyright information",
  204.                 "-C",
  205.                 "Print short version of GNU copyright information message to standard output."
  206.             },
  207.             Or {{-3}}, CheckOption {
  208.                 NotSet,
  209.                 {150,  20, 166, 240},
  210.                 "Print version information",
  211.                 "-V",
  212.                 "Print version information for this version of gawk."
  213.             },
  214.             notDependent {}, MultiRegularEntry {
  215.                 "Variable Definitions",
  216.                 { 10, 255,  26, 465},
  217.                 { 28, 255, 161, 465},
  218.                 {},
  219.                 "-v",
  220.                 "var=val, assign the value val to the variable name var."
  221.             }
  222.         }
  223.     }
  224. };
  225.