Use C++ linker
[oweals/cde.git] / cde / programs / dtcreate / ca_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: ca_aux.h /main/5 1995/11/01 16:10:18 rswiston $ */
24 /***************************************************************************/
25 /*                                                                         */
26 /*  Header file for ca_aux.c                                               */
27 /*                                                                         */
28 /***************************************************************************/
29 #ifndef _CA_AUX_H_INCLUDED
30 #define _CA_AUX_H_INCLUDED
31
32 #include "UxXt.h"
33
34 #if defined(USL) || defined(__uxp__)
35 #if !defined(_DIRENT_H)
36 #include <dirent.h>
37 #endif
38 #if !defined(_DtIcon_h_)
39 #include <Dt/Icon.h> 
40 #endif 
41 #endif
42
43 /***************************************************************************/
44 /*                                                                         */
45 /*  Constants                                                              */
46 /*                                                                         */
47 /***************************************************************************/
48 #define EQUAL      0
49 #define NOT_EQUAL  1
50
51 /***************************************************************************/
52 /*                                                                         */
53 /*  Macros                                                                 */
54 /*                                                                         */
55 /***************************************************************************/
56
57 /***************************************************************************/
58 /*                                                                         */
59 /*  Function Declarations                                                  */
60 /*                                                                         */
61 /***************************************************************************/
62
63 void readCAFromGUI (struct _ActionData *ca_struct);
64 void getCAactionName (struct _ActionData *ca_struct);
65 void getCAdblClkCmd (struct _ActionData *ca_struct);
66 void getCAactionHelpText (struct _ActionData *ca_struct);
67 void getCAactionOpensText (struct _ActionData *ca_struct);
68 void getCAwindowType (struct _ActionData *ca_struct);
69 void writeCAToGUI (struct _ActionData *ca_struct);
70
71 void putCAactionName (struct _ActionData *ca_struct);
72 void putCAdblClkCmd (struct _ActionData *ca_struct);
73 void putCAfileTypes (struct _ActionData *ca_struct);
74 void putCAactionOpensText (struct _ActionData *ca_struct);
75 void putCAwindowType (struct _ActionData *ca_struct);
76 void putCAactionHelpText (struct _ActionData *ca_struct);
77 void putCAactionIcons (struct _ActionData *ca_struct);
78 void putCAdropFiletypes (ActionData *pAD);
79
80 void set_ca_dialog_height (void);
81 Widget get_selected_action_icon (void);
82 Boolean CreateActionAppShellCheckFields(void);
83 void FreeAndClearAD(ActionData *pAD);
84 void clear_CreateActionAppShell_fields(void);
85 Boolean compareAD(ActionData *pAD1, ActionData *pAD2);
86 ActionData *copyAD(ActionData *pAD);
87 void FreeResources (void);
88
89
90 /***************************************************************************/
91 /*                                                                         */
92 /*      Callbacks for Create Action 'File' menu                            */
93 /*                                                                         */
94 /***************************************************************************/
95
96 void activateCB_FileNew (Widget wid, XtPointer cdata,
97                          XtPointer cbstruct);
98 void activateCB_FileOpen (Widget wid, XtPointer cdata,
99                          XtPointer cbstruct);
100 void activateCB_FileQuit (Widget wid, XtPointer cdata,
101                          XtPointer cbstruct);
102
103
104 /***************************************************************************/
105 /*                                                                         */
106 /*      Callbacks for Create Action 'Options' menu                         */
107 /*                                                                         */
108 /***************************************************************************/
109
110 void activateCB_ExpertOption (Widget wid, XtPointer client_data, XtPointer *cbs);
111 void valueChangedCB_ColorMonoOption (Widget, XtPointer,
112                               XmToggleButtonCallbackStruct *);
113 void createCB_ColorMonoOption (Widget);
114
115
116 /***************************************************************************/
117 /*                                                                         */
118 /*      Callbacks for Create Action Panel Buttons                          */
119 /*                                                                         */
120 /***************************************************************************/
121
122 void activateCB_action_icon (Widget wid, XtPointer client_data, 
123                              DtIconCallbackStruct *cbs);
124 void activateCB_add_filetype (Widget wid, XtPointer client_data,
125                               XmPushButtonCallbackStruct *cbs);
126 void activateCB_edit_filetype (Widget wid, XtPointer client_data,
127                                XmPushButtonCallbackStruct *cbs);
128
129
130 #endif /* _CA_AUX_H_INCLUDED */