Commit 2c2e5e2a9fe22042d7b5aaf44f90acea9be42b27

Authored by Perry Werneck
1 parent 1dd5ff86

Adding more options for toggle description.

Removing unused headers.
lib3270.cbp
... ... @@ -178,13 +178,9 @@
178 178 <Option compilerVar="CC" />
179 179 </Unit>
180 180 <Unit filename="src/include/3270ds.h" />
181   - <Unit filename="src/include/actionsc.h" />
182 181 <Unit filename="src/include/ansic.h" />
183   - <Unit filename="src/include/api.h" />
184   - <Unit filename="src/include/aplc.h" />
185 182 <Unit filename="src/include/arpa_telnet.h" />
186 183 <Unit filename="src/include/cg.h" />
187   - <Unit filename="src/include/childc.h" />
188 184 <Unit filename="src/include/config.h" />
189 185 <Unit filename="src/include/config.h.in" />
190 186 <Unit filename="src/include/ctlrc.h" />
... ... @@ -194,7 +190,6 @@
194 190 <Unit filename="src/include/ft_dftc.h" />
195 191 <Unit filename="src/include/ftc.h" />
196 192 <Unit filename="src/include/hostc.h" />
197   - <Unit filename="src/include/icmdc.h" />
198 193 <Unit filename="src/include/keypadc.h" />
199 194 <Unit filename="src/include/kybdc.h" />
200 195 <Unit filename="src/include/lib3270-internals.h" />
... ... @@ -213,17 +208,12 @@
213 208 <Unit filename="src/include/lib3270/toggle.h" />
214 209 <Unit filename="src/include/lib3270/trace.h" />
215 210 <Unit filename="src/include/localdefs.h" />
216   - <Unit filename="src/include/objects.h" />
217 211 <Unit filename="src/include/popupsc.h" />
218   - <Unit filename="src/include/printc.h" />
219   - <Unit filename="src/include/printerc.h" />
220 212 <Unit filename="src/include/proxyc.h" />
221 213 <Unit filename="src/include/resolverc.h" />
222 214 <Unit filename="src/include/resources.h" />
223   - <Unit filename="src/include/savec.h" />
224 215 <Unit filename="src/include/screen.h" />
225 216 <Unit filename="src/include/screenc.h" />
226   - <Unit filename="src/include/scrollc.h" />
227 217 <Unit filename="src/include/seec.h" />
228 218 <Unit filename="src/include/sf.h" />
229 219 <Unit filename="src/include/shlobj_missing.h" />
... ...
src/core/toggles.c
... ... @@ -54,16 +54,16 @@
54 54 #include "screenc.h"
55 55 #include "trace_dsc.h"
56 56 #include "togglesc.h"
57   -//#include "api.h"
58 57 #include "utilc.h"
59 58 #include <lib3270/log.h>
60 59  
61 60 static const struct _toggle_info
62 61 {
63   - const char * name;
64   - const char def;
65   - const char * label;
66   - const char * description;
  62 + const char * name; ///< @brief Toggle name.
  63 + const char def; ///< @brief Default value.
  64 + const char * label; ///< @brief Button label.
  65 + const char * summary; ///< @brief Short description.
  66 + const char * description; ///< @brief Toggle description.
67 67 }
68 68 toggle_info[LIB3270_TOGGLE_COUNT] =
69 69 {
... ... @@ -71,53 +71,62 @@ toggle_info[LIB3270_TOGGLE_COUNT] =
71 71 "monocase",
72 72 False,
73 73 N_( "Monocase" ),
  74 + N_( "Uppercase only" ),
74 75 N_( "If set, the terminal operates in uppercase-only mode" )
75 76 },
76 77 {
77 78 "cursorblink",
78 79 True,
79 80 N_( "Blinking Cursor" ),
  81 + N_( "Blinking Cursor" ),
80 82 N_( "If set, the cursor blinks" )
81 83 },
82 84 {
83 85 "showtiming",
84 86 True,
85 87 N_( "Show timer when processing" ),
  88 + N_( "Show timer when processing" ),
86 89 N_( "If set, the time taken by the host to process an AID is displayed on the status line" )
87 90 },
88 91 {
89 92 "cursorpos",
90 93 True,
91 94 N_( "Track Cursor" ),
  95 + N_( "Track Cursor" ),
92 96 N_( "Display the cursor location in the OIA (the status line)" )
93 97 },
94 98 {
95 99 "dstrace",
96 100 False,
  101 + N_( "Data Stream" ),
97 102 N_( "Trace Data Stream" ),
98 103 ""
99 104 },
100 105 {
101 106 "linewrap",
102 107 False,
103   - "",
104   - ""
  108 + N_("Wrap around"),
  109 + N_("Wrap around"),
  110 + N_("If set, the NVT terminal emulator automatically assumes a NEWLINE character when it reaches the end of a line.")
105 111 },
106 112 {
107 113 "blankfill",
108 114 False,
109 115 N_( "Blank Fill" ),
  116 + N_( "Blank Fill" ),
110 117 N_( "Automatically convert trailing blanks in a field to NULLs in order to insert a character, and will automatically convert leading NULLs to blanks so that input data is not squeezed to the left" )
111 118 },
112 119 {
113 120 "screentrace",
114 121 False,
  122 + N_( "Screens" ),
115 123 N_( "Trace screen contents" ),
116 124 ""
117 125 },
118 126 {
119 127 "eventtrace",
120 128 False,
  129 + N_( "Interface" ),
121 130 N_( "Trace interface events" ),
122 131 ""
123 132 },
... ... @@ -125,35 +134,41 @@ toggle_info[LIB3270_TOGGLE_COUNT] =
125 134 "marginedpaste",
126 135 False,
127 136 N_( "Paste with left margin" ),
  137 + N_( "Paste with left margin" ),
128 138 N_( "If set, puts restrictions on how pasted text is placed on the screen. The position of the cursor at the time the paste operation is begun is used as a left margin. No pasted text will fill any area of the screen to the left of that position. This option is useful for pasting into certain IBM editors that use the left side of the screen for control information" )
129 139 },
130 140 {
131 141 "rectselect",
132 142 False,
133 143 N_( "Select by rectangles" ),
  144 + N_( "Select by rectangles" ),
134 145 N_( "If set, the terminal will always select rectangular areas of the screen. Otherwise, it selects continuous regions of the screen" )
135 146 },
136 147 {
137 148 "crosshair",
138 149 False,
139 150 N_( "Cross hair cursor" ),
  151 + N_( "Cross hair cursor" ),
140 152 N_( "If set, the terminal will display a crosshair over the cursor: lines extending the full width and height of the screen, centered over the cursor position. This makes locating the cursor on the screen much easier" )
141 153 },
142 154 {
143 155 "fullscreen",
144 156 False,
145 157 N_( "Full Screen" ),
  158 + N_( "Full Screen" ),
146 159 N_( "If set, asks to place the toplevel window in the fullscreen state" )
147 160 },
148 161 {
149 162 "reconnect",
150 163 False,
151 164 N_( "Auto-Reconnect" ),
  165 + N_( "Auto-Reconnect" ),
152 166 N_( "Automatically reconnect to the host if it ever disconnects" )
153 167 },
154 168 {
155 169 "insert",
156 170 False,
  171 + N_( "Insert" ),
157 172 N_( "Set insert mode" ),
158 173 ""
159 174 },
... ... @@ -161,29 +176,34 @@ toggle_info[LIB3270_TOGGLE_COUNT] =
161 176 "smartpaste",
162 177 False,
163 178 N_( "Smart paste" ),
  179 + N_( "Smart paste" ),
164 180 ""
165 181 },
166 182 {
167 183 "bold",
168 184 False,
169 185 N_( "Bold" ),
  186 + N_( "Bold" ),
170 187 ""
171 188 },
172 189 {
173 190 "keepselected",
174 191 False,
175 192 N_( "Keep selected" ),
  193 + N_( "Keep selected" ),
176 194 ""
177 195 },
178 196 {
179 197 "underline",
180 198 False,
  199 + N_( "Underline" ),
181 200 N_( "Show Underline" ),
182 201 ""
183 202 },
184 203 {
185 204 "autoconnect",
186 205 False,
  206 + N_( "Auto connect" ),
187 207 N_( "Connect on startup" ),
188 208 ""
189 209 },
... ... @@ -191,23 +211,27 @@ toggle_info[LIB3270_TOGGLE_COUNT] =
191 211 "kpalternative",
192 212 False,
193 213 N_( "Use +/- for field navigation" ),
  214 + N_( "Use +/- for field navigation" ),
194 215 N_( "Use the keys +/- from keypad to select editable fields" )
195 216 },
196 217 {
197 218 "beep",
198 219 True,
  220 + N_( "Sound" ),
199 221 N_( "Alert sound" ),
200 222 N_( "Beep on errors" )
201 223 },
202 224 {
203 225 "fieldattr",
204 226 False,
  227 + N_( "Show Field" ),
205 228 N_( "Show Field attribute" ),
206 229 ""
207 230 },
208 231 {
209 232 "altscreen",
210 233 True,
  234 + N_( "Alternate screen" ),
211 235 N_( "Resize on alternate screen" ),
212 236 N_( "Auto resize on altscreen" )
213 237 },
... ... @@ -215,19 +239,22 @@ toggle_info[LIB3270_TOGGLE_COUNT] =
215 239 "keepalive",
216 240 True,
217 241 N_( "Network keep alive" ),
  242 + N_( "Network keep alive" ),
218 243 N_( "Enable network keep-alive with SO_KEEPALIVE" )
219 244 },
220 245 {
221 246 "nettrace",
222 247 False,
  248 + N_( "Network data" ),
223 249 N_( "Trace network data flow" ),
224 250 N_( "Enable network in/out trace" )
225 251 },
226 252 {
227 253 "ssltrace",
228 254 False,
  255 + N_( "SSL negotiation" ),
229 256 N_( "Trace SSL negotiation" ),
230   - N_( "Enable SSL messages trace" )
  257 + N_( "Enable security negotiation messages trace" )
231 258 },
232 259 };
233 260  
... ... @@ -386,6 +413,13 @@ void shutdown_toggles(H3270 *session)
386 413 #endif
387 414 }
388 415  
  416 +LIB3270_EXPORT const char * lib3270_get_toggle_summary(LIB3270_TOGGLE ix)
  417 +{
  418 + if(ix < LIB3270_TOGGLE_COUNT)
  419 + return toggle_info[ix].summary;
  420 + return "";
  421 +}
  422 +
389 423 LIB3270_EXPORT const char * lib3270_get_toggle_label(LIB3270_TOGGLE ix)
390 424 {
391 425 if(ix < LIB3270_TOGGLE_COUNT)
... ... @@ -393,6 +427,7 @@ LIB3270_EXPORT const char * lib3270_get_toggle_label(LIB3270_TOGGLE ix)
393 427 return "";
394 428 }
395 429  
  430 +
396 431 LIB3270_EXPORT const char * lib3270_get_toggle_description(LIB3270_TOGGLE ix)
397 432 {
398 433 if(ix < LIB3270_TOGGLE_COUNT)
... ...
src/include/actionsc.h
... ... @@ -1,37 +0,0 @@
1   -/*
2   - * Copyright 1995, 1999, 2000, 2001, 2002, 2003, 2005 by Paul Mattes.
3   - * Permission to use, copy, modify, and distribute this software and its
4   - * documentation for any purpose and without fee is hereby granted,
5   - * provided that the above copyright notice appear in all copies and that
6   - * both that copyright notice and this permission notice appear in
7   - * supporting documentation.
8   - *
9   - * x3270, c3270, s3270 and tcl3270 are distributed in the hope that they will
10   - * be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
11   - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the file LICENSE
12   - * for more details.
13   - */
14   -
15   -/*
16   - * actionsc.h
17   - * Global declarations for actions.c.
18   - */
19   -
20   -#error Deprecated
21   -
22   -// extern enum iaction ia_cause;
23   -
24   -// extern int actioncount;
25   -// extern XtActionsRec *actions;
26   -
27   -// extern const char *ia_name[];
28   -
29   -// extern void action_init(void);
30   -
31   -// extern void action_internal(XtActionProc action, enum iaction cause, const char *parm1, const char *parm2);
32   -
33   -// #define action_name(x) #x
34   -
35   -// extern Boolean event_is_meta(int state);
36   -
37   -
src/include/api.h
... ... @@ -1,155 +0,0 @@
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.
5   - *
6   - * Copyright (C) <2008> <Banco do Brasil S.A.>
7   - *
8   - * Este programa é software livre. Você pode redistribuí-lo e/ou modificá-lo sob
9   - * os termos da GPL v.2 - Licença Pública Geral GNU, conforme publicado pela
10   - * Free Software Foundation.
11   - *
12   - * Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER
13   - * GARANTIA; sem mesmo a garantia implícita de COMERCIALIZAÇÃO ou de ADEQUAÇÃO
14   - * A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para
15   - * obter mais detalhes.
16   - *
17   - * Você deve ter recebido uma cópia da Licença Pública Geral GNU junto com este
18   - * programa; se não, escreva para a Free Software Foundation, Inc., 51 Franklin
19   - * St, Fifth Floor, Boston, MA 02110-1301 USA
20   - *
21   - * Este programa está nomeado como api.h e possui - linhas de código.
22   - *
23   - * Contatos:
24   - *
25   - * perry.werneck@gmail.com (Alexandre Perry de Souza Werneck)
26   - * erico.mendonca@gmail.com (Erico Mascarenhas de Mendonça)
27   - * licinio@bb.com.br (Licínio Luis Branco)
28   - * kraucer@bb.com.br (Kraucer Fernandes Mazuco)
29   - *
30   - */
31   -
32   -#error Deprecated
33   -
34   -#ifndef LIB3270_API_INCLUDED
35   -
36   -#ifdef WIN32
37   - #include <winsock2.h>
38   - #include <windows.h>
39   -#endif // WIN32
40   -
41   -#ifdef __cplusplus
42   - extern "C" {
43   -#endif
44   -
45   - #define LIB3270_API_INCLUDED "4.2"
46   -
47   - #include <errno.h>
48   -
49   - #if defined(_WIN32)
50   - #include <windows.h>
51   -
52   - #if defined (HAVE_GNUC_VISIBILITY)
53   - #define LOCAL_EXTERN __attribute__((visibility("hidden"))) extern
54   - #else
55   - #define LOCAL_EXTERN extern
56   - #endif
57   -
58   - #else
59   - #include <stdarg.h>
60   -
61   - // http://gcc.gnu.org/wiki/Visibility
62   - #if defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
63   - #define LOCAL_EXTERN __hidden extern
64   - #elif defined (HAVE_GNUC_VISIBILITY)
65   - #define LOCAL_EXTERN __attribute__((visibility("hidden"))) extern
66   - #else
67   - #define LOCAL_EXTERN extern
68   - #endif
69   -
70   -
71   - #endif
72   -
73   - #ifndef HCONSOLE
74   - #define HCONSOLE void *
75   - #endif
76   -
77   - #ifndef ETIMEDOUT
78   - #define ETIMEDOUT -1238
79   - #endif
80   -
81   - #ifndef ECANCELED
82   - #ifdef EINTR
83   - #define ECANCELED EINTR
84   - #else
85   - #define ECANCELED -1125
86   - #endif
87   - #endif
88   -
89   - #ifndef ENOTCONN
90   - #define ENOTCONN -1107
91   - #endif
92   -
93   - #ifndef EISCONN
94   - #define EISCONN -1106
95   - #endif
96   -
97   - #ifndef CN
98   - #define CN ((char *) NULL)
99   - #endif
100   -
101   - #include <lib3270/log.h>
102   -
103   - #include <lib3270/session.h>
104   -
105   -
106   - /** Type of dialog boxes */
107   - #include <lib3270/popup.h>
108   -
109   - /* File transfer */
110   -
111   - #define FT_RECORD_FORMAT_FIXED LIB3270_FT_RECORD_FORMAT_FIXED
112   - #define FT_RECORD_FORMAT_VARIABLE LIB3270_FT_RECORD_FORMAT_VARIABLE
113   - #define FT_RECORD_FORMAT_UNDEFINED LIB3270_FT_RECORD_FORMAT_UNDEFINED
114   - #define FT_RECORD_FORMAT_MASK LIB3270_FT_RECORD_FORMAT_MASK
115   -
116   - #define FT_ALLOCATION_UNITS_TRACKS LIB3270_FT_ALLOCATION_UNITS_TRACKS
117   - #define FT_ALLOCATION_UNITS_CYLINDERS LIB3270_FT_ALLOCATION_UNITS_CYLINDERS
118   - #define FT_ALLOCATION_UNITS_AVBLOCK LIB3270_FT_ALLOCATION_UNITS_AVBLOCK
119   - #define FT_ALLOCATION_UNITS_MASK LIB3270_FT_ALLOCATION_UNITS_MASK
120   -
121   - LOCAL_EXTERN int CancelFileTransfer(int force);
122   -
123   - #define PCONNECTED lib3270_pconnected(hSession)
124   - #define HALF_CONNECTED lib3270_half_connected(hSession)
125   - #define CONNECTED lib3270_connected(hSession)
126   -
127   - #define IN_NEITHER lib3270_in_neither(hSession)
128   - #define IN_ANSI lib3270_in_ansi(hSession)
129   - #define IN_3270 lib3270_in_3270(hSession)
130   - #define IN_SSCP lib3270_in_sscp(hSession)
131   - #define IN_TN3270E lib3270_in_tn3270e(hSession)
132   - #define IN_E lib3270_in_e(hSession)
133   -
134   - /* Set/Get screen contents */
135   - #define find_field_attribute(s,a) lib3270_field_addr(s,a)
136   - #define find_field_length(s,a) find_field_length(s,a)
137   -
138   - // LOCAL_EXTERN unsigned char get_field_attribute(H3270 *session, int baddr);
139   - // LOCAL_EXTERN void Input_String(const unsigned char *str);
140   - // LOCAL_EXTERN void screen_size(int *rows, int *cols);
141   -
142   - #define lib3270_paste_string(str) lib3270_set_string(NULL,str)
143   -
144   - /* Keyboard */
145   - LOCAL_EXTERN int emulate_input(char *s, int len, int pasting);
146   -
147   - /* Misc calls */
148   -
149   - #include <lib3270/actions.h>
150   -
151   -#ifdef __cplusplus
152   - }
153   -#endif
154   -
155   -#endif // LIB3270_API_INCLUDED
src/include/aplc.h
... ... @@ -1,22 +0,0 @@
1   -/*
2   - * Copyright 1995, 1999, 2000 by Paul Mattes.
3   - * Permission to use, copy, modify, and distribute this software and its
4   - * documentation for any purpose and without fee is hereby granted,
5   - * provided that the above copyright notice appear in all copies and that
6   - * both that copyright notice and this permission notice appear in
7   - * supporting documentation.
8   - *
9   - * x3270, c3270, s3270 and tcl3270 are distributed in the hope that they will
10   - * be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
11   - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the file LICENSE
12   - * for more details.
13   - */
14   -
15   -/*
16   - * aplc.h
17   - * Global declarations for apl.c.
18   - */
19   -
20   -#error Deprecated
21   -
22   -LIB3270_INTERNAL KeySym APLStringToKeysym(char *s, int *is_gep);
src/include/childc.h
... ... @@ -1,30 +0,0 @@
1   -/*
2   - * Copyright 2001 by Paul Mattes.
3   - * Permission to use, copy, modify, and distribute this software and its
4   - * documentation for any purpose and without fee is hereby granted,
5   - * provided that the above copyright notice appear in all copies and that
6   - * both that copyright notice and this permission notice appear in
7   - * supporting documentation.
8   - *
9   - * x3270, c3270, s3270 and tcl3270 are distributed in the hope that they will
10   - * be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
11   - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the file LICENSE
12   - * for more details.
13   - */
14   -
15   -/*
16   - * childc.h
17   - * Global declarations for child.c.
18   - */
19   -
20   -/*
21   -#if defined(X3270_DISPLAY) || defined(C3270)
22   -LIB3270_INTERNAL int fork_child(void);
23   -LIB3270_INTERNAL void child_ignore_output(void);
24   -#else
25   -#define fork_child() fork()
26   -#define child_ignore_output()
27   -#endif
28   -*/
29   -
30   -#error Deprecated
src/include/icmdc.h
... ... @@ -1,22 +0,0 @@
1   -/*
2   - * Copyright 2007 by Paul Mattes.
3   - * Permission to use, copy, modify, and distribute this software and its
4   - * documentation for any purpose and without fee is hereby granted,
5   - * provided that the above copyright notice appear in all copies and that
6   - * both that copyright notice and this permission notice appear in
7   - * supporting documentation.
8   - *
9   - * c3270 is distributed in the hope that it will be useful, but WITHOUT ANY
10   - * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   - * FOR A PARTICULAR PURPOSE. See the file LICENSE for more details.
12   - */
13   -
14   -/*
15   - * icmdc.h
16   - * A curses-based 3270 Terminal Emulator
17   - * Declarations for icmd.c.
18   - */
19   -
20   -// LIB3270_INTERNAL int interactive_transfer(String **params, Cardinal *num_params);
21   -
22   -#error Deprecated
src/include/keypadc.h
... ... @@ -1,53 +0,0 @@
1   -/*
2   - * Copyright 1995, 1996, 1999, 2000, 2002, 2003, 2005 by Paul Mattes.
3   - * Permission to use, copy, modify, and distribute this software and its
4   - * documentation for any purpose and without fee is hereby granted,
5   - * provided that the above copyright notice appear in all copies and that
6   - * both that copyright notice and this permission notice appear in
7   - * supporting documentation.
8   - *
9   - * x3270, c3270, s3270 and tcl3270 are distributed in the hope that they will
10   - * be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
11   - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the file LICENSE
12   - * for more details.
13   - */
14   -
15   -/*
16   - * keypadc.h
17   - * Global declarations for keypad.c.
18   - */
19   -
20   -// LIB3270_INTERNAL Boolean keypad_changed;
21   -/*
22   -#if defined(X3270_KEYPAD)
23   -
24   -LIB3270_INTERNAL enum kp_placement { kp_right, kp_left, kp_bottom, kp_integral, kp_inside_right } kp_placement;
25   -
26   -LIB3270_INTERNAL void keypad_first_up(void);
27   -LIB3270_INTERNAL Widget keypad_init(Widget container, Dimension voffset, Dimension screen_width, Boolean floating, Boolean vert);
28   -LIB3270_INTERNAL void keypad_move(void);
29   -LIB3270_INTERNAL void keypad_placement_init(void);
30   -LIB3270_INTERNAL void keypad_popup_init(void);
31   -LIB3270_INTERNAL Dimension keypad_qheight(void);
32   -LIB3270_INTERNAL void keypad_set_keymap(void);
33   -LIB3270_INTERNAL void keypad_set_temp_keymap(XtTranslations trans);
34   -LIB3270_INTERNAL void keypad_shift(void);
35   -LIB3270_INTERNAL Dimension min_keypad_width(void);
36   -
37   -#else
38   -
39   -#define keypad_qheight() 0
40   -#define min_keypad_width() 0
41   -#define keypad_first_up()
42   -#define keypad_init(a, b, c, d, e) 0
43   -#define keypad_move()
44   -#define keypad_placement_init()
45   -#define keypad_popup_init()
46   -#define keypad_set_keymap()
47   -#define keypad_set_temp_keymap(n)
48   -#define keypad_shift()
49   -
50   -#endif
51   -*/
52   -
53   -#error Deprecated
src/include/lib3270/toggle.h
1 1 /*
2   - * "Software G3270, desenvolvido com base nos códigos fontes do WC3270 e X3270
  2 + * "Software pw3270, desenvolvido com base nos códigos fontes do WC3270 e X3270
3 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.
  4 + * aplicativos mainframe. Registro no INPI sob o nome G3270. Registro no INPI sob o nome G3270.
5 5 *
6 6 * Copyright (C) <2008> <Banco do Brasil S.A.>
7 7 *
... ... @@ -18,12 +18,12 @@
18 18 * programa; se não, escreva para a Free Software Foundation, Inc., 51 Franklin
19 19 * St, Fifth Floor, Boston, MA 02110-1301 USA
20 20 *
21   - * Este programa está nomeado como toggle.h e possui - linhas de código.
  21 + * Este programa está nomeado como - e possui - linhas de código.
22 22 *
23 23 * Contatos:
24 24 *
25 25 * perry.werneck@gmail.com (Alexandre Perry de Souza Werneck)
26   - * erico.mendonca@gmail.com (Erico Mascarenhas de Mendonça)
  26 + * erico.mendonca@gmail.com (Erico Mascarenhas Mendonça)
27 27 *
28 28 */
29 29  
... ... @@ -84,7 +84,15 @@
84 84 LIB3270_EXPORT const char * lib3270_get_toggle_description(LIB3270_TOGGLE ix);
85 85  
86 86 /**
87   - * @brief Get a short description of the toggle (for menus).
  87 + * @brief Get a summary description of the toggle (for menus).
  88 + *
  89 + * @return Constant string with the toggle summary.
  90 + *
  91 + */
  92 + LIB3270_EXPORT const char * lib3270_get_toggle_summary(LIB3270_TOGGLE ix);
  93 +
  94 + /**
  95 + * @brief Get a short description of the toggle (for buttons).
88 96 *
89 97 * @return Constant string with the toggle label.
90 98 *
... ...
src/include/objects.h
... ... @@ -1,28 +0,0 @@
1   -/*
2   - * Copyright 1995, 1999, 2000 by Paul Mattes.
3   - * Permission to use, copy, modify, and distribute this software and its
4   - * documentation for any purpose and without fee is hereby granted,
5   - * provided that the above copyright notice appear in all copies and that
6   - * both that copyright notice and this permission notice appear in
7   - * supporting documentation.
8   - *
9   - * x3270, c3270, s3270 and tcl3270 are distributed in the hope that they will
10   - * be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
11   - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the file LICENSE
12   - * for more details.
13   - */
14   -
15   -/*
16   - * objects.h
17   - * x3270 object names.
18   - */
19   -
20   -// #define ObjConfirmButton "confirmButton"
21   -// #define ObjConfirm2Button "confirm2Button"
22   -// #define ObjCancelButton "cancelButton"
23   -// #define ObjDialog "dialog"
24   -// #define ObjSmallLabel "smallLabel"
25   -// #define ObjNameLabel "nameLabel"
26   -// #define ObjDataLabel "dataLabel"
27   -
28   -#error Deprecated
src/include/popupsc.h
... ... @@ -29,7 +29,10 @@
29 29 *
30 30 */
31 31  
32   - /* Popup calls */
  32 + /**
  33 + * @brief Popup calls
  34 + *
  35 + */
33 36  
34 37 #include <lib3270.h>
35 38  
... ...
src/include/printc.h
... ... @@ -1,27 +0,0 @@
1   -/*
2   - * Copyright 1995, 1999, 2000, 2002, 2004, 2005 by Paul Mattes.
3   - * Permission to use, copy, modify, and distribute this software and its
4   - * documentation for any purpose and without fee is hereby granted,
5   - * provided that the above copyright notice appear in all copies and that
6   - * both that copyright notice and this permission notice appear in
7   - * supporting documentation.
8   - *
9   - * x3270, c3270, s3270 and tcl3270 are distributed in the hope that they will
10   - * be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
11   - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the file LICENSE
12   - * for more details.
13   - */
14   -
15   -/*
16   - * printc.h
17   - * Global declarations for print.c.
18   - */
19   -
20   -// LIB3270_INTERNAL Boolean fprint_screen(FILE *f, Boolean even_if_empty, Boolean use_html);
21   -// LIB3270_INTERNAL void PrintText_action(Widget w, XEvent *event, String *params,Cardinal *num_params);
22   -// LIB3270_INTERNAL void PrintWindow_action(Widget w, XEvent *event, String *params,Cardinal *num_params);
23   -// LIB3270_INTERNAL void print_text_option(Widget w, XtPointer client_data,XtPointer call_data);
24   -// LIB3270_INTERNAL void print_window_option(Widget w, XtPointer client_data,XtPointer call_data);
25   -// LIB3270_INTERNAL void save_text_option(Widget w, XtPointer client_data,XtPointer call_data);
26   -
27   -#error Deprecated
src/include/printerc.h
... ... @@ -1,29 +0,0 @@
1   -/*
2   - * Copyright 2000, 2002, 2007 by Paul Mattes.
3   - * Permission to use, copy, modify, and distribute this software and its
4   - * documentation for any purpose and without fee is hereby granted,
5   - * provided that the above copyright notice appear in all copies and that
6   - * both that copyright notice and this permission notice appear in
7   - * supporting documentation.
8   - *
9   - * x3270, c3270, s3270 and tcl3270 are distributed in the hope that they will
10   - * be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
11   - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the file LICENSE
12   - * for more details.
13   - */
14   -
15   -/*
16   - * printerc.h
17   - * Printer session support
18   - */
19   -
20   -// LIB3270_INTERNAL void printer_init(void);
21   -// LIB3270_INTERNAL void printer_lu_dialog(void);
22   -// LIB3270_INTERNAL void printer_start(const char *lu);
23   -// LIB3270_INTERNAL void printer_stop(void);
24   -// LIB3270_INTERNAL Boolean printer_running(void);
25   -#if defined(_WIN32) /*[*/
26   -// LIB3270_INTERNAL void printer_check(void);
27   -#endif /*]*/
28   -
29   -#error Deprecated
src/include/savec.h
... ... @@ -1,25 +0,0 @@
1   -/*
2   - * Copyright 1999 by Paul Mattes.
3   - * Permission to use, copy, modify, and distribute this software and its
4   - * documentation for any purpose and without fee is hereby granted,
5   - * provided that the above copyright notice appear in all copies and that
6   - * both that copyright notice and this permission notice appear in
7   - * supporting documentation.
8   - *
9   - * c3270, s3270 and tcl3270 are distributed in the hope that they will
10   - * be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
11   - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the file LICENSE
12   - * for more details.
13   - */
14   -
15   -/* Non-display version of savec.h */
16   -
17   -/*
18   -
19   -#define save_yourself()
20   -
21   -LIB3270_INTERNAL char *command_string;
22   -*/
23   -
24   -
25   -#error Deprecated
src/include/scrollc.h
... ... @@ -1,20 +0,0 @@
1   -/*
2   - * Copyright 1999, 2001 by Paul Mattes.
3   - * Permission to use, copy, modify, and distribute this software and its
4   - * documentation for any purpose and without fee is hereby granted,
5   - * provided that the above copyright notice appear in all copies and that
6   - * both that copyright notice and this permission notice appear in
7   - * supporting documentation.
8   - *
9   - * c3270, s3270 and tcl3270 are distributed in the hope that they will
10   - * be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
11   - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the file LICENSE
12   - * for more details.
13   - */
14   -
15   -/* Non-display version of scrollc.h */
16   -
17   -// #define scroll_save(n, trim_blanks)
18   -// #define scroll_to_bottom()
19   -
20   -#error Deprecated
src/include/togglesc.h
1 1 /*
2   - * Modifications Copyright 1993, 1994, 1995, 1996, 1999, 2002 by Paul Mattes.
3   - * Original X11 Port Copyright 1990 by Jeff Sparkes.
4   - * Permission to use, copy, modify, and distribute this software and its
5   - * documentation for any purpose and without fee is hereby granted,
6   - * provided that the above copyright notice appear in all copies and that
7   - * both that copyright notice and this permission notice appear in
8   - * supporting documentation.
9   - *
10   - * Copyright 1989 by Georgia Tech Research Corporation, Atlanta, GA 30332.
11   - * All Rights Reserved. GTRC hereby grants public use of this software.
12   - * Derivative works based on this software must incorporate this copyright
13   - * notice.
14   - *
15   - * x3270, c3270, s3270 and tcl3270 are distributed in the hope that they will
16   - * be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
17   - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the file LICENSE
18   - * for more details.
  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 o nome G3270.
  5 + *
  6 + * Copyright (C) <2008> <Banco do Brasil S.A.>
  7 + *
  8 + * Este programa é software livre. Você pode redistribuí-lo e/ou modificá-lo sob
  9 + * os termos da GPL v.2 - Licença Pública Geral GNU, conforme publicado pela
  10 + * Free Software Foundation.
  11 + *
  12 + * Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER
  13 + * GARANTIA; sem mesmo a garantia implícita de COMERCIALIZAÇÃO ou de ADEQUAÇÃO
  14 + * A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para
  15 + * obter mais detalhes.
  16 + *
  17 + * Você deve ter recebido uma cópia da Licença Pública Geral GNU junto com este
  18 + * programa; se não, escreva para a Free Software Foundation, Inc., 51 Franklin
  19 + * St, Fifth Floor, Boston, MA 02110-1301 USA
  20 + *
  21 + * Este programa está nomeado como - e possui - linhas de código.
  22 + *
  23 + * Contatos:
  24 + *
  25 + * perry.werneck@gmail.com (Alexandre Perry de Souza Werneck)
  26 + * erico.mendonca@gmail.com (Erico Mascarenhas Mendonça)
  27 + *
19 28 */
20 29  
21   -/*
22   - * toggles.c
23   - * Global declarations for toggles.c.
  30 +/**
  31 + * @file togglesc.h
  32 + * @brief Global declarations for toggles.c.
24 33 */
25 34  
26   -// extern const char *toggle_names[N_TOGGLES];
27   -
28 35 LIB3270_INTERNAL void initialize_toggles(H3270 *session);
29 36 LIB3270_INTERNAL void shutdown_toggles(H3270 *session);
... ...