fontaliases: add more robust font.aliases file.
[oweals/cde.git] / cde / programs / dtcreate / af_aux.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
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)
10  * any later version.
11  *
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
16  * details.
17  *
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
22  */
23 /* $XConsortium: af_aux.h /main/5 1995/11/01 16:09:45 rswiston $ */
24 /*****************************************************************************/
25 /*                                                                           */
26 /*  af_aux.h                                                                 */
27 /*                                                                           */
28 /*  Header file for af_aux.c                                                 */
29 /*                                                                           */
30 /*****************************************************************************/
31
32 #ifndef _AF_AUX_H_INCLUDED
33 #define _AF_AUX_H_INCLUDED
34
35 #include "UxXt.h"
36
37 #ifndef STORAGECLASS
38 #ifdef  NOEXTERN
39 #define STORAGECLASS
40 #else
41 #define STORAGECLASS extern
42 #endif
43 #endif
44
45 /*****************************************************************************/
46 /*                                                                           */
47 /*  Constants                                                                */
48 /*                                                                           */
49 /*****************************************************************************/
50
51 /*****************************************************************************/
52 /*                                                                           */
53 /*  Swidget Macro Definitions                                                */
54 /*                                                                           */
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)
59
60 /*****************************************************************************/
61 /*                                                                           */
62 /*  Widget Macro Definitions                                                 */
63 /*                                                                           */
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))
68
69 /*****************************************************************************/
70 /*                                                                           */
71 /*  Function Declarations                                                    */
72 /*                                                                           */
73 /*****************************************************************************/
74
75
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 *);
80
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 *);
88
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);
95
96
97 #endif /* _AF_AUX_H_INCLUDED */