| 1 |
/* |
| 2 |
* Copyright 1989 Software Research Associates, Inc., Tokyo, Japan |
| 3 |
* Copyright 2004 the Xdvik development team |
| 4 |
* |
| 5 |
* Permission to use, copy, modify, and distribute this software and its |
| 6 |
* documentation for any purpose and without fee is hereby granted, provided |
| 7 |
* that the above copyright notice appear in all copies and that both that |
| 8 |
* copyright notice and this permission notice appear in supporting |
| 9 |
* documentation, and that the name of Software Research Associates not be used |
| 10 |
* in advertising or publicity pertaining to distribution of the software |
| 11 |
* without specific, written prior permission. Software Research Associates |
| 12 |
* makes no representations about the suitability of this software for any |
| 13 |
* purpose. It is provided "as is" without express or implied warranty. |
| 14 |
* |
| 15 |
* SOFTWARE RESEARCH ASSOCIATES DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS |
| 16 |
* SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, |
| 17 |
* IN NO EVENT SHALL SOFTWARE RESEARCH ASSOCIATES BE LIABLE FOR ANY SPECIAL, |
| 18 |
* INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM |
| 19 |
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE |
| 20 |
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
| 21 |
* PERFORMANCE OF THIS SOFTWARE. |
| 22 |
* |
| 23 |
* Author: Erik M. van der Poel |
| 24 |
* Software Research Associates, Inc., Tokyo, Japan |
| 25 |
* [email protected] |
| 26 |
*/ |
| 27 |
|
| 28 |
#include <X11/Intrinsic.h> |
| 29 |
#include <X11/StringDefs.h> |
| 30 |
#include <X11/Xos.h> |
| 31 |
#include <X11/Xaw/Text.h> |
| 32 |
#include <X11/Xaw/AsciiText.h> |
| 33 |
#undef wchar_t |
| 34 |
|
| 35 |
#define SEL_FILE_CANCEL -1 |
| 36 |
#define SEL_FILE_OK 0 |
| 37 |
#define SEL_FILE_NULL 1 |
| 38 |
#define SEL_FILE_TEXT 2 |
| 39 |
|
| 40 |
#define SF_DO_SCROLL 1 |
| 41 |
#define SF_DO_NOT_SCROLL 0 |
| 42 |
|
| 43 |
/* Widget names for get_widget_by_name() */ |
| 44 |
#define SfSelFile_FIELD_NAME "selFileField" |
| 45 |
#define SfSelFile_FORM_NAME "selFileForm" |
| 46 |
#define SfSelFile_HSCROLL_BIG_NAME "selFileHScrollBig" |
| 47 |
#define SfSelFile_VSCROLL_BASE_NAME "selFileVScroll" |
| 48 |
#define SfSelFile_HSCROLL_BASE_NAME "selFileHScroll" |
| 49 |
#define SfSelFile_LIST_BASE_NAME "selFileList" |
| 50 |
#define SfSelFile_LIST1_NAME "selFileList1" |
| 51 |
#define SfSelFile_LIST2_NAME "selFileList2" |
| 52 |
#define SfSelFile_LIST3_NAME "selFileList3" |
| 53 |
|
| 54 |
extern void |
| 55 |
SFenterList(), |
| 56 |
SFleaveList(), |
| 57 |
SFmotionList(), |
| 58 |
SFbuttonPressList(), |
| 59 |
SFbuttonReleaseList(); |
| 60 |
|
| 61 |
extern void |
| 62 |
SFvSliderMovedCallback(), |
| 63 |
SFvFloatSliderMovedCallback(), |
| 64 |
SFhSliderMovedCallback(), |
| 65 |
SFpathSliderMovedCallback(), |
| 66 |
SFvAreaSelectedCallback(), |
| 67 |
SFhAreaSelectedCallback(), |
| 68 |
SFpathAreaSelectedCallback(); |
| 69 |
|
| 70 |
|