bb76645afdb2d7dd54def64710b0345c4f541597
[oweals/cde.git] / cde / programs / dtcreate / AddFiletype.h
1 /* $XConsortium: AddFiletype.h /main/5 1995/11/01 16:05:05 rswiston $ */
2 /*******************************************************************************
3        AddFiletype.h
4        This header file is included by AddFiletype.c
5
6 *******************************************************************************/
7
8 #ifndef _ADDFILETYPE_H_INCLUDED
9 #define _ADDFILETYPE_H_INCLUDED
10
11 #include <stdio.h>
12 #include <Xm/Xm.h>
13 #include <Xm/MwmUtil.h>
14 #include <Xm/DialogS.h>
15 #include <Xm/MenuShell.h>
16
17 #include <Xm/Separator.h>
18 #include <Xm/Text.h>
19 #include <Xm/ScrolledW.h>
20 #include <Xm/PushB.h>
21 #include <Xm/Form.h>
22 #include <Xm/Text.h>
23 #include <Xm/PushBG.h>
24 #include <Xm/TextF.h>
25 #include <Xm/Label.h>
26 #include <Xm/Form.h>
27
28 #include "UxXt.h"
29
30 /*******************************************************************************
31        The definition of the context structure:
32        If you create multiple copies of your interface, the context
33        structure ensures that your callbacks use the variables for the
34        correct copy.
35
36        For each swidget in the interface, each argument to the Interface
37        function, and each variable in the Interface Specific section of the
38        Declarations Editor, there is an entry in the context structure.
39        and a #define.  The #define makes the variable name refer to the
40        corresponding entry in the context structure.
41 *******************************************************************************/
42
43 typedef struct
44 {
45         Widget  UxAddFiletype;
46         Widget  UxAF_FiletypeFamilyNameLabel;
47         Widget  UxAF_OkButton;
48         Widget  UxAF_ApplyButton;
49         Widget  UxAF_CancelButton;
50         Widget  UxAF_HelpButton;
51         Widget  UxAF_IdCharacteristicsText;
52         Widget  UxAF_FiletypeIconHelpLabel;
53         Widget  UxAF_IdCharacteristicsEdit;
54         Widget  UxAF_FiletypePrintCmdLabel;
55         Widget  UxAF_OpenFiletypeCmdLabel;
56         Widget  UxAF_CommandsLabel;
57         Widget  UxAF_FiletypeIconForm;
58         Widget  UxAF_MED_IconGadget;
59         Widget  UxAF_TINY_IconGadget;
60         Widget  UxAF_FiletypeIconsEditButton;
61         Widget  UxAF_FiletypeIconFindSetButton;
62         Widget  UxAF_FiletypeIconsBoxLabel;
63         Widget  UxAF_FiletypeHelpScrolledWindow;
64         Widget  UxAF_separator2;
65         Widget  UxAF_separator1;
66         Widget  UxAF_IdCharacteristicsLabel;
67         swidget UxUxParent;
68 } _UxCAddFiletype;
69
70 #ifdef CONTEXT_MACRO_ACCESS
71 static _UxCAddFiletype         *UxAddFiletypeContext;
72 #define AddFiletype             UxAddFiletypeContext->UxAddFiletype
73 #define AF_FiletypeFamilyNameLabel UxAddFiletypeContext->UxAF_FiletypeFamilyNameLabel
74 #define AF_OkButton             UxAddFiletypeContext->UxAF_OkButton
75 #define AF_ApplyButton          UxAddFiletypeContext->UxAF_ApplyButton
76 #define AF_CancelButton         UxAddFiletypeContext->UxAF_CancelButton
77 #define AF_HelpButton           UxAddFiletypeContext->UxAF_HelpButton
78 /*#define AF_IdCharacteristicsText UxAddFiletypeContext->UxAF_IdCharacteristicsText*/
79 #define AF_FiletypeIconHelpLabel UxAddFiletypeContext->UxAF_FiletypeIconHelpLabel
80 /*#define AF_IdCharacteristicsEdit UxAddFiletypeContext->UxAF_IdCharacteristicsEdit*/
81 #define AF_FiletypePrintCmdLabel UxAddFiletypeContext->UxAF_FiletypePrintCmdLabel
82 #define AF_OpenFiletypeCmdLabel UxAddFiletypeContext->UxAF_OpenFiletypeCmdLabel
83 #define AF_CommandsLabel        UxAddFiletypeContext->UxAF_CommandsLabel
84 #define AF_FiletypeIconForm     UxAddFiletypeContext->UxAF_FiletypeIconForm
85 /*
86 #define AF_MED_IconGadget       UxAddFiletypeContext->UxAF_MED_IconGadget
87 #define AF_TINY_IconGadget      UxAddFiletypeContext->UxAF_TINY_IconGadget
88 */
89 #define AF_FiletypeIconsEditButton UxAddFiletypeContext->UxAF_FiletypeIconsEditButton
90 #define AF_FiletypeIconFindSetButton UxAddFiletypeContext->UxAF_FiletypeIconFindSetButton
91 #define AF_FiletypeIconsBoxLabel UxAddFiletypeContext->UxAF_FiletypeIconsBoxLabel
92 #define AF_FiletypeHelpScrolledWindow UxAddFiletypeContext->UxAF_FiletypeHelpScrolledWindow
93 #define AF_separator2           UxAddFiletypeContext->UxAF_separator2
94 #define AF_separator1           UxAddFiletypeContext->UxAF_separator1
95 #define AF_IdCharacteristicsLabel UxAddFiletypeContext->UxAF_IdCharacteristicsLabel
96 #define UxParent                UxAddFiletypeContext->UxUxParent
97
98 #endif /* CONTEXT_MACRO_ACCESS */
99
100 extern Widget   AF_FileTypeNameTextField;
101 extern Widget   AF_FiletypePrintCmdTextField;
102 extern Widget   AF_OpenCmdText;
103 extern Widget   AF_FiletypeHelpText;
104 extern Widget   AF_MED_IconGadget;
105 extern Widget   AF_TINY_IconGadget;
106
107 /*******************************************************************************
108        Declarations of global functions.
109 *******************************************************************************/
110
111
112 void    activateCB_edit_id_characteristics (
113                            Widget filesel, 
114                            XtPointer cdata,
115                            XmFileSelectionBoxCallbackStruct *cbstruct);
116 Widget  create_AddFiletype(swidget _UxUxParent);
117
118
119
120 #endif  /* _ADDFILETYPE_H_INCLUDED */
121