1 /* $XConsortium: CreateActionAppShell.h /main/4 1995/11/01 16:06:24 rswiston $ */
2 /******************************************************************************
5 This header file is included by CreateActionAppShell.c
7 *******************************************************************************/
9 #ifndef _CREATEACTIONAPPSHELL_H_INCLUDED
10 #define _CREATEACTIONAPPSHELL_H_INCLUDED
14 #include <Xm/MwmUtil.h>
15 #include <Xm/MenuShell.h>
20 #include <Xm/ToggleBG.h>
22 #include <Xm/ScrolledW.h>
24 #include <Xm/PushBG.h>
28 #include <Xm/CascadeB.h>
29 #include <Xm/ToggleB.h>
30 #include <Xm/Separator.h>
32 #include <Xm/RowColumn.h>
34 #include <X11/Shell.h>
36 /*******************************************************************************
37 The definition of the context structure:
38 If you create multiple copies of your interface, the context
39 structure ensures that your callbacks use the variables for the
42 For each swidget in the interface, each argument to the Interface
43 function, and each variable in the Interface Specific section of the
44 Declarations Editor, there is an entry in the context structure.
45 and a #define. The #define makes the variable name refer to the
46 corresponding entry in the context structure.
47 *******************************************************************************/
51 Widget UxCreateActionMainWindow;
53 Widget UxCA_MB_FileOption;
54 Widget UxCA_MB_FileNew;
55 Widget UxCA_MB_FileOpen;
56 Widget UxCA_MB_FileSave;
58 Widget UxCA_MB_FileExit;
59 Widget UxCA_MB_FileTop;
60 Widget UxCA_MB_HelpOption;
61 Widget UxCA_MB_HelpOverview;
62 Widget UxCA_MB_HelpTOC;
63 Widget UxCA_MB_HelpTasks;
64 Widget UxCA_MB_HelpReference;
65 Widget UxCA_MB_HelpUsing;
66 Widget UxCA_MB_HelpAbout;
67 Widget UxCA_MB_HelpTop;
68 Widget UxCA_MB_OptionsOption;
69 Widget UxCA_MB_OptionTop;
71 Widget UxCA_ActionNameLabel;
72 Widget UxCA_ActionIconLabel;
73 Widget UxCA_ActionIconForm;
74 Widget UxCA_EditIcon_button;
75 Widget UxCA_FindSet_button;
77 Widget UxCA_DblClkLabel;
78 Widget UxCA_HlpTxtLabel;
79 Widget UxCA_XprtOptionLabel;
81 Widget UxCA_ActionOpenLabel;
83 Widget UxCA_FiletypesLabel;
85 Widget UxCA_DroppableFiletypesLabel;
86 Widget UxCA_DroppableFiletypesRowColumn;
88 Widget UxCA_FiletypesAdd;
89 Widget UxCA_FiletypesDelete;
90 Widget UxCA_FiletypesEdit;
91 Widget UxCA_FiletypesWindow;
92 Widget UxCA_WindowTypeLabel;
94 } _UxCCreateActionAppShell;
96 #ifdef CONTEXT_MACRO_ACCESS
98 static _UxCCreateActionAppShell *UxCreateActionAppShellContext;
99 #define CreateActionMainWindow UxCreateActionAppShellContext->UxCreateActionMainWindow
100 #define CA_MenuBar UxCreateActionAppShellContext->UxCA_MenuBar
101 #define CA_MB_FileOption UxCreateActionAppShellContext->UxCA_MB_FileOption
102 #define CA_MB_FileNew UxCreateActionAppShellContext->UxCA_MB_FileNew
103 #define CA_MB_FileOpen UxCreateActionAppShellContext->UxCA_MB_FileOpen
104 #define CA_MB_FileSave UxCreateActionAppShellContext->UxCA_MB_FileSave
105 #define CA_MB_Sep UxCreateActionAppShellContext->UxCA_MB_Sep
106 #define CA_MB_FileExit UxCreateActionAppShellContext->UxCA_MB_FileExit
107 #define CA_MB_FileTop UxCreateActionAppShellContext->UxCA_MB_FileTop
108 #define CA_MB_HelpOption UxCreateActionAppShellContext->UxCA_MB_HelpOption
109 #define CA_MB_HelpOverview UxCreateActionAppShellContext->UxCA_MB_HelpOverview
110 #define CA_MB_HelpTOC UxCreateActionAppShellContext->UxCA_MB_HelpTOC
111 #define CA_MB_HelpTasks UxCreateActionAppShellContext->UxCA_MB_HelpTasks
112 #define CA_MB_HelpReference UxCreateActionAppShellContext->UxCA_MB_HelpReference
113 #define CA_MB_HelpUsing UxCreateActionAppShellContext->UxCA_MB_HelpUsing
114 #define CA_MB_HelpAbout UxCreateActionAppShellContext->UxCA_MB_HelpAbout
115 #define CA_MB_HelpTop UxCreateActionAppShellContext->UxCA_MB_HelpTop
116 #define CA_MB_OptionsOption UxCreateActionAppShellContext->UxCA_MB_OptionsOption
117 #define CA_MB_OptionTop UxCreateActionAppShellContext->UxCA_MB_OptionTop
118 #define CA_Form UxCreateActionAppShellContext->UxCA_Form
119 #define CA_ActionNameLabel UxCreateActionAppShellContext->UxCA_ActionNameLabel
120 #define CA_ActionIconLabel UxCreateActionAppShellContext->UxCA_ActionIconLabel
121 #define CA_ActionIconForm UxCreateActionAppShellContext->UxCA_ActionIconForm
122 #define CA_EditIcon_button UxCreateActionAppShellContext->UxCA_EditIcon_button
123 #define CA_FindSet_button UxCreateActionAppShellContext->UxCA_FindSet_button
124 #define separator1 UxCreateActionAppShellContext->Uxseparator1
125 #define CA_DblClkLabel UxCreateActionAppShellContext->UxCA_DblClkLabel
126 #define CA_HlpTxtLabel UxCreateActionAppShellContext->UxCA_HlpTxtLabel
127 #define CA_XprtOptionLabel UxCreateActionAppShellContext->UxCA_XprtOptionLabel
128 #define CA_XprtSep2 UxCreateActionAppShellContext->UxCA_XprtSep2
129 #define CA_ActionOpenLabel UxCreateActionAppShellContext->UxCA_ActionOpenLabel
130 #define CA_XprtSep1 UxCreateActionAppShellContext->UxCA_XprtSep1
131 #define CA_FiletypesLabel UxCreateActionAppShellContext->UxCA_FiletypesLabel
132 #define form1 UxCreateActionAppShellContext->Uxform1
133 #define CA_DroppableFiletypesLabel UxCreateActionAppShellContext->UxCA_DroppableFiletypesLabel
134 #define CA_DroppableFiletypesRowColumn UxCreateActionAppShellContext->UxCA_DroppableFiletypesRowColumn
135 #define rowColumn1 UxCreateActionAppShellContext->UxrowColumn1
136 #define CA_FiletypesAdd UxCreateActionAppShellContext->UxCA_FiletypesAdd
137 #define CA_FiletypesDelete UxCreateActionAppShellContext->UxCA_FiletypesDelete
138 #define CA_FiletypesEdit UxCreateActionAppShellContext->UxCA_FiletypesEdit
139 #define CA_FiletypesWindow UxCreateActionAppShellContext->UxCA_FiletypesWindow
140 #define CA_WindowTypeLabel UxCreateActionAppShellContext->UxCA_WindowTypeLabel
141 #define UxParent UxCreateActionAppShellContext->UxUxParent
143 #endif /* CONTEXT_MACRO_ACCESS */
145 /***************************************************************************/
147 /* Swidget Macro Definitions */
149 /***************************************************************************/
151 #define CREATE_ACTION_SWID (CreateActionAppShell)
152 #define ACTION_NAME_SWID (CA_ActionNameTextField)
153 #define DBL_CLK_CMND_SWID (CA_DblClkText)
154 #define ACTION_HELP_TXT_SWID (CA_HelpText)
155 #define HELP_TXT_WINDOW_SWID (CA_HelpTextWindow)
156 #define FILETYPES_FOR_ACTION_SWID (CA_FiletypesList)
157 #define ACTION_OPENS_TEXT_SWID (CA_XprtActionOpenText)
158 #define XWIN_TOGGLE_SWID (CA_WinTypeX)
159 #define AUTOCLOSE_TOGGLE_SWID (CA_WinTypeAutoClose)
160 #define MANUALCLOSE_TOGGLE_SWID (CA_WinTypeManualClose)
161 #define LRG_ICON_BUTTON_SWID (CA_LRG_IconButton)
162 #define MED_ICON_BUTTON_SWID (CA_MED_IconButton)
163 #define SML_ICON_BUTTON_SWID (CA_SML_IconButton)
164 #define TINY_ICON_BUTTON_SWID (CA_TINY_IconButton)
165 #define LRG_ICON_GADGET_SWID (CA_LRG_IconGadget)
166 #define MED_ICON_GADGET_SWID (CA_MED_IconGadget)
167 #define SML_ICON_GADGET_SWID (CA_SML_IconGadget)
168 #define TINY_ICON_GADGET_SWID (CA_TINY_IconGadget)
169 #define XPRT_OPTION_FORM_SWID (XprtOptionFrom)
170 #define EXPERT_OPTIONS_TOGGLE_BUTTON_SWID (ExpertOption)
171 #define OPEN_FILE_SWID (OpenFile)
172 #define FILE_CHARACTERISTICS_SWID (FileCharacteristics)
173 #define WINDOW_TYPE_SWID (CA_WindowType)
174 #define COLOR_MONO_OPTION_SWID (ColorMonoOption)
177 /***************************************************************************/
179 /* Widget Macro Definitions */
181 /***************************************************************************/
183 #define CREATE_ACTION (UxGetWidget(CREATE_ACTION_SWID))
184 #define ACTION_NAME (UxGetWidget(ACTION_NAME_SWID))
185 #define DBL_CLK_CMND (UxGetWidget(DBL_CLK_CMND_SWID))
186 #define ACTION_HELP_TXT (UxGetWidget(ACTION_HELP_TXT_SWID))
187 #define HELP_TXT_WINDOW (UxGetWidget(HELP_TXT_WINDOW_SWID))
188 #define FILETYPES_FOR_ACTION (UxGetWidget(FILETYPES_FOR_ACTION_SWID))
189 #define ACTION_OPENS_TEXT (UxGetWidget(ACTION_OPENS_TEXT_SWID))
190 #define XWIN_TOGGLE (UxGetWidget(XWIN_TOGGLE_SWID))
191 #define AUTOCLOSE_TOGGLE (UxGetWidget(AUTOCLOSE_TOGGLE_SWID))
192 #define MANUALCLOSE_TOGGLE (UxGetWidget(MANUALCLOSE_TOGGLE_SWID))
193 #define CA_LRG_ICON_BUTTON (UxGetWidget(LRG_ICON_BUTTON_SWID))
194 #define CA_MED_ICON_BUTTON (UxGetWidget(MED_ICON_BUTTON_SWID))
195 #define CA_SML_ICON_BUTTON (UxGetWidget(SML_ICON_BUTTON_SWID))
196 #define CA_TINY_ICON_BUTTON (UxGetWidget(TINY_ICON_BUTTON_SWID ))
197 #define CA_LRG_ICON_GADGET (UxGetWidget(LRG_ICON_GADGET_SWID))
198 #define CA_MED_ICON_GADGET (UxGetWidget(MED_ICON_GADGET_SWID))
199 #define CA_SML_ICON_GADGET (UxGetWidget(SML_ICON_GADGET_SWID))
200 #define CA_TINY_ICON_GADGET (UxGetWidget(TINY_ICON_GADGET_SWID ))
201 #define EXPERT_OPTIONS_TOGGLE_BUTTON (UxGetWidget(EXPERT_OPTIONS_TOGGLE_BUTTON_SWID))
202 #define XPRT_OPTION_FORM (UxGetWidget(XPRT_OPTION_FORM_SWID))
203 #define CA_OPEN_FILE (UxGetWidget(OPEN_FILE_SWID))
204 #define FILE_CHARACTERISTICS (UxGetWidget(FILE_CHARACTERISTICS_SWID))
205 #define WINDOW_TYPE (UxGetWidget(WINDOW_TYPE_SWID))
206 #define COLOR_MONO_OPTION (UxGetWidget(COLOR_MONO_OPTION_SWID))
208 /***************************************************************************/
210 /* Structure Access Macros */
212 /***************************************************************************/
214 #define CA_ActionName(ad_struct) (((ActionData *)(ad_struct))->pszName)
215 #define CA_DblClkAction(ad_struct) (((ActionData *)(ad_struct))->pszCmd)
216 #define CA_ActionHelpText(ad_struct) (((ActionData *)(ad_struct))->pszHelp)
217 #define CA_Filetypes(ad_struct) (((ActionData *)(ad_struct))->papFiletypes)
218 #define CA_FiletypesCount(ad_struct) (((ActionData *)(ad_struct))->cFiletypes)
219 #define CA_FiletypesForActionList(ad_struct,l) (((ActionData *)(ad_struct))[l]->pszName)
220 #define CA_ActionOpensText(ad_struct) (((ActionData *)(ad_struct))->pszPrompt)
221 #define CA_WindowTypeSetting(ad_struct) (((ActionData *)(ad_struct))->fsFlags)
222 #define CA_Icon(ad_struct) (((ActionData *)(ad_struct))->pszIcon)
223 #define CA_XprtMode(ad_struct) (((ActionData *)(ad_struct))->)
225 /*****************************************************************************/
226 /* Function Declarations */
227 /*****************************************************************************/
230 Widget create_applicationShell1(swidget);
231 void activateCB_CA_MB_FileSave(Widget, XtPointer, XtPointer);
234 #endif /* _CREATEACTIONAPPSHELL_H_INCLUDED */