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 librararies 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: af_aux.h /main/5 1995/11/01 16:09:45 rswiston $ */
24 /*****************************************************************************/
28 /* Header file for af_aux.c */
30 /*****************************************************************************/
32 #ifndef _AF_AUX_H_INCLUDED
33 #define _AF_AUX_H_INCLUDED
41 #define STORAGECLASS extern
45 /*****************************************************************************/
49 /*****************************************************************************/
51 /*****************************************************************************/
53 /* Swidget Macro Definitions */
55 /*****************************************************************************/
56 #define FILE_CHARACTERISTICS_SWID (FileCharacteristics)
57 #define FA_TINY_ICON_BUTTON_SWID (AF_TinyIconButton)
58 #define FA_MED_ICON_BUTTON_SWID (AF_MedIconButton)
60 /*****************************************************************************/
62 /* Widget Macro Definitions */
64 /*****************************************************************************/
65 #define FILE_CHARACTERISTICS (UxGetWidget(FILE_CHARACTERISTICS_SWID))
66 #define FA_TINY_ICON_BUTTON (UxGetWidget(FA_TINY_ICON_BUTTON_SWID))
67 #define FA_MED_ICON_BUTTON (UxGetWidget(FA_MED_ICON_BUTTON_SWID))
69 /*****************************************************************************/
71 /* Function Declarations */
73 /*****************************************************************************/
76 void load_filetype_icons (Widget, XtPointer, XmFileSelectionBoxCallbackStruct *);
77 void clear_filetype_icon (void);
78 Widget get_selected_filetype_icon (void);
79 void activateCB_filetype_icon (Widget, XtPointer, DtIconCallbackStruct *);
81 void readAFFromGUI (FiletypeData *);
82 void getAF_FiletypeName (FiletypeData *);
83 void getAF_IDChars (FiletypeData *);
84 void getAF_HelpText (FiletypeData *);
85 void getAF_Icons (FiletypeData *);
86 void getAF_OpenCmd (FiletypeData *);
87 void getAF_PrintCmd (FiletypeData *);
89 void init_AddFiletype (FiletypeData *);
90 void free_Filetypedata(FiletypeData *);
91 void clear_AddFiletype_dialog_fields(void);
92 void AddFiletypeToList();
93 void UpdateFiletypeDataArray();
94 Boolean AddFiletypeCheckFields(void);
97 #endif /* _AF_AUX_H_INCLUDED */