Fix Linux rpc problems with new glibc
[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 libraries 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(_DIRENT_H)
35 #include <dirent.h>
36 #endif
37 #if !defined(_DtIcon_h_)
38 #include <Dt/Icon.h> 
39 #endif 
40
41 /***************************************************************************/
42 /*                                                                         */
43 /*  Constants                                                              */
44 /*                                                                         */
45 /***************************************************************************/
46 #define EQUAL      0
47 #define NOT_EQUAL  1
48
49 /***************************************************************************/
50 /*                                                                         */
51 /*  Macros                                                                 */
52 /*                                                                         */
53 /***************************************************************************/
54
55 /***************************************************************************/
56 /*                                                                         */
57 /*  Function Declarations                                                  */
58 /*                                                                         */
59 /***************************************************************************/
60
61 void initAD( ActionData *pAD );
62 void readCAFromGUI (struct _ActionData *ca_struct);
63 void getCAactionName (struct _ActionData *ca_struct);
64 void getCAdblClkCmd (struct _ActionData *ca_struct);
65 void getCAactionHelpText (struct _ActionData *ca_struct);
66 void getCAactionOpensText (struct _ActionData *ca_struct);
67 void getCAwindowType (struct _ActionData *ca_struct);
68 void writeCAToGUI (struct _ActionData *ca_struct);
69
70 void putCAactionName (struct _ActionData *ca_struct);
71 void putCAdblClkCmd (struct _ActionData *ca_struct);
72 void putCAfileTypes (struct _ActionData *ca_struct);
73 void putCAactionOpensText (struct _ActionData *ca_struct);
74 void putCAwindowType (struct _ActionData *ca_struct);
75 void putCAactionHelpText (struct _ActionData *ca_struct);
76 void putCAactionIcons (struct _ActionData *ca_struct);
77 void putCAdropFiletypes (ActionData *pAD);
78
79 void set_ca_dialog_height (void);
80 Widget get_selected_action_icon (void);
81 Boolean CreateActionAppShellCheckFields(void);
82 void FreeAndClearAD(ActionData *pAD);
83 void clear_CreateActionAppShell_fields(void);
84 Boolean compareAD(ActionData *pAD1, ActionData *pAD2);
85 ActionData *copyAD(ActionData *pAD);
86 void FreeResources (void);
87
88
89 /***************************************************************************/
90 /*                                                                         */
91 /*      Callbacks for Create Action 'File' menu                            */
92 /*                                                                         */
93 /***************************************************************************/
94
95 void activateCB_FileNew (Widget wid, XtPointer cdata,
96                          XtPointer cbstruct);
97 void activateCB_FileOpen (Widget wid, XtPointer cdata,
98                          XtPointer cbstruct);
99 void activateCB_FileQuit (Widget wid, XtPointer cdata,
100                          XtPointer cbstruct);
101
102
103 /***************************************************************************/
104 /*                                                                         */
105 /*      Callbacks for Create Action 'Options' menu                         */
106 /*                                                                         */
107 /***************************************************************************/
108
109 void activateCB_ExpertOption (Widget wid, XtPointer client_data, XtPointer *cbs);
110 void valueChangedCB_ColorMonoOption (Widget, XtPointer,
111                               XmToggleButtonCallbackStruct *);
112 void createCB_ColorMonoOption (Widget);
113
114
115 /***************************************************************************/
116 /*                                                                         */
117 /*      Callbacks for Create Action Panel Buttons                          */
118 /*                                                                         */
119 /***************************************************************************/
120
121 void activateCB_action_icon (Widget wid, XtPointer client_data, 
122                              DtIconCallbackStruct *cbs);
123 void activateCB_add_filetype (Widget wid, XtPointer client_data,
124                               XmPushButtonCallbackStruct *cbs);
125 void activateCB_edit_filetype (Widget wid, XtPointer client_data,
126                                XmPushButtonCallbackStruct *cbs);
127
128
129 #endif /* _CA_AUX_H_INCLUDED */