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 libraries 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 _DtFile_SharedProcs_h
42 #define _DtFile_SharedProcs_h
45 #include <Dt/Action.h>
51 /******** Public Function Declarations ********/
53 extern String _DtStripSpaces(
56 extern char * _DtPName(
58 extern char * _DtFollowLink(
60 extern Boolean _DtStringsAreEquivalent(
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,
139 extern void _DtBuildActionArgsWithDroppedFiles(
140 FileViewData *dropped_on_obj,
141 DtDndDropCallbackStruct *drop_parameters,
142 DtActionArg **action_args,
144 extern void _DtBuildActionArgsWithDroppedBuffers(
145 FileViewData *dropped_on_obj,
146 DtDndDropCallbackStruct *drop_parameters,
147 DtActionArg **action_args,
149 extern void _DtFreeActionArgs(
150 DtActionArg *action_args,
152 extern void _DtSetDroppedBufferInfo(
154 BufferInfo *buffer_set,
156 DtDndDropCallbackStruct *drop_parameters);
157 extern void _DtFreeDroppedBufferInfo (
159 BufferInfo *buffer_set,
162 extern Boolean _DtIsBufferExecutable(
165 extern void _DtSetDroppedFileInfo(
166 DtDndDropCallbackStruct *drop_parameters,
169 extern void _DtCopyDroppedFileInfo(
171 char **orig_file_set,
172 char **orig_host_set,
173 char ***new_file_set,
174 char ***new_host_set) ;
175 extern void _DtFreeDroppedFileInfo(
179 extern void _DtPathFromInput(
184 extern char * _DtChangeTildeToHome(
185 char *input_string) ;
186 extern Boolean _DtSpacesInFileNames(
189 extern char * _DtResolveAppManPath(
191 char *restricted_dir) ;
193 /******** End Public Function Declarations ********/
195 /* _DtMessage Dialog build defines */
196 #define ERROR_DIALOG 1
197 #define WARNING_DIALOG 2
198 #define QUESTION_DIALOG 3
200 /* Flag which can be used to prevent error dialogs from being posted */
201 extern Boolean messageDisplayEnabled;
203 /* Flag controlling whether dialogs are auto-positioned */
204 extern Boolean disableDialogAutoPlacement;
206 #endif /* _DtFile_SharedProcs_h */
207 /* DON'T ADD ANYTHING AFTER THIS #endif */