| 1 |
/* @(#)UxComm.h 17.1 (ESO-IPG) 01/25/02 17:25:58 */ |
| 2 |
#ifndef UXCommand_INCLUDED |
| 3 |
#define UXCommand_INCLUDED |
| 4 |
|
| 5 |
#include "Xm/Command.h" |
| 6 |
|
| 7 |
#ifdef DESIGN_TIME |
| 8 |
#include "UxSelBox.h" |
| 9 |
|
| 10 |
#ifndef UxGetPromptString |
| 11 |
extern binptr UxP_CommandRD_promptString; |
| 12 |
#define UxGetPromptString(sw) \ |
| 13 |
UxGET_string(sw,UxP_CommandRD_promptString,"promptString") |
| 14 |
#define UxPutPromptString(sw,val) \ |
| 15 |
UxPUT_string(sw,UxP_CommandRD_promptString,"promptString",val) |
| 16 |
#endif |
| 17 |
|
| 18 |
#ifndef UxGetHistoryVisibleItemCount |
| 19 |
extern binptr UxP_CommandRD_historyVisibleItemCount; |
| 20 |
#define UxGetHistoryVisibleItemCount(sw) \ |
| 21 |
UxGET_int(sw,UxP_CommandRD_historyVisibleItemCount,"historyVisibleItemCount") |
| 22 |
#define UxPutHistoryVisibleItemCount(sw,val) \ |
| 23 |
UxPUT_int(sw,UxP_CommandRD_historyVisibleItemCount,"historyVisibleItemCount",val) |
| 24 |
#endif |
| 25 |
|
| 26 |
#ifndef UxGetHistoryMaxItems |
| 27 |
extern binptr UxP_CommandRD_historyMaxItems; |
| 28 |
#define UxGetHistoryMaxItems(sw) \ |
| 29 |
UxGET_int(sw,UxP_CommandRD_historyMaxItems,"historyMaxItems") |
| 30 |
#define UxPutHistoryMaxItems(sw,val) \ |
| 31 |
UxPUT_int(sw,UxP_CommandRD_historyMaxItems,"historyMaxItems",val) |
| 32 |
#endif |
| 33 |
|
| 34 |
#ifndef UxGetHistoryItemCount |
| 35 |
extern binptr UxP_CommandRD_historyItemCount; |
| 36 |
#define UxGetHistoryItemCount(sw) \ |
| 37 |
UxGET_int(sw,UxP_CommandRD_historyItemCount,"historyItemCount") |
| 38 |
#define UxPutHistoryItemCount(sw,val) \ |
| 39 |
UxPUT_int(sw,UxP_CommandRD_historyItemCount,"historyItemCount",val) |
| 40 |
#endif |
| 41 |
|
| 42 |
#ifndef UxGetHistoryItems |
| 43 |
extern binptr UxP_CommandRD_historyItems; |
| 44 |
#define UxGetHistoryItems(sw) \ |
| 45 |
UxGET_string(sw,UxP_CommandRD_historyItems,"historyItems") |
| 46 |
#define UxPutHistoryItems(sw,val) \ |
| 47 |
UxPUT_string(sw,UxP_CommandRD_historyItems,"historyItems",val) |
| 48 |
#endif |
| 49 |
|
| 50 |
#ifndef UxGetCommand |
| 51 |
extern binptr UxP_CommandRD_command; |
| 52 |
#define UxGetCommand(sw) \ |
| 53 |
UxGET_string(sw,UxP_CommandRD_command,"command") |
| 54 |
#define UxPutCommand(sw,val) \ |
| 55 |
UxPUT_string(sw,UxP_CommandRD_command,"command",val) |
| 56 |
#endif |
| 57 |
|
| 58 |
extern Class_t UxC_command; |
| 59 |
#define UxCreateCommand(name,parent) \ |
| 60 |
UxCreateSwidget(UxC_command,name,parent) |
| 61 |
#else |
| 62 |
#define UxCreateCommand(name,parent) \ |
| 63 |
UxCreateSwidget(name,xmCommandWidgetClass,parent) |
| 64 |
#endif |
| 65 |
#endif |