2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these libraries and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
23 /* $XConsortium: icon_selection_dialog.h /main/4 1995/11/01 16:14:48 rswiston $ */
25 /*******************************************************************************
26 icon_selection_dialog.h
27 This header file is included by icon_selection_dialog.c
29 *******************************************************************************/
31 #ifndef _ICON_SELECTION_DIALOG_INCLUDED
32 #define _ICON_SELECTION_DIALOG_INCLUDED
37 #include <Xm/MwmUtil.h>
38 #include <Xm/DialogS.h>
39 #include <Xm/MenuShell.h>
43 #include <Xm/ScrolledW.h>
46 #include <Xm/SeparatoG.h>
51 /*******************************************************************************
52 The definition of the context structure:
53 If you create multiple copies of your interface, the context
54 structure ensures that your callbacks use the variables for the
57 For each swidget in the interface, each argument to the Interface
58 function, and each variable in the Interface Specific section of the
59 Declarations Editor, there is an entry in the context structure.
60 and a #define. The #define makes the variable name refer to the
61 corresponding entry in the context structure.
62 *******************************************************************************/
66 Widget Uxicon_selection_dialog;
67 Widget Uxbottom_button_form;
68 Widget Uxbottom_button1;
69 Widget Uxbottom_button2;
70 Widget Uxbottom_button3;
71 Widget Uxbottom_button4;
72 Widget UxseparatorGadget1;
73 Widget Uxicon_name_text_field;
74 Widget Uxicon_name_textfield_label;
75 Widget Uxfilter_textfield_label;
76 Widget Uxfilter_text_field;
77 Widget Uxdirectory_list_label;
78 Widget Uxicon_container_label;
79 Widget Uxtop_button_form;
83 Widget Uxdir_scrolled_list;
84 Widget Uxicon_scrolled_win;
85 Widget Uxicon_scrolled_container;
86 unsigned char *Uxcont_title;
88 unsigned char *Uxdialog_title;
89 unsigned char *Uxfilter_field_title;
90 int Uxuse_filter_field;
91 unsigned char *Uxfile_filter;
92 unsigned char *Uxdirectory_title;
93 unsigned char **Uxdirectories_list;
94 unsigned char *Uxcontainer_title;
95 int UxnumberOfTopButtons;
96 unsigned char *Uxtop_button_one_label;
97 void (*Uxtop_button_one_cb)();
98 unsigned char *Uxtop_button_two_label;
99 void (*Uxtop_button_two_cb)();
100 unsigned char *Uxtop_button_three_label;
101 void (*Uxtop_button_three_cb)();
102 int Uxuse_icon_name_field;
103 unsigned char *Uxname_field_title;
104 int UxnumberOfBottomButtons;
105 unsigned char *Uxbottom_button_one_label;
106 void (*Uxbottom_button_one_cb)();
107 unsigned char *Uxbottom_button_two_label;
108 void (*Uxbottom_button_two_cb)();
109 unsigned char *Uxbottom_button_three_label;
110 void (*Uxbottom_button_three_cb)();
111 unsigned char *Uxbottom_button_four_label;
112 void (*Uxbottom_button_four_cb)();
113 } _UxCicon_selection_dialog;
115 #ifdef CONTEXT_MACRO_ACCESS
116 static _UxCicon_selection_dialog *UxIcon_selection_dialogContext;
117 #define icon_selection_dialog UxIcon_selection_dialogContext->Uxicon_selection_dialog
118 #define bottom_button_form UxIcon_selection_dialogContext->Uxbottom_button_form
119 #define bottom_button1 UxIcon_selection_dialogContext->Uxbottom_button1
120 #define bottom_button2 UxIcon_selection_dialogContext->Uxbottom_button2
121 #define bottom_button3 UxIcon_selection_dialogContext->Uxbottom_button3
122 #define bottom_button4 UxIcon_selection_dialogContext->Uxbottom_button4
123 #define separatorGadget1 UxIcon_selection_dialogContext->UxseparatorGadget1
124 #define icon_name_text_field UxIcon_selection_dialogContext->Uxicon_name_text_field
125 #define icon_name_textfield_label UxIcon_selection_dialogContext->Uxicon_name_textfield_label
126 #define filter_textfield_label UxIcon_selection_dialogContext->Uxfilter_textfield_label
127 #define filter_text_field UxIcon_selection_dialogContext->Uxfilter_text_field
128 #define directory_list_label UxIcon_selection_dialogContext->Uxdirectory_list_label
129 #define icon_container_label UxIcon_selection_dialogContext->Uxicon_container_label
130 #define top_button_form UxIcon_selection_dialogContext->Uxtop_button_form
131 #define top_button1 UxIcon_selection_dialogContext->Uxtop_button1
132 #define top_button2 UxIcon_selection_dialogContext->Uxtop_button2
133 #define top_button3 UxIcon_selection_dialogContext->Uxtop_button3
134 #define dir_scrolled_list UxIcon_selection_dialogContext->Uxdir_scrolled_list
135 #define icon_scrolled_win UxIcon_selection_dialogContext->Uxicon_scrolled_win
136 #define icon_scrolled_container UxIcon_selection_dialogContext->Uxicon_scrolled_container
137 #define cont_title UxIcon_selection_dialogContext->Uxcont_title
138 #define UxParent UxIcon_selection_dialogContext->UxUxParent
139 #define dialog_title UxIcon_selection_dialogContext->Uxdialog_title
140 #define filter_field_title UxIcon_selection_dialogContext->Uxfilter_field_title
141 #define use_filter_field UxIcon_selection_dialogContext->Uxuse_filter_field
142 #define file_filter UxIcon_selection_dialogContext->Uxfile_filter
143 #define directory_title UxIcon_selection_dialogContext->Uxdirectory_title
144 #define directories_list UxIcon_selection_dialogContext->Uxdirectories_list
145 #define container_title UxIcon_selection_dialogContext->Uxcontainer_title
146 #define numberOfTopButtons UxIcon_selection_dialogContext->UxnumberOfTopButtons
147 #define top_button_one_label UxIcon_selection_dialogContext->Uxtop_button_one_label
148 #define top_button_one_cb UxIcon_selection_dialogContext->Uxtop_button_one_cb
149 #define top_button_two_label UxIcon_selection_dialogContext->Uxtop_button_two_label
150 #define top_button_two_cb UxIcon_selection_dialogContext->Uxtop_button_two_cb
151 #define top_button_three_label UxIcon_selection_dialogContext->Uxtop_button_three_label
152 #define top_button_three_cb UxIcon_selection_dialogContext->Uxtop_button_three_cb
153 #define use_icon_name_field UxIcon_selection_dialogContext->Uxuse_icon_name_field
154 #define name_field_title UxIcon_selection_dialogContext->Uxname_field_title
155 #define numberOfBottomButtons UxIcon_selection_dialogContext->UxnumberOfBottomButtons
156 #define bottom_button_one_label UxIcon_selection_dialogContext->Uxbottom_button_one_label
157 #define bottom_button_one_cb UxIcon_selection_dialogContext->Uxbottom_button_one_cb
158 #define bottom_button_two_label UxIcon_selection_dialogContext->Uxbottom_button_two_label
159 #define bottom_button_two_cb UxIcon_selection_dialogContext->Uxbottom_button_two_cb
160 #define bottom_button_three_label UxIcon_selection_dialogContext->Uxbottom_button_three_label
161 #define bottom_button_three_cb UxIcon_selection_dialogContext->Uxbottom_button_three_cb
162 #define bottom_button_four_label UxIcon_selection_dialogContext->Uxbottom_button_four_label
163 #define bottom_button_four_cb UxIcon_selection_dialogContext->Uxbottom_button_four_cb
165 #endif /* CONTEXT_MACRO_ACCESS */
167 /*******************************************************************************
168 Declarations of global functions.
169 *******************************************************************************/
170 Widget create_icon_selection_dialog(swidget,
198 #endif /* _ICON_SELECTION_DIALOG_INCLUDED */
200 /*******************************************************************************
202 *******************************************************************************/
204 #define dirent_struct dirent_t
206 #define dirent_struct dirent