File indexing completed on 2025-01-18 10:15:28
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023 #ifndef _XmSelectionBoxP_h
0024 #define _XmSelectionBoxP_h
0025
0026 #include <Xm/BulletinBP.h>
0027 #include <Xm/SelectioB.h>
0028
0029 #ifdef __cplusplus
0030 extern "C" {
0031 #endif
0032
0033
0034
0035 #define XmSB_MAX_WIDGETS_VERT 8
0036
0037
0038 typedef struct _XmSelectionBoxConstraintPart
0039 {
0040 char unused;
0041 } XmSelectionBoxConstraintPart, * XmSelectionBoxConstraint;
0042
0043
0044
0045 typedef struct
0046 {
0047 XtCallbackProc list_callback ;
0048 XtPointer extension;
0049 } XmSelectionBoxClassPart;
0050
0051
0052
0053
0054 typedef struct _XmSelectionBoxClassRec
0055 {
0056 CoreClassPart core_class;
0057 CompositeClassPart composite_class;
0058 ConstraintClassPart constraint_class;
0059 XmManagerClassPart manager_class;
0060 XmBulletinBoardClassPart bulletin_board_class;
0061 XmSelectionBoxClassPart selection_box_class;
0062 } XmSelectionBoxClassRec;
0063
0064 externalref XmSelectionBoxClassRec xmSelectionBoxClassRec;
0065
0066
0067
0068
0069 typedef struct
0070 {
0071 Widget list_label;
0072 XmString list_label_string;
0073
0074 Widget list;
0075 XmString *list_items;
0076 int list_item_count;
0077 int list_visible_item_count;
0078 int list_selected_item_position;
0079
0080 Widget selection_label;
0081 XmString selection_label_string;
0082
0083 Widget text;
0084 XmString text_string;
0085 short text_columns;
0086
0087 Widget work_area;
0088
0089 Widget separator;
0090
0091 Widget ok_button;
0092 XmString ok_label_string;
0093
0094 Widget apply_button;
0095 XmString apply_label_string;
0096
0097 XmString cancel_label_string;
0098
0099 Widget help_button;
0100 XmString help_label_string;
0101
0102 XtCallbackList ok_callback;
0103 XtCallbackList apply_callback;
0104 XtCallbackList cancel_callback;
0105 XtCallbackList no_match_callback;
0106
0107 XtAccelerators text_accelerators;
0108
0109 Boolean must_match;
0110 Boolean adding_sel_widgets;
0111 Boolean minimize_buttons;
0112
0113 unsigned char dialog_type;
0114 unsigned char child_placement;
0115 } XmSelectionBoxPart;
0116
0117
0118
0119
0120
0121
0122
0123
0124 typedef struct _XmSelectionBoxRec
0125 {
0126 CorePart core;
0127 CompositePart composite;
0128 ConstraintPart constraint;
0129 XmManagerPart manager;
0130 XmBulletinBoardPart bulletin_board;
0131 XmSelectionBoxPart selection_box;
0132 } XmSelectionBoxRec;
0133
0134
0135
0136
0137 #define SB_ListLabel(w) \
0138 (((XmSelectionBoxWidget) (w))->selection_box.list_label)
0139 #define SB_List(w) \
0140 (((XmSelectionBoxWidget) (w))->selection_box.list)
0141 #define SB_SelectionLabel(w) \
0142 (((XmSelectionBoxWidget) (w))->selection_box.selection_label)
0143 #define SB_Text(w) \
0144 (((XmSelectionBoxWidget) (w))->selection_box.text)
0145 #define SB_WorkArea(w) \
0146 (((XmSelectionBoxWidget) (w))->selection_box.work_area)
0147 #define SB_Separator(w) \
0148 (((XmSelectionBoxWidget) (w))->selection_box.separator)
0149 #define SB_OkButton(w) \
0150 (((XmSelectionBoxWidget) (w))->selection_box.ok_button)
0151 #define SB_ApplyButton(w) \
0152 (((XmSelectionBoxWidget) (w))->selection_box.apply_button)
0153 #define SB_CancelButton(w) \
0154 (((XmSelectionBoxWidget) (w))->bulletin_board.cancel_button)
0155 #define SB_HelpButton(w) \
0156 (((XmSelectionBoxWidget) (w))->selection_box.help_button)
0157 #define SB_DefaultButton(w) \
0158 (((XmSelectionBoxWidget) (w))->bulletin_board.default_button)
0159 #define SB_MarginHeight(w) \
0160 (((XmSelectionBoxWidget) (w))->bulletin_board.margin_height)
0161 #define SB_MarginWidth(w) \
0162 (((XmSelectionBoxWidget) (w))->bulletin_board.margin_width)
0163 #define SB_ButtonFontList(w) \
0164 (((XmSelectionBoxWidget) (w))->bulletin_board.button_font_list)
0165 #define SB_LabelFontList(w) \
0166 (((XmSelectionBoxWidget) (w))->bulletin_board.label_font_list)
0167 #define SB_TextFontList(w) \
0168 (((XmSelectionBoxWidget) (w))->bulletin_board.text_font_list)
0169 #define SB_StringDirection(w) \
0170 (XmDirectionToStringDirection\
0171 (((XmSelectionBoxWidget)(w))->manager.string_direction))
0172 #define SB_AddingSelWidgets(w) \
0173 (((XmSelectionBoxWidget) w)->selection_box.adding_sel_widgets)
0174 #define SB_TextAccelerators(w) \
0175 (((XmSelectionBoxWidget) w)->selection_box.text_accelerators)
0176 #define SB_ListItemCount(w) \
0177 (((XmSelectionBoxWidget) w)->selection_box.list_item_count)
0178 #define SB_ListSelectedItemPosition(w) \
0179 (((XmSelectionBoxWidget) w)->selection_box.list_selected_item_position)
0180 #define SB_ListVisibleItemCount(w) \
0181 (((XmSelectionBoxWidget) w)->selection_box.list_visible_item_count)
0182 #define SB_TextColumns(w) \
0183 (((XmSelectionBoxWidget) w)->selection_box.text_columns)
0184 #define SB_MinimizeButtons(w) \
0185 (((XmSelectionBoxWidget) w)->selection_box.minimize_buttons)
0186 #define SB_MustMatch(w) \
0187 (((XmSelectionBoxWidget) w)->selection_box.must_match)
0188
0189
0190 #ifdef __cplusplus
0191 }
0192 #endif
0193
0194 #endif
0195