| 1 |
/* @(#)UxText.h 17.1 (ESO-IPG) 01/25/02 17:26:03 */ |
| 2 |
#ifndef UXText_INCLUDED |
| 3 |
#define UXText_INCLUDED |
| 4 |
|
| 5 |
#include "Xm/Text.h" |
| 6 |
|
| 7 |
#ifdef DESIGN_TIME |
| 8 |
#include "UxPrim.h" |
| 9 |
|
| 10 |
#ifndef UxGetWordWrap |
| 11 |
extern binptr UxP_TextRD_wordWrap; |
| 12 |
#define UxGetWordWrap(sw) \ |
| 13 |
UxGET_string(sw,UxP_TextRD_wordWrap,"wordWrap") |
| 14 |
#define UxPutWordWrap(sw,val) \ |
| 15 |
UxPUT_string(sw,UxP_TextRD_wordWrap,"wordWrap",val) |
| 16 |
#endif |
| 17 |
|
| 18 |
#ifndef UxGetRows |
| 19 |
extern binptr UxP_TextRD_rows; |
| 20 |
#define UxGetRows(sw) \ |
| 21 |
UxGET_short(sw,UxP_TextRD_rows,"rows") |
| 22 |
#define UxPutRows(sw,val) \ |
| 23 |
UxPUT_short(sw,UxP_TextRD_rows,"rows",val) |
| 24 |
#endif |
| 25 |
|
| 26 |
#ifndef UxGetResizeWidth |
| 27 |
extern binptr UxP_TextRD_resizeWidth; |
| 28 |
#define UxGetResizeWidth(sw) \ |
| 29 |
UxGET_string(sw,UxP_TextRD_resizeWidth,"resizeWidth") |
| 30 |
#define UxPutResizeWidth(sw,val) \ |
| 31 |
UxPUT_string(sw,UxP_TextRD_resizeWidth,"resizeWidth",val) |
| 32 |
#endif |
| 33 |
|
| 34 |
#ifndef UxGetResizeHeight |
| 35 |
extern binptr UxP_TextRD_resizeHeight; |
| 36 |
#define UxGetResizeHeight(sw) \ |
| 37 |
UxGET_string(sw,UxP_TextRD_resizeHeight,"resizeHeight") |
| 38 |
#define UxPutResizeHeight(sw,val) \ |
| 39 |
UxPUT_string(sw,UxP_TextRD_resizeHeight,"resizeHeight",val) |
| 40 |
#endif |
| 41 |
|
| 42 |
#ifndef UxGetCursorPositionVisible |
| 43 |
extern binptr UxP_TextRD_cursorPositionVisible; |
| 44 |
#define UxGetCursorPositionVisible(sw) \ |
| 45 |
UxGET_string(sw,UxP_TextRD_cursorPositionVisible,"cursorPositionVisible") |
| 46 |
#define UxPutCursorPositionVisible(sw,val) \ |
| 47 |
UxPUT_string(sw,UxP_TextRD_cursorPositionVisible,"cursorPositionVisible",val) |
| 48 |
#endif |
| 49 |
|
| 50 |
#ifndef UxGetFontList |
| 51 |
extern binptr UxP_TextRD_fontList; |
| 52 |
#define UxGetFontList(sw) \ |
| 53 |
UxGET_string(sw,UxP_TextRD_fontList,"fontList") |
| 54 |
#define UxPutFontList(sw,val) \ |
| 55 |
UxPUT_string(sw,UxP_TextRD_fontList,"fontList",val) |
| 56 |
#endif |
| 57 |
|
| 58 |
#ifndef UxGetColumns |
| 59 |
extern binptr UxP_TextRD_columns; |
| 60 |
#define UxGetColumns(sw) \ |
| 61 |
UxGET_short(sw,UxP_TextRD_columns,"columns") |
| 62 |
#define UxPutColumns(sw,val) \ |
| 63 |
UxPUT_short(sw,UxP_TextRD_columns,"columns",val) |
| 64 |
#endif |
| 65 |
|
| 66 |
#ifndef UxGetBlinkRate |
| 67 |
extern binptr UxP_TextRD_blinkRate; |
| 68 |
#define UxGetBlinkRate(sw) \ |
| 69 |
UxGET_int(sw,UxP_TextRD_blinkRate,"blinkRate") |
| 70 |
#define UxPutBlinkRate(sw,val) \ |
| 71 |
UxPUT_int(sw,UxP_TextRD_blinkRate,"blinkRate",val) |
| 72 |
#endif |
| 73 |
|
| 74 |
#ifndef UxGetSource |
| 75 |
extern binptr UxP_TextRD_source; |
| 76 |
#define UxGetSource(sw) \ |
| 77 |
UxGET_XmTextSource(sw,UxP_TextRD_source,"source") |
| 78 |
#define UxPutSource(sw,val) \ |
| 79 |
UxPUT_XmTextSource(sw,UxP_TextRD_source,"source",val) |
| 80 |
#endif |
| 81 |
|
| 82 |
#ifndef UxGetSelectThreshold |
| 83 |
extern binptr UxP_TextRD_selectThreshold; |
| 84 |
#define UxGetSelectThreshold(sw) \ |
| 85 |
UxGET_int(sw,UxP_TextRD_selectThreshold,"selectThreshold") |
| 86 |
#define UxPutSelectThreshold(sw,val) \ |
| 87 |
UxPUT_int(sw,UxP_TextRD_selectThreshold,"selectThreshold",val) |
| 88 |
#endif |
| 89 |
|
| 90 |
#ifndef UxGetSelectionArrayCount |
| 91 |
extern binptr UxP_TextRD_selectionArrayCount; |
| 92 |
#define UxGetSelectionArrayCount(sw) \ |
| 93 |
UxGET_int(sw,UxP_TextRD_selectionArrayCount,"selectionArrayCount") |
| 94 |
#define UxPutSelectionArrayCount(sw,val) \ |
| 95 |
UxPUT_int(sw,UxP_TextRD_selectionArrayCount,"selectionArrayCount",val) |
| 96 |
#endif |
| 97 |
|
| 98 |
#ifndef UxGetSelectionArray |
| 99 |
extern binptr UxP_TextRD_selectionArray; |
| 100 |
#define UxGetSelectionArray(sw) \ |
| 101 |
UxGET_string(sw,UxP_TextRD_selectionArray,"selectionArray") |
| 102 |
#define UxPutSelectionArray(sw,val) \ |
| 103 |
UxPUT_string(sw,UxP_TextRD_selectionArray,"selectionArray",val) |
| 104 |
#endif |
| 105 |
|
| 106 |
#ifndef UxGetPendingDelete |
| 107 |
extern binptr UxP_TextRD_pendingDelete; |
| 108 |
#define UxGetPendingDelete(sw) \ |
| 109 |
UxGET_string(sw,UxP_TextRD_pendingDelete,"pendingDelete") |
| 110 |
#define UxPutPendingDelete(sw,val) \ |
| 111 |
UxPUT_string(sw,UxP_TextRD_pendingDelete,"pendingDelete",val) |
| 112 |
#endif |
| 113 |
|
| 114 |
#ifndef UxGetVerifyBell |
| 115 |
extern binptr UxP_TextRD_verifyBell; |
| 116 |
#define UxGetVerifyBell(sw) \ |
| 117 |
UxGET_string(sw,UxP_TextRD_verifyBell,"verifyBell") |
| 118 |
#define UxPutVerifyBell(sw,val) \ |
| 119 |
UxPUT_string(sw,UxP_TextRD_verifyBell,"verifyBell",val) |
| 120 |
#endif |
| 121 |
|
| 122 |
#ifndef UxGetValueWcs |
| 123 |
extern binptr UxP_TextRD_valueWcs; |
| 124 |
#define UxGetValueWcs(sw) \ |
| 125 |
UxGET_string(sw,UxP_TextRD_valueWcs,"valueWcs") |
| 126 |
#define UxPutValueWcs(sw,val) \ |
| 127 |
UxPUT_string(sw,UxP_TextRD_valueWcs,"valueWcs",val) |
| 128 |
#endif |
| 129 |
|
| 130 |
#ifndef UxGetText |
| 131 |
extern binptr UxP_TextRD_text; |
| 132 |
#define UxGetText(sw) \ |
| 133 |
UxGET_string(sw,UxP_TextRD_text,"text") |
| 134 |
#define UxPutText(sw,val) \ |
| 135 |
UxPUT_string(sw,UxP_TextRD_text,"text",val) |
| 136 |
#endif |
| 137 |
|
| 138 |
#ifndef UxGetTopCharacter |
| 139 |
extern binptr UxP_TextRD_topCharacter; |
| 140 |
#define UxGetTopCharacter(sw) \ |
| 141 |
UxGET_int(sw,UxP_TextRD_topCharacter,"topCharacter") |
| 142 |
#define UxPutTopCharacter(sw,val) \ |
| 143 |
UxPUT_int(sw,UxP_TextRD_topCharacter,"topCharacter",val) |
| 144 |
#endif |
| 145 |
|
| 146 |
#ifndef UxGetMaxLength |
| 147 |
extern binptr UxP_TextRD_maxLength; |
| 148 |
#define UxGetMaxLength(sw) \ |
| 149 |
UxGET_int(sw,UxP_TextRD_maxLength,"maxLength") |
| 150 |
#define UxPutMaxLength(sw,val) \ |
| 151 |
UxPUT_int(sw,UxP_TextRD_maxLength,"maxLength",val) |
| 152 |
#endif |
| 153 |
|
| 154 |
#ifndef UxGetMarginWidth |
| 155 |
extern binptr UxP_TextRD_marginWidth; |
| 156 |
#define UxGetMarginWidth(sw) \ |
| 157 |
UxGET_int(sw,UxP_TextRD_marginWidth,"marginWidth") |
| 158 |
#define UxPutMarginWidth(sw,val) \ |
| 159 |
UxPUT_int(sw,UxP_TextRD_marginWidth,"marginWidth",val) |
| 160 |
#endif |
| 161 |
|
| 162 |
#ifndef UxGetMarginHeight |
| 163 |
extern binptr UxP_TextRD_marginHeight; |
| 164 |
#define UxGetMarginHeight(sw) \ |
| 165 |
UxGET_int(sw,UxP_TextRD_marginHeight,"marginHeight") |
| 166 |
#define UxPutMarginHeight(sw,val) \ |
| 167 |
UxPUT_int(sw,UxP_TextRD_marginHeight,"marginHeight",val) |
| 168 |
#endif |
| 169 |
|
| 170 |
#ifndef UxGetEditMode |
| 171 |
extern binptr UxP_TextRD_editMode; |
| 172 |
#define UxGetEditMode(sw) \ |
| 173 |
UxGET_string(sw,UxP_TextRD_editMode,"editMode") |
| 174 |
#define UxPutEditMode(sw,val) \ |
| 175 |
UxPUT_string(sw,UxP_TextRD_editMode,"editMode",val) |
| 176 |
#endif |
| 177 |
|
| 178 |
#ifndef UxGetEditable |
| 179 |
extern binptr UxP_TextRD_editable; |
| 180 |
#define UxGetEditable(sw) \ |
| 181 |
UxGET_string(sw,UxP_TextRD_editable,"editable") |
| 182 |
#define UxPutEditable(sw,val) \ |
| 183 |
UxPUT_string(sw,UxP_TextRD_editable,"editable",val) |
| 184 |
#endif |
| 185 |
|
| 186 |
#ifndef UxGetCursorPosition |
| 187 |
extern binptr UxP_TextRD_cursorPosition; |
| 188 |
#define UxGetCursorPosition(sw) \ |
| 189 |
UxGET_int(sw,UxP_TextRD_cursorPosition,"cursorPosition") |
| 190 |
#define UxPutCursorPosition(sw,val) \ |
| 191 |
UxPUT_int(sw,UxP_TextRD_cursorPosition,"cursorPosition",val) |
| 192 |
#endif |
| 193 |
|
| 194 |
#ifndef UxGetAutoShowCursorPosition |
| 195 |
extern binptr UxP_TextRD_autoShowCursorPosition; |
| 196 |
#define UxGetAutoShowCursorPosition(sw) \ |
| 197 |
UxGET_string(sw,UxP_TextRD_autoShowCursorPosition,"autoShowCursorPosition") |
| 198 |
#define UxPutAutoShowCursorPosition(sw,val) \ |
| 199 |
UxPUT_string(sw,UxP_TextRD_autoShowCursorPosition,"autoShowCursorPosition",val) |
| 200 |
#endif |
| 201 |
|
| 202 |
extern Class_t UxC_text; |
| 203 |
#define UxCreateText(name,parent) \ |
| 204 |
UxCreateSwidget(UxC_text,name,parent) |
| 205 |
#else |
| 206 |
#define UxCreateText(name,parent) \ |
| 207 |
UxCreateSwidget(name,xmTextWidgetClass,parent) |
| 208 |
#endif |
| 209 |
#endif |