| 1 |
/* @(#)UxList.h 17.1 (ESO-IPG) 01/25/02 17:26:00 */ |
| 2 |
#ifndef UXList_INCLUDED |
| 3 |
#define UXList_INCLUDED |
| 4 |
|
| 5 |
#include "Xm/List.h" |
| 6 |
|
| 7 |
#ifdef DESIGN_TIME |
| 8 |
#include "UxPrim.h" |
| 9 |
|
| 10 |
#ifndef UxGetVisibleItemCount |
| 11 |
extern binptr UxP_ListRD_visibleItemCount; |
| 12 |
#define UxGetVisibleItemCount(sw) \ |
| 13 |
UxGET_int(sw,UxP_ListRD_visibleItemCount,"visibleItemCount") |
| 14 |
#define UxPutVisibleItemCount(sw,val) \ |
| 15 |
UxPUT_int(sw,UxP_ListRD_visibleItemCount,"visibleItemCount",val) |
| 16 |
#endif |
| 17 |
|
| 18 |
#ifndef UxGetTopItemPosition |
| 19 |
extern binptr UxP_ListRD_topItemPosition; |
| 20 |
#define UxGetTopItemPosition(sw) \ |
| 21 |
UxGET_int(sw,UxP_ListRD_topItemPosition,"topItemPosition") |
| 22 |
#define UxPutTopItemPosition(sw,val) \ |
| 23 |
UxPUT_int(sw,UxP_ListRD_topItemPosition,"topItemPosition",val) |
| 24 |
#endif |
| 25 |
|
| 26 |
#ifndef UxGetStringDirection |
| 27 |
extern binptr UxP_ListRD_stringDirection; |
| 28 |
#define UxGetStringDirection(sw) \ |
| 29 |
UxGET_string(sw,UxP_ListRD_stringDirection,"stringDirection") |
| 30 |
#define UxPutStringDirection(sw,val) \ |
| 31 |
UxPUT_string(sw,UxP_ListRD_stringDirection,"stringDirection",val) |
| 32 |
#endif |
| 33 |
|
| 34 |
#ifndef UxGetSelectionPolicy |
| 35 |
extern binptr UxP_ListRD_selectionPolicy; |
| 36 |
#define UxGetSelectionPolicy(sw) \ |
| 37 |
UxGET_string(sw,UxP_ListRD_selectionPolicy,"selectionPolicy") |
| 38 |
#define UxPutSelectionPolicy(sw,val) \ |
| 39 |
UxPUT_string(sw,UxP_ListRD_selectionPolicy,"selectionPolicy",val) |
| 40 |
#endif |
| 41 |
|
| 42 |
#ifndef UxGetSelectedItemCount |
| 43 |
extern binptr UxP_ListRD_selectedItemCount; |
| 44 |
#define UxGetSelectedItemCount(sw) \ |
| 45 |
UxGET_int(sw,UxP_ListRD_selectedItemCount,"selectedItemCount") |
| 46 |
#define UxPutSelectedItemCount(sw,val) \ |
| 47 |
UxPUT_int(sw,UxP_ListRD_selectedItemCount,"selectedItemCount",val) |
| 48 |
#endif |
| 49 |
|
| 50 |
#ifndef UxGetSelectedItems |
| 51 |
extern binptr UxP_ListRD_selectedItems; |
| 52 |
#define UxGetSelectedItems(sw) \ |
| 53 |
UxGET_string(sw,UxP_ListRD_selectedItems,"selectedItems") |
| 54 |
#define UxPutSelectedItems(sw,val) \ |
| 55 |
UxPUT_string(sw,UxP_ListRD_selectedItems,"selectedItems",val) |
| 56 |
#endif |
| 57 |
|
| 58 |
#ifndef UxGetScrollBarDisplayPolicy |
| 59 |
extern binptr UxP_ListRD_scrollBarDisplayPolicy; |
| 60 |
#define UxGetScrollBarDisplayPolicy(sw) \ |
| 61 |
UxGET_string(sw,UxP_ListRD_scrollBarDisplayPolicy,"scrollBarDisplayPolicy") |
| 62 |
#define UxPutScrollBarDisplayPolicy(sw,val) \ |
| 63 |
UxPUT_string(sw,UxP_ListRD_scrollBarDisplayPolicy,"scrollBarDisplayPolicy",val) |
| 64 |
#endif |
| 65 |
|
| 66 |
#ifndef UxGetListSpacing |
| 67 |
extern binptr UxP_ListRD_listSpacing; |
| 68 |
#define UxGetListSpacing(sw) \ |
| 69 |
UxGET_int(sw,UxP_ListRD_listSpacing,"listSpacing") |
| 70 |
#define UxPutListSpacing(sw,val) \ |
| 71 |
UxPUT_int(sw,UxP_ListRD_listSpacing,"listSpacing",val) |
| 72 |
#endif |
| 73 |
|
| 74 |
#ifndef UxGetListSizePolicy |
| 75 |
extern binptr UxP_ListRD_listSizePolicy; |
| 76 |
#define UxGetListSizePolicy(sw) \ |
| 77 |
UxGET_string(sw,UxP_ListRD_listSizePolicy,"listSizePolicy") |
| 78 |
#define UxPutListSizePolicy(sw,val) \ |
| 79 |
UxPUT_string(sw,UxP_ListRD_listSizePolicy,"listSizePolicy",val) |
| 80 |
#endif |
| 81 |
|
| 82 |
#ifndef UxGetListMarginWidth |
| 83 |
extern binptr UxP_ListRD_listMarginWidth; |
| 84 |
#define UxGetListMarginWidth(sw) \ |
| 85 |
UxGET_int(sw,UxP_ListRD_listMarginWidth,"listMarginWidth") |
| 86 |
#define UxPutListMarginWidth(sw,val) \ |
| 87 |
UxPUT_int(sw,UxP_ListRD_listMarginWidth,"listMarginWidth",val) |
| 88 |
#endif |
| 89 |
|
| 90 |
#ifndef UxGetListMarginHeight |
| 91 |
extern binptr UxP_ListRD_listMarginHeight; |
| 92 |
#define UxGetListMarginHeight(sw) \ |
| 93 |
UxGET_int(sw,UxP_ListRD_listMarginHeight,"listMarginHeight") |
| 94 |
#define UxPutListMarginHeight(sw,val) \ |
| 95 |
UxPUT_int(sw,UxP_ListRD_listMarginHeight,"listMarginHeight",val) |
| 96 |
#endif |
| 97 |
|
| 98 |
#ifndef UxGetItemCount |
| 99 |
extern binptr UxP_ListRD_itemCount; |
| 100 |
#define UxGetItemCount(sw) \ |
| 101 |
UxGET_int(sw,UxP_ListRD_itemCount,"itemCount") |
| 102 |
#define UxPutItemCount(sw,val) \ |
| 103 |
UxPUT_int(sw,UxP_ListRD_itemCount,"itemCount",val) |
| 104 |
#endif |
| 105 |
|
| 106 |
#ifndef UxGetItems |
| 107 |
extern binptr UxP_ListRD_items; |
| 108 |
#define UxGetItems(sw) \ |
| 109 |
UxGET_string(sw,UxP_ListRD_items,"items") |
| 110 |
#define UxPutItems(sw,val) \ |
| 111 |
UxPUT_string(sw,UxP_ListRD_items,"items",val) |
| 112 |
#endif |
| 113 |
|
| 114 |
#ifndef UxGetFontList |
| 115 |
extern binptr UxP_ListRD_fontList; |
| 116 |
#define UxGetFontList(sw) \ |
| 117 |
UxGET_string(sw,UxP_ListRD_fontList,"fontList") |
| 118 |
#define UxPutFontList(sw,val) \ |
| 119 |
UxPUT_string(sw,UxP_ListRD_fontList,"fontList",val) |
| 120 |
#endif |
| 121 |
|
| 122 |
#ifndef UxGetDoubleClickInterval |
| 123 |
extern binptr UxP_ListRD_doubleClickInterval; |
| 124 |
#define UxGetDoubleClickInterval(sw) \ |
| 125 |
UxGET_int(sw,UxP_ListRD_doubleClickInterval,"doubleClickInterval") |
| 126 |
#define UxPutDoubleClickInterval(sw,val) \ |
| 127 |
UxPUT_int(sw,UxP_ListRD_doubleClickInterval,"doubleClickInterval",val) |
| 128 |
#endif |
| 129 |
|
| 130 |
#ifndef UxGetAutomaticSelection |
| 131 |
extern binptr UxP_ListRD_automaticSelection; |
| 132 |
#define UxGetAutomaticSelection(sw) \ |
| 133 |
UxGET_string(sw,UxP_ListRD_automaticSelection,"automaticSelection") |
| 134 |
#define UxPutAutomaticSelection(sw,val) \ |
| 135 |
UxPUT_string(sw,UxP_ListRD_automaticSelection,"automaticSelection",val) |
| 136 |
#endif |
| 137 |
|
| 138 |
extern Class_t UxC_list; |
| 139 |
#define UxCreateList(name,parent) \ |
| 140 |
UxCreateSwidget(UxC_list,name,parent) |
| 141 |
#else |
| 142 |
#define UxCreateList(name,parent) \ |
| 143 |
UxCreateSwidget(name,xmListWidgetClass,parent) |
| 144 |
#endif |
| 145 |
#endif |