2
* Modifications Copyright 1996, 1999, 2000, 2001, 2002, 2003 by Paul Mattes.
3
* Copyright October 1995 by Dick Altenbern.
4
* Based in part on code Copyright 1993, 1994, 1995 by Paul Mattes.
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.
11
* x3270 is distributed in the hope that it will be useful, but WITHOUT ANY
12
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13
* FOR A PARTICULAR PURPOSE. See the file LICENSE for more details.
2
* Copyright (c) 1996-2009, Paul Mattes.
3
* Copyright (c) 1995, Dick Altenbern.
6
* Redistribution and use in source and binary forms, with or without
7
* modification, are permitted provided that the following conditions
9
* * Redistributions of source code must retain the above copyright
10
* notice, this list of conditions and the following disclaimer.
11
* * Redistributions in binary form must reproduce the above copyright
12
* notice, this list of conditions and the following disclaimer in the
13
* documentation and/or other materials provided with the distribution.
14
* * Neither the names of Paul Mattes, Dick Altenbern nor their
15
* contributors may be used to endorse or promote products derived
16
* from this software without specific prior written permission.
18
* THIS SOFTWARE IS PROVIDED BY PAUL MATTES AND DICK ALTENBERN "AS IS"
19
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
20
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL PAUL MATTES OR DICK ALTENBERN
22
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
23
* OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
24
* OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
25
* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
26
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
27
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
28
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
134
149
dialog_text_callback(Widget w, XtPointer client_data,
135
XtPointer call_data unused)
150
XtPointer call_data _is_unused)
137
152
XawTextBlock b; /* firstPos, length, ptr, format */
138
153
static XawTextBlock nullb = { 0, 0, NULL };
312
327
/* Proceed to the next input field. */
314
PA_dialog_next_action(Widget w, XEvent *event unused, String *parms unused,
315
Cardinal *num_parms unused)
329
PA_dialog_next_action(Widget w, XEvent *event _is_unused, String *parms _is_unused,
330
Cardinal *num_parms _is_unused)
327
342
/* Set keyboard focus to an input field. */
329
PA_dialog_focus_action(Widget w, XEvent *event unused, String *parms unused,
330
Cardinal *num_parms unused)
344
PA_dialog_focus_action(Widget w, XEvent *event _is_unused, String *parms _is_unused,
345
Cardinal *num_parms _is_unused)