1 /* $XConsortium: icon_selection_dialog.h /main/4 1995/11/01 16:14:48 rswiston $ */
3 /*******************************************************************************
4 icon_selection_dialog.h
5 This header file is included by icon_selection_dialog.c
7 *******************************************************************************/
9 #ifndef _ICON_SELECTION_DIALOG_INCLUDED
10 #define _ICON_SELECTION_DIALOG_INCLUDED
15 #include <Xm/MwmUtil.h>
16 #include <Xm/DialogS.h>
17 #include <Xm/MenuShell.h>
21 #include <Xm/ScrolledW.h>
24 #include <Xm/SeparatoG.h>
29 /*******************************************************************************
30 The definition of the context structure:
31 If you create multiple copies of your interface, the context
32 structure ensures that your callbacks use the variables for the
35 For each swidget in the interface, each argument to the Interface
36 function, and each variable in the Interface Specific section of the
37 Declarations Editor, there is an entry in the context structure.
38 and a #define. The #define makes the variable name refer to the
39 corresponding entry in the context structure.
40 *******************************************************************************/
44 Widget Uxicon_selection_dialog;
45 Widget Uxbottom_button_form;
46 Widget Uxbottom_button1;
47 Widget Uxbottom_button2;
48 Widget Uxbottom_button3;
49 Widget Uxbottom_button4;
50 Widget UxseparatorGadget1;
51 Widget Uxicon_name_text_field;
52 Widget Uxicon_name_textfield_label;
53 Widget Uxfilter_textfield_label;
54 Widget Uxfilter_text_field;
55 Widget Uxdirectory_list_label;
56 Widget Uxicon_container_label;
57 Widget Uxtop_button_form;
61 Widget Uxdir_scrolled_list;
62 Widget Uxicon_scrolled_win;
63 Widget Uxicon_scrolled_container;
64 unsigned char *Uxcont_title;
66 unsigned char *Uxdialog_title;
67 unsigned char *Uxfilter_field_title;
68 int Uxuse_filter_field;
69 unsigned char *Uxfile_filter;
70 unsigned char *Uxdirectory_title;
71 unsigned char **Uxdirectories_list;
72 unsigned char *Uxcontainer_title;
73 int UxnumberOfTopButtons;
74 unsigned char *Uxtop_button_one_label;
75 void (*Uxtop_button_one_cb)();
76 unsigned char *Uxtop_button_two_label;
77 void (*Uxtop_button_two_cb)();
78 unsigned char *Uxtop_button_three_label;
79 void (*Uxtop_button_three_cb)();
80 int Uxuse_icon_name_field;
81 unsigned char *Uxname_field_title;
82 int UxnumberOfBottomButtons;
83 unsigned char *Uxbottom_button_one_label;
84 void (*Uxbottom_button_one_cb)();
85 unsigned char *Uxbottom_button_two_label;
86 void (*Uxbottom_button_two_cb)();
87 unsigned char *Uxbottom_button_three_label;
88 void (*Uxbottom_button_three_cb)();
89 unsigned char *Uxbottom_button_four_label;
90 void (*Uxbottom_button_four_cb)();
91 } _UxCicon_selection_dialog;
93 #ifdef CONTEXT_MACRO_ACCESS
94 static _UxCicon_selection_dialog *UxIcon_selection_dialogContext;
95 #define icon_selection_dialog UxIcon_selection_dialogContext->Uxicon_selection_dialog
96 #define bottom_button_form UxIcon_selection_dialogContext->Uxbottom_button_form
97 #define bottom_button1 UxIcon_selection_dialogContext->Uxbottom_button1
98 #define bottom_button2 UxIcon_selection_dialogContext->Uxbottom_button2
99 #define bottom_button3 UxIcon_selection_dialogContext->Uxbottom_button3
100 #define bottom_button4 UxIcon_selection_dialogContext->Uxbottom_button4
101 #define separatorGadget1 UxIcon_selection_dialogContext->UxseparatorGadget1
102 #define icon_name_text_field UxIcon_selection_dialogContext->Uxicon_name_text_field
103 #define icon_name_textfield_label UxIcon_selection_dialogContext->Uxicon_name_textfield_label
104 #define filter_textfield_label UxIcon_selection_dialogContext->Uxfilter_textfield_label
105 #define filter_text_field UxIcon_selection_dialogContext->Uxfilter_text_field
106 #define directory_list_label UxIcon_selection_dialogContext->Uxdirectory_list_label
107 #define icon_container_label UxIcon_selection_dialogContext->Uxicon_container_label
108 #define top_button_form UxIcon_selection_dialogContext->Uxtop_button_form
109 #define top_button1 UxIcon_selection_dialogContext->Uxtop_button1
110 #define top_button2 UxIcon_selection_dialogContext->Uxtop_button2
111 #define top_button3 UxIcon_selection_dialogContext->Uxtop_button3
112 #define dir_scrolled_list UxIcon_selection_dialogContext->Uxdir_scrolled_list
113 #define icon_scrolled_win UxIcon_selection_dialogContext->Uxicon_scrolled_win
114 #define icon_scrolled_container UxIcon_selection_dialogContext->Uxicon_scrolled_container
115 #define cont_title UxIcon_selection_dialogContext->Uxcont_title
116 #define UxParent UxIcon_selection_dialogContext->UxUxParent
117 #define dialog_title UxIcon_selection_dialogContext->Uxdialog_title
118 #define filter_field_title UxIcon_selection_dialogContext->Uxfilter_field_title
119 #define use_filter_field UxIcon_selection_dialogContext->Uxuse_filter_field
120 #define file_filter UxIcon_selection_dialogContext->Uxfile_filter
121 #define directory_title UxIcon_selection_dialogContext->Uxdirectory_title
122 #define directories_list UxIcon_selection_dialogContext->Uxdirectories_list
123 #define container_title UxIcon_selection_dialogContext->Uxcontainer_title
124 #define numberOfTopButtons UxIcon_selection_dialogContext->UxnumberOfTopButtons
125 #define top_button_one_label UxIcon_selection_dialogContext->Uxtop_button_one_label
126 #define top_button_one_cb UxIcon_selection_dialogContext->Uxtop_button_one_cb
127 #define top_button_two_label UxIcon_selection_dialogContext->Uxtop_button_two_label
128 #define top_button_two_cb UxIcon_selection_dialogContext->Uxtop_button_two_cb
129 #define top_button_three_label UxIcon_selection_dialogContext->Uxtop_button_three_label
130 #define top_button_three_cb UxIcon_selection_dialogContext->Uxtop_button_three_cb
131 #define use_icon_name_field UxIcon_selection_dialogContext->Uxuse_icon_name_field
132 #define name_field_title UxIcon_selection_dialogContext->Uxname_field_title
133 #define numberOfBottomButtons UxIcon_selection_dialogContext->UxnumberOfBottomButtons
134 #define bottom_button_one_label UxIcon_selection_dialogContext->Uxbottom_button_one_label
135 #define bottom_button_one_cb UxIcon_selection_dialogContext->Uxbottom_button_one_cb
136 #define bottom_button_two_label UxIcon_selection_dialogContext->Uxbottom_button_two_label
137 #define bottom_button_two_cb UxIcon_selection_dialogContext->Uxbottom_button_two_cb
138 #define bottom_button_three_label UxIcon_selection_dialogContext->Uxbottom_button_three_label
139 #define bottom_button_three_cb UxIcon_selection_dialogContext->Uxbottom_button_three_cb
140 #define bottom_button_four_label UxIcon_selection_dialogContext->Uxbottom_button_four_label
141 #define bottom_button_four_cb UxIcon_selection_dialogContext->Uxbottom_button_four_cb
143 #endif /* CONTEXT_MACRO_ACCESS */
145 /*******************************************************************************
146 Declarations of global functions.
147 *******************************************************************************/
148 Widget create_icon_selection_dialog(swidget,
176 #endif /* _ICON_SELECTION_DIALOG_INCLUDED */
178 /*******************************************************************************
180 *******************************************************************************/
182 #define dirent_struct dirent_t
184 #define dirent_struct dirent