2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
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)
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
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
23 /* $XConsortium: SharedProcs.h /main/4 1995/11/02 14:44:13 rswiston $ */
24 /************************************<+>*************************************
25 ****************************************************************************
29 * COMPONENT_NAME: Desktop File Manager
31 * DESCRIPTION: Public include file for some shared functions.
33 * (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company
34 * (c) Copyright 1993, 1994, 1995 International Business Machines Corp.
35 * (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.
36 * (c) Copyright 1993, 1994, 1995 Novell, Inc.
38 ****************************************************************************
39 ************************************<+>*************************************/
41 #ifndef _SharedProcs_h
42 #define _SharedProcs_h
45 #include <Dt/Action.h>
51 /******** Public Function Declarations ********/
53 extern String _DtStripSpaces(
56 extern char * _DtPName(
57 register char *name) ;
58 extern char * _DtFollowLink(
60 extern Boolean _DtStringsAreEquivalent(
61 register char *in_str,
62 register char *test_str) ;
63 extern void _DtDuplicateDialogNameList (
68 extern void _DtLoadSubdialogArray (
71 DialogData *** dialogArray,
76 extern void _DtSaveSubdialogArray (
79 DialogData ** dialogArray,
83 extern void _DtDestroySubdialogArray (
84 DialogData ** dialogArray,
86 extern void _DtDestroySubdialog (
87 DialogData * dialogData) ;
88 extern void _DtHideOneSubdialog (
89 DialogData * dialogData,
90 DialogData *** dialogArray,
91 int * dialogCountPtr) ;
92 extern void _DtAddOneSubdialog (
93 DialogData * dialogData,
94 DialogData *** dialogArray,
95 int * dialogCountPtr) ;
96 extern void _DtMappedCB(
98 XtPointer client_data,
99 XtPointer call_data) ;
100 extern void _DtGenericMapWindow (
102 XtPointer recordPtr) ;
103 extern void _DtGenericDestroy(
104 XtPointer recordPtr) ;
105 extern void _DtGenericUpdateWindowPosition(
106 DialogData * dataPtr) ;
107 extern void _DtBuildPath(
111 extern PixmapData * _DtRetrievePixmapData(
117 extern void _DtCheckAndFreePixmapData(
120 DtIconGadget iconGadget,
121 PixmapData *pixmapData) ;
122 extern Boolean _DtCheckForDataTypeProperty(
125 extern char ** _DtCompileActionVector(
127 extern char * _DtRetrieveDefaultAction(
129 extern char * _DtBuildFMTitle(
130 FileMgrData *file_mgr_data) ;
131 extern char * _DtGetSelectedFilePath(
132 FileViewData *selected_file) ;
133 extern void _DtBuildActionArgsWithSelectedFiles(
134 FileViewData **selection_list,
135 int selected_file_count,
136 DtActionArg **action_args,
138 extern void _DtBuildActionArgsWithDroppedFiles(
139 FileViewData *dropped_on_obj,
140 DtDndDropCallbackStruct *drop_parameters,
141 DtActionArg **action_args,
143 extern void _DtBuildActionArgsWithDroppedBuffers(
144 FileViewData *dropped_on_obj,
145 DtDndDropCallbackStruct *drop_parameters,
146 DtActionArg **action_args,
148 extern void _DtFreeActionArgs(
149 DtActionArg *action_args,
151 extern void _DtSetDroppedBufferInfo(
153 BufferInfo *buffer_set,
155 DtDndDropCallbackStruct *drop_parameters);
156 extern void _DtFreeDroppedBufferInfo (
158 BufferInfo *buffer_set,
161 extern Boolean _DtIsBufferExecutable(
164 extern void _DtSetDroppedFileInfo(
165 DtDndDropCallbackStruct *drop_parameters,
168 extern void _DtCopyDroppedFileInfo(
170 char **orig_file_set,
171 char **orig_host_set,
172 char ***new_file_set,
173 char ***new_host_set) ;
174 extern void _DtFreeDroppedFileInfo(
178 extern void _DtPathFromInput(
183 extern char * _DtChangeTildeToHome(
184 char *input_string) ;
185 extern Boolean _DtSpacesInFileNames(
188 extern char * _DtResolveAppManPath(
190 char *restricted_dir) ;
192 /******** End Public Function Declarations ********/
194 /* _DtMessage Dialog build defines */
195 #define ERROR_DIALOG 1
196 #define WARNING_DIALOG 2
197 #define QUESTION_DIALOG 3
199 /* Flag which can be used to prevent error dialogs from being posted */
200 extern Boolean messageDisplayEnabled;
202 /* Flag controlling whether dialogs are auto-positioned */
203 extern Boolean disableDialogAutoPlacement;
205 /* Generic overlay for all dialog 'Rec' structures */
211 #endif /* _SharedProcs_h */
212 /* DON'T ADD ANYTHING AFTER THIS #endif */