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