~ubuntu-branches/ubuntu/natty/ibm-3270/natty

« back to all changes in this revision

Viewing changes to c3270/appres.h

  • Committer: Bazaar Package Importer
  • Author(s): Bastian Blank
  • Date: 2009-12-14 11:48:53 UTC
  • mfrom: (1.1.4 upstream) (2.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20091214114853-mywixml32hct9jr1
Tags: 3.3.10ga4-2
* Fix section to match override.
* Use debhelper compat level 7.
* Use 3.0 (quilt) source format.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Modifications Copyright 1993, 1994, 1995, 1996, 1999, 2000, 2001, 2002,
3
 
 *  2003, 2004, 2005, 2007 by Paul Mattes.
4
 
 * Copyright 1990 by Jeff Sparkes.
5
 
 *  Permission to use, copy, modify, and distribute this software and its
6
 
 *  documentation for any purpose and without fee is hereby granted,
7
 
 *  provided that the above copyright notice appear in all copies and that
8
 
 *  both that copyright notice and this permission notice appear in
9
 
 *  supporting documentation.
10
 
 *
11
 
 * x3270, c3270, s3270 and tcl3270 are distributed in the hope that they will
12
 
 * be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the file LICENSE
14
 
 * for more details.
 
2
 * Copyright (c) 1993-2009, Paul Mattes.
 
3
 * Copyright (c) 1990, Jeff Sparkes.
 
4
 * All rights reserved.
 
5
 *
 
6
 * Redistribution and use in source and binary forms, with or without
 
7
 * modification, are permitted provided that the following conditions are met:
 
8
 *     * Redistributions of source code must retain the above copyright
 
9
 *       notice, this list of conditions and the following disclaimer.
 
10
 *     * Redistributions in binary form must reproduce the above copyright
 
11
 *       notice, this list of conditions and the following disclaimer in the
 
12
 *       documentation and/or other materials provided with the distribution.
 
13
 *     * Neither the names of Paul Mattes, Jeff Sparkes nor the names of their
 
14
 *       contributors may be used to endorse or promote products derived from
 
15
 *       this software without specific prior written permission.
 
16
 *
 
17
 * THIS SOFTWARE IS PROVIDED BY PAUL MATTES AND JEFF SPARKES "AS IS" AND
 
18
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 
19
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 
20
 * ARE DISCLAIMED. IN NO EVENT SHALL PAUL MATTES OR JEFF SPARKES BE LIABLE FOR
 
21
 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 
22
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 
23
 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
 
24
 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 
25
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 
26
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
 
27
 * DAMAGE.
15
28
 */
16
29
 
17
30
/*
65
78
#define AID_WAIT        15
66
79
#endif /*]*/
67
80
 
68
 
#define N_TOGGLES       16
 
81
#if defined(C3270) /*[*/
 
82
#define UNDERSCORE      16
 
83
#endif /*]*/
 
84
 
 
85
#define N_TOGGLES       17
69
86
 
70
87
#define toggled(ix)             (appres.toggle[ix].value)
71
88
#define toggle_toggle(t) \
88
105
        Boolean m3279;
89
106
        Boolean modified_sel;
90
107
        Boolean once;
91
 
#if defined(X3270_DISPLAY) /*[*/
 
108
#if defined(X3270_DISPLAY) || (defined(C3270) && defined(_WIN32)) /*[*/
92
109
        Boolean visual_bell;
 
110
#endif /*]*/
 
111
#if defined(X3270_DISPLAY) /*[*/
93
112
        Boolean menubar;
94
113
        Boolean active_icon;
95
114
        Boolean label_icon;
97
116
        Boolean use_cursor_color;
98
117
        Boolean allow_resize;
99
118
        Boolean no_other;
100
 
        Boolean do_confirms;
101
 
        Boolean reconnect;
102
119
        Boolean visual_select;
103
120
        Boolean suppress_host;
104
121
        Boolean suppress_font_menu;
106
123
        Boolean keypad_on;
107
124
# endif /*]*/
108
125
#endif /*]*/
 
126
#if defined(X3270_DISPLAY) || defined(C3270) /*[*/
 
127
        Boolean do_confirms;
 
128
        Boolean reconnect;
 
129
#endif /*]*/
109
130
#if defined(C3270) /*[*/
110
131
        Boolean all_bold_on;
111
132
        Boolean curses_keypad;
112
133
        Boolean cbreak_mode;
 
134
        Boolean no_prompt;
 
135
#if !defined(_WIN32) /*[*/
 
136
        Boolean reverse_video;
 
137
#endif /*]*/
 
138
#if defined(_WIN32) /*[*/
 
139
        Boolean auto_shortcut;
 
140
#endif /*]*/
113
141
#endif /*]*/
114
142
        Boolean apl_mode;
115
143
        Boolean scripted;
125
153
        Boolean unlock_delay;
126
154
#if defined(X3270_SCRIPT) /*[*/
127
155
        Boolean socket;
128
 
#endif /*]*/
129
 
#if defined(C3270) && defined(_WIN32) /*[*/
130
 
        Boolean highlight_underline;
 
156
        int     script_port;
131
157
#endif /*]*/
132
158
 
133
159
        /* Named resources */
142
168
#if defined(X3270_DISPLAY) /*[*/
143
169
        char    *efontname;
144
170
        char    *fixed_size;
145
 
        char    *debug_font;
146
171
        char    *icon_font;
147
172
        char    *icon_label_font;
148
173
        int     save_lines;
164
189
#endif /*]*/
165
190
#endif /*]*/
166
191
#if defined(X3270_DBCS) /*[*/
167
 
        char    *local_encoding;
 
192
        char    *dbcs_cgcsgid;
168
193
#endif /*]*/
169
194
#if defined(C3270) /*[*/
170
195
        char    *meta_escape;
171
196
        char    *all_bold;
172
197
        char    *altscreen;
173
198
        char    *defscreen;
 
199
        Boolean acs;
 
200
        Boolean ascii_box_draw;
 
201
# if !defined(_WIN32) /*[*/
 
202
        Boolean mouse;
 
203
# endif /*]*/
174
204
#endif /*]*/
175
205
        char    *conf_dir;
176
206
        char    *model;
177
207
        char    *hostsfile;
178
208
        char    *port;
179
209
        char    *charset;
 
210
        char    *sbcs_cgcsgid;
180
211
        char    *termname;
181
212
        char    *login_macro;
182
213
        char    *macros;
183
214
#if defined(X3270_TRACE) /*[*/
184
 
#if !defined(_WIN32) /*[*/
185
215
        char    *trace_dir;
186
 
#endif /*]*/
187
216
        char    *trace_file;
188
217
        char    *screentrace_file;
189
218
        char    *trace_file_size;
207
236
        char    *cert_file;
208
237
#endif /*]*/
209
238
        char    *proxy;
 
239
#if defined(TCL3270) /*[*/
 
240
        int     command_timeout;
 
241
#endif /*]*/
 
242
        int     unlock_delay_ms;
210
243
 
211
244
        /* Toggles */
212
245
        struct toggle toggle[N_TOGGLES];
233
266
        char    *eof;
234
267
#endif /*]*/
235
268
 
 
269
        char    *hostname;
 
270
 
236
271
#if defined(WC3270) /*[*/
237
 
        char    *hostname;
238
272
        char    *title;
239
273
#endif /*]*/
240
274
 
 
275
#if defined(WS3270) /*[*/
 
276
        int     local_cp;
 
277
#endif /*]*/
 
278
 
241
279
#if defined(USE_APP_DEFAULTS) /*[*/
242
280
        /* App-defaults version */
243
281
        char    *ad_version;