Commit 549ca5f800e2427266e4725c422894f4804e8877

Authored by Perry Werneck
1 parent 71e65f9a

Incluindo tabelas constantes para os diálogos de transferência de arquivos.

Showing 1 changed file with 194 additions and 0 deletions   Show diff stats
src/pw3270/v3270ft/tables.c 0 → 100644
... ... @@ -0,0 +1,194 @@
  1 +/*
  2 + * "Software pw3270, desenvolvido com base nos códigos fontes do WC3270 e X3270
  3 + * (Paul Mattes Paul.Mattes@usa.net), de emulação de terminal 3270 para acesso a
  4 + * aplicativos mainframe. Registro no INPI sob o nome G3270. Registro no INPI sob
  5 + * o nome G3270.
  6 + *
  7 + * Copyright (C) <2008> <Banco do Brasil S.A.>
  8 + *
  9 + * Este programa é software livre. Você pode redistribuí-lo e/ou modificá-lo sob
  10 + * os termos da GPL v.2 - Licença Pública Geral GNU, conforme publicado pela
  11 + * Free Software Foundation.
  12 + *
  13 + * Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER
  14 + * GARANTIA; sem mesmo a garantia implícita de COMERCIALIZAÇÃO ou de ADEQUAÇÃO
  15 + * A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para
  16 + * obter mais detalhes.
  17 + *
  18 + * Você deve ter recebido uma cópia da Licença Pública Geral GNU junto com este
  19 + * programa; se não, escreva para a Free Software Foundation, Inc., 51 Franklin
  20 + * St, Fifth Floor, Boston, MA 02110-1301 USA
  21 + *
  22 + * Este programa está nomeado como v3270ft.c e possui - linhas de código.
  23 + *
  24 + * Contatos:
  25 + *
  26 + * perry.werneck@gmail.com (Alexandre Perry de Souza Werneck)
  27 + * erico.mendonca@gmail.com (Erico Mascarenhas Mendonça)
  28 + *
  29 + */
  30 +
  31 + #include <limits.h>
  32 + #include "private.h"
  33 +
  34 +
  35 +/*--[ Globals ]--------------------------------------------------------------------------------------*/
  36 +
  37 +const struct v3270ft_option ft_option[] = {
  38 +
  39 + // Transfer options
  40 + {
  41 + LIB3270_FT_OPTION_ASCII,
  42 + "ascii",
  43 + N_("_Text file"),
  44 + N_( "Check this if the file consists of character data only.")
  45 + },
  46 + {
  47 + LIB3270_FT_OPTION_CRLF,
  48 + "crlf",
  49 + N_("Follow the convention for _ASCII text files."),
  50 +#ifdef _WIN32
  51 + N_( "Following the convention for ASCII text files, CR/LF pairs are used to terminate records in the PC file, and a CTRL-Z (x'1A') marks the end of file.")
  52 +#else
  53 + N_( "Following the convention for ASCII text files, LF is used to terminate records in the PC file.")
  54 +#endif // _WIN32
  55 +
  56 + },
  57 + {
  58 + LIB3270_FT_OPTION_APPEND,
  59 + "append",
  60 + N_("A_ppend to file"),
  61 + N_( "Appends the source file to the destination file.")
  62 + },
  63 + {
  64 + LIB3270_FT_OPTION_REMAP,
  65 + "remap",
  66 + N_("Re_map ASCII Characters."),
  67 + N_("Remap the text to ensure maximum compatibility between the workstation's character set and encoding and the host's EBCDIC code page.")
  68 + },
  69 +
  70 + // Record format
  71 + {
  72 + LIB3270_FT_RECORD_FORMAT_DEFAULT,
  73 + "recfm.default",
  74 + N_("Default"),
  75 + N_("Use host default record format.")
  76 + },
  77 + {
  78 + LIB3270_FT_RECORD_FORMAT_FIXED,
  79 + "recfm.fixed",
  80 + N_("Fixed"),
  81 + N_("Creates a file with fixed-length records.")
  82 + },
  83 + {
  84 + LIB3270_FT_RECORD_FORMAT_VARIABLE,
  85 + "recfm.variable",
  86 + N_("Variable"),
  87 + N_("Creates a file with variable-length records.")
  88 + },
  89 + {
  90 + LIB3270_FT_RECORD_FORMAT_UNDEFINED,
  91 + "recfm.undefined",
  92 + N_("Undefined"),
  93 + N_("Creates a file with undefined-length records (TSO hosts only).")
  94 + },
  95 +
  96 + // Space allocation units
  97 + {
  98 + LIB3270_FT_ALLOCATION_UNITS_DEFAULT,
  99 + "units.default",
  100 + N_("Default"),
  101 + NULL
  102 + },
  103 + {
  104 + LIB3270_FT_ALLOCATION_UNITS_TRACKS,
  105 + "units.tracks",
  106 + N_("Tracks"),
  107 + NULL
  108 + },
  109 + {
  110 + LIB3270_FT_ALLOCATION_UNITS_CYLINDERS,
  111 + "units.cylinders",
  112 + N_("Cylinders"),
  113 + NULL
  114 + },
  115 + {
  116 + LIB3270_FT_ALLOCATION_UNITS_AVBLOCK,
  117 + "units.avblock",
  118 + N_("Avblock"),
  119 + NULL
  120 + },
  121 +
  122 +};
  123 +
  124 +const struct v3270ft_type ft_type[] = {
  125 +
  126 + {
  127 + LIB3270_FT_OPTION_SEND,
  128 + "send",
  129 + "binary",
  130 + N_("Send file")
  131 + },
  132 + {
  133 + LIB3270_FT_OPTION_RECEIVE,
  134 + "receive",
  135 + "binary",
  136 + N_("Receive file")
  137 + },
  138 + {
  139 + LIB3270_FT_OPTION_SEND|LIB3270_FT_OPTION_ASCII|LIB3270_FT_OPTION_CRLF|LIB3270_FT_OPTION_REMAP,
  140 + "send",
  141 + "text",
  142 + N_("Send text file")
  143 + },
  144 + {
  145 + LIB3270_FT_OPTION_RECEIVE|LIB3270_FT_OPTION_ASCII|LIB3270_FT_OPTION_CRLF|LIB3270_FT_OPTION_REMAP,
  146 + "receive",
  147 + "text",
  148 + N_("Receive text file")
  149 + }
  150 +};
  151 +
  152 +const struct v3270ft_value ft_value[] = {
  153 + {
  154 + "lrecl",
  155 + 0, 32760,
  156 + N_( "Record Length:" ),
  157 + N_( "Specifies the logical record length (n) for a data set consisting of fixed length records or the maximum logical record length for a data set consisting of variable length records." )
  158 + },
  159 +
  160 +
  161 + {
  162 + "primary",
  163 + 0,99999,
  164 + N_( "Primary space:" ),
  165 + N_( "Primary allocation for a file created on a TSO host.\nThe units are given by the space allocation units option." )
  166 + },
  167 +
  168 + {
  169 + "blksize",
  170 + 0,32760,
  171 + N_( "Block size:" ),
  172 + N_( "Specifies the block size (n) for a new data set. For data sets containing fixed " \
  173 + "length records, the block size must be a multiple of the record length. " \
  174 + "For data sets containing variable length records, the block size must be " \
  175 + "greater than or equal to the record length plus four bytes. The block size " \
  176 + "must not exceed the track length of the device on which the data set resides." )
  177 + },
  178 +
  179 + {
  180 + "secondary",
  181 + 0,99999,
  182 + N_( "Secondary space:" ),
  183 + N_( "Secondary allocation for a file created on a TSO host.\nThe units are given by the space allocation units option." )
  184 + },
  185 +
  186 + {
  187 + "dft",
  188 + 0,99999,
  189 + N_( "DFT B_uffer size:" ),
  190 + N_("Specifies the default buffer size for DFT IND$FILE file transfers.")
  191 + },
  192 +
  193 +};
  194 +
... ...