Subversion Repositories tendra.SVN

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 7u83 1
#   		 Crown Copyright (c) 1997
2
#   
3
#   This TenDRA(r) Computer Program is subject to Copyright
4
#   owned by the United Kingdom Secretary of State for Defence
5
#   acting through the Defence Evaluation and Research Agency
6
#   (DERA).  It is made available to Recipients with a
7
#   royalty-free licence for its use, reproduction, transfer
8
#   to other parties and amendment for any purpose not excluding
9
#   product development provided that any such use et cetera
10
#   shall be deemed to be acceptance of the following conditions:-
11
#   
12
#       (1) Its Recipients shall ensure that this Notice is
13
#       reproduced upon any copies or amended versions of it;
14
#   
15
#       (2) Any amended version of it shall be clearly marked to
16
#       show both the nature of and the organisation responsible
17
#       for the relevant amendment or amendments;
18
#   
19
#       (3) Its onward transfer from a recipient to another
20
#       party shall be deemed to be that party's acceptance of
21
#       these conditions;
22
#   
23
#       (4) DERA gives no warranty or assurance as to its
24
#       quality or suitability for any purpose and DERA accepts
25
#       no liability whatsoever in relation to any use to which
26
#       it may be put.
27
#
28
+USE "x5/t", "X11/Intrinsic.h" ;
29
+USE "x5/aw", "X11/Xaw/Simple.h" ;
30
 
31
# Text Widget (5.9)
32
 
33
+TYPE ( struct ) TextClassRec ;
34
+TYPEDEF TextClassRec *TextWidgetClass ;
35
 
36
+EXP lvalue WidgetClass textWidgetClass ;
37
 
38
+TYPE ( struct ) TextRec ;
39
+TYPEDEF TextRec *TextWidget ;
40
 
41
 
42
# Text Routines
43
 
44
+TYPE ( int ) XawTextSelectType ;
45
 
46
+CONST XawTextSelectType XawselectNull, XawselectAll, XawselectChar ;
47
+CONST XawTextSelectType XawselectLine, XawselectParagraph, XawselectWord ;
48
 
49
 
50
+TYPEDEF long XawTextPosition ;
51
 
52
+FIELD ( struct ) XawTextBlock := {
53
    int firstPos ;
54
    int length ;
55
    char *ptr ;
56
    unsigned long format ;
57
} ;
58
 
59
+TYPEDEF XawTextBlock *XawTextBlockPtr ;
60
 
61
+FUNC void XawTextSetSelection ( Widget, XawTextPosition, XawTextPosition ) ;
62
+FUNC void XawTextUnsetSelection ( Widget ) ;
63
+FUNC void XawTextGetSelectionPos ( Widget, XawTextPosition *,
64
    XawTextPosition * ) ;
65
 
66
+CONST int XawEditDone, XawPositionError, XawEditError ;
67
+FUNC int XawTextReplace ( Widget, XawTextPosition, XawTextPosition,
68
    XawTextBlock * ) ;
69
 
70
+TYPE ( int ) XawTextScanDirection ;
71
+CONST XawTextScanDirection XawsdLeft, XawsdRight ;
72
+CONST XawTextPosition XawTextSearchError ;
73
+FUNC XawTextPosition XawTextSearch ( Widget, XawTextScanDirection,
74
    XawTextBlock * ) ;
75
 
76
+FUNC void XawTextInvalidate ( Widget, XawTextPosition, XawTextPosition ) ;
77
+FUNC void XawTextEnableRedisplay ( Widget ) ;
78
+FUNC void XawTextDisableRedisplay ( Widget ) ;
79
+FUNC void XawTextDisplay ( Widget ) ;
80
 
81
+FUNC XawTextPosition XawTextTopPosition ( Widget ) ;
82
+FUNC void XawTextSetSelectionArray ( Widget, XawTextSelectType * ) ;
83
+FUNC void XawTextSetInsertionPoint ( Widget, XawTextPosition ) ;
84
+FUNC XawTextPosition XawTextGetInsertionPoint ( Widget ) ;
85
+FUNC void XawTextSetSource ( Widget, Widget, XawTextPosition ) ;
86
+FUNC Widget XawTextGetSource ( Widget ) ;
87
+FUNC void XawTextDisplayCaret ( Widget, Boolean ) ;
88
 
89
+CONST int XawtextRead, XawtextEdit, XawtextAppend ;
90
+CONST int XawtextResizeNever,  XawtextResizeWidth, XawtextResizeHeight ;
91
+CONST int XawtextResizeBoth ;
92
+CONST int XawtextScrollAlways, XawtextScrollWhenNeeded, XawtextScrollNever ;
93
+CONST int XawAsciiString, XawAsciiFile ;
94
+CONST int XawtextWrapNever, XawtextWrapLine, XawtextWrapWord ;