1 /* $XConsortium: AddFiletype.h /main/5 1995/11/01 16:05:05 rswiston $ */
2 /*******************************************************************************
4 This header file is included by AddFiletype.c
6 *******************************************************************************/
8 #ifndef _ADDFILETYPE_H_INCLUDED
9 #define _ADDFILETYPE_H_INCLUDED
13 #include <Xm/MwmUtil.h>
14 #include <Xm/DialogS.h>
15 #include <Xm/MenuShell.h>
17 #include <Xm/Separator.h>
19 #include <Xm/ScrolledW.h>
23 #include <Xm/PushBG.h>
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
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 *******************************************************************************/
46 Widget UxAF_FiletypeFamilyNameLabel;
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;
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
86 #define AF_MED_IconGadget UxAddFiletypeContext->UxAF_MED_IconGadget
87 #define AF_TINY_IconGadget UxAddFiletypeContext->UxAF_TINY_IconGadget
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
98 #endif /* CONTEXT_MACRO_ACCESS */
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;
107 /*******************************************************************************
108 Declarations of global functions.
109 *******************************************************************************/
112 void activateCB_edit_id_characteristics (
115 XmFileSelectionBoxCallbackStruct *cbstruct);
116 Widget create_AddFiletype(swidget _UxUxParent);
120 #endif /* _ADDFILETYPE_H_INCLUDED */