Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:15:28

0001 /* 
0002  * Motif
0003  *
0004  * Copyright (c) 1987-2012, The Open Group. All rights reserved.
0005  *
0006  * These libraries and programs are free software; you can
0007  * redistribute them and/or modify them under the terms of the GNU
0008  * Lesser General Public License as published by the Free Software
0009  * Foundation; either version 2 of the License, or (at your option)
0010  * any later version.
0011  *
0012  * These libraries and programs are distributed in the hope that
0013  * they will be useful, but WITHOUT ANY WARRANTY; without even the
0014  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
0015  * PURPOSE. See the GNU Lesser General Public License for more
0016  * details.
0017  *
0018  * You should have received a copy of the GNU Lesser General Public
0019  * License along with these librararies and programs; if not, write
0020  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
0021  * Floor, Boston, MA 02110-1301 USA
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 /* Defines for use in allocation geometry matrix. */
0034 
0035 #define XmSB_MAX_WIDGETS_VERT   8
0036 
0037 /* Constraint part record for SelectionBox widget */
0038 typedef struct _XmSelectionBoxConstraintPart
0039 {
0040    char unused;
0041 } XmSelectionBoxConstraintPart, * XmSelectionBoxConstraint;
0042 
0043 /*  New fields for the SelectionBox widget class record  */
0044 
0045 typedef struct
0046 {
0047   XtCallbackProc  list_callback ;
0048   XtPointer   extension;      /* Pointer to extension record */
0049 } XmSelectionBoxClassPart;
0050 
0051 
0052 /* Full class record declaration */
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 /* New fields for the SelectionBox widget record */
0068 
0069 typedef struct
0070 {
0071   Widget    list_label;     /*  list Label  */
0072   XmString  list_label_string;
0073 
0074   Widget    list;           /*  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;    /*  selection Label  */
0081   XmString  selection_label_string;
0082 
0083   Widget    text;           /*  Text  */
0084   XmString  text_string;
0085   short     text_columns;
0086 
0087   Widget    work_area;      /*  other widget  */
0088   
0089   Widget    separator;      /*  separator  */
0090 
0091   Widget    ok_button;      /*  enter button  */
0092   XmString  ok_label_string;
0093 
0094   Widget    apply_button;       /*  apply button  */
0095   XmString  apply_label_string;
0096 
0097   XmString  cancel_label_string;    /*  cancel button label  */
0098   
0099   Widget    help_button;        /*  help button  */
0100   XmString  help_label_string;
0101 
0102   XtCallbackList    ok_callback;        /*  callbacks  */
0103   XtCallbackList    apply_callback;
0104   XtCallbackList    cancel_callback;
0105   XtCallbackList    no_match_callback;
0106 
0107   XtAccelerators    text_accelerators;
0108 
0109   Boolean   must_match;     /*  flags  */
0110   Boolean   adding_sel_widgets;
0111   Boolean   minimize_buttons;
0112 
0113   unsigned char dialog_type;        /*  prompt or selection  */
0114   unsigned char child_placement;
0115 } XmSelectionBoxPart;
0116 
0117 
0118 /****************************************************************
0119  *
0120  * Full instance record declaration
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 /*  Access Macros  */
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 }  /* Close scope of 'extern "C"' declaration which encloses file. */
0192 #endif
0193 
0194 #endif /* _XmSelectionBoxP_h */
0195 /* DON'T ADD ANYTHING AFTER THIS #endif */