home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / online / source / c / compilers / DiffUtils.sit.hqx / DiffUtils / src / cmp.r < prev    next >
Text File  |  1993-11-15  |  2KB  |  115 lines

  1. /*********************************************************************
  2. Project    :    cmp                -    GNU cmp
  3. File        :    cmp.r                -    Commando dialog
  4. Author    :    Matthias Neeracher <neeri@iis.ethz.ch>
  5. Started    :    26Jan93                                Language    :    MPW C
  6. Last        :    26Jan93
  7. *********************************************************************/
  8.  
  9. #include "SysTypes.r"        /* To get system types */
  10. #include "Types.r"            /* To get general types */
  11. #include "Cmdo.r"                /* For commando interface */
  12.  
  13. resource 'vers' (1) {
  14.     0x01, 0x00, final, 0x00, verUS,
  15.     "1.0",
  16.     "cmp"
  17.     };
  18.     
  19. resource 'vers' (2) {
  20.     0x01, 0x00, final, 0x00, verUS,
  21.     "1.0",
  22.     "cmp 1.0 (26Jan93)"
  23.     };
  24.  
  25. resource 'cmdo' (128) {
  26.     {
  27.         295,            /* Height of dialog */
  28.         "GNU Cmp -- Find differences between two files/directories",
  29.         {
  30.             And {{-3}}, CheckOption {
  31.                 NotSet,{ 85,  20, 101, 250}, "Verbose", "--verbose", 
  32.                 "Print (decimal) offsets and (octal) values of any differing bytes."
  33.             },
  34.             And {{-3}}, CheckOption {
  35.                 NotSet,{105,  20, 121, 250}, "Print Characters", "--print-chars", 
  36.                 "Print differing characters."
  37.             },
  38.             And {{-1,-2}}, CheckOption {
  39.                 NotSet,{125,  20, 141, 250}, "Silent", "--silent", 
  40.                 "Don't print anything, only return status."
  41.             },
  42.             notDependent {}, Files {
  43.                 InputFileOrDir,
  44.                 OptionalFile {
  45.                     { 20,  10,  36, 48},
  46.                     { 18,  50,  38, 235},
  47.                     "From",
  48.                     "", "", "",
  49.                     "Select from-file/folder.",
  50.                     dim,
  51.                     "",
  52.                     "Select from-file/folder…",
  53.                     "",
  54.                 },
  55.                 Additional {
  56.                     "",
  57.                     FilterTypes,
  58.                     "Text Files",
  59.                     "All Files",
  60.                     {text}
  61.                 }
  62.             },
  63.             notDependent {}, Files {
  64.                 InputFileOrDir,
  65.                 OptionalFile {
  66.                     { 47,  10,  63,  48},
  67.                     { 45,  50,  65, 235},
  68.                     "To",
  69.                     "", "", "",
  70.                     "Select to-file/folder.",
  71.                     dim,
  72.                     "",
  73.                     "Select to-file/folder…",
  74.                     "",
  75.                 },
  76.                 Additional {
  77.                     "",
  78.                     FilterTypes,
  79.                     "Text Files",
  80.                     "All Files",
  81.                     {text}
  82.                 }
  83.             },
  84.             notDependent {}, Redirection {
  85.                 StandardOutput,
  86.                 { 90,  275}
  87.             },
  88.             notDependent {}, Redirection {
  89.                 DiagnosticOutput,
  90.                 {140,  275}
  91.             },
  92.             notDependent {}, TextBox {
  93.                 gray,
  94.                 { 75,  10, 185, 260},
  95.                 "Format"
  96.             },
  97.             notDependent {}, TextBox {
  98.                 gray,
  99.                 { 75, 265, 185, 470},
  100.                 "Redirection"
  101.             },
  102.             notDependent {}, VersionDialog {
  103.                 VersionString {
  104.                     "2.6"
  105.                 },
  106.                 "GNU Cmp by Torbjorn Granlund and David MacKenzie\n"
  107.                 "MPW port by Matthias Neeracher <neeri@iis.ethz.ch>\n",
  108.                 0
  109.             },
  110.             Or {{4,5}}, DoItButton {
  111.             },
  112.         },
  113.     }
  114. };
  115.