/* * CDE - Common Desktop Environment * * Copyright (c) 1993-2012, The Open Group. All rights reserved. * * These libraries and programs are free software; you can * redistribute them and/or modify them under the terms of the GNU * Lesser General Public License as published by the Free Software * Foundation; either version 2 of the License, or (at your option) * any later version. * * These libraries and programs are distributed in the hope that * they will be useful, but WITHOUT ANY WARRANTY; without even the * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU Lesser General Public License for more * details. * * You should have received a copy of the GNU Lesser General Public * License along with these libraries and programs; if not, write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301 USA */ /* $XConsortium: SharedProcs.h /main/4 1995/11/02 14:44:13 rswiston $ */ /************************************<+>************************************* **************************************************************************** * * FILE: SharedProcs.h * * COMPONENT_NAME: Desktop File Manager * * DESCRIPTION: Public include file for some shared functions. * * (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company * (c) Copyright 1993, 1994, 1995 International Business Machines Corp. * (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc. * (c) Copyright 1993, 1994, 1995 Novell, Inc. * **************************************************************************** ************************************<+>*************************************/ #ifndef _DtFile_SharedProcs_h #define _DtFile_SharedProcs_h #include #include
#include
#include
#include "Common.h" #include "FileMgr.h" /******** Public Function Declarations ********/ extern String _DtStripSpaces( String string) ; extern char * _DtPName( char *name) ; extern char * _DtFollowLink( char * path) ; extern Boolean _DtStringsAreEquivalent( char *in_str, char *test_str) ; extern void _DtDuplicateDialogNameList ( char ** nameList, char ** newNameList, int newNameListSize, int * nameCount) ; extern void _DtLoadSubdialogArray ( char ** nameList, int nameCount, DialogData *** dialogArray, int dialogCount, int dialogId, XrmDatabase dataBase, int firstId ); extern void _DtSaveSubdialogArray ( char ** nameList, int nameCount, DialogData ** dialogArray, int dialogCount, int fd, int firstId ); extern void _DtDestroySubdialogArray ( DialogData ** dialogArray, int dialogCount) ; extern void _DtDestroySubdialog ( DialogData * dialogData) ; extern void _DtHideOneSubdialog ( DialogData * dialogData, DialogData *** dialogArray, int * dialogCountPtr) ; extern void _DtAddOneSubdialog ( DialogData * dialogData, DialogData *** dialogArray, int * dialogCountPtr) ; extern void _DtMappedCB( Widget w, XtPointer client_data, XtPointer call_data) ; extern void _DtGenericMapWindow ( Widget parent, XtPointer recordPtr) ; extern void _DtGenericDestroy( XtPointer recordPtr) ; extern void _DtGenericUpdateWindowPosition( DialogData * dataPtr) ; extern void _DtBuildPath( char *path, char *directory, char *fileName) ; extern PixmapData * _DtRetrievePixmapData( char *dataType, char *fileName, char *directory, Widget shell, int size); extern void _DtCheckAndFreePixmapData( char *dataType, Widget shell, DtIconGadget iconGadget, PixmapData *pixmapData) ; extern Boolean _DtCheckForDataTypeProperty( char *dataType, char *property) ; extern char ** _DtCompileActionVector( char *dataType) ; extern char * _DtRetrieveDefaultAction( char *dataType) ; extern char * _DtBuildFMTitle( FileMgrData *file_mgr_data) ; extern char * _DtGetSelectedFilePath( FileViewData *selected_file) ; extern void _DtBuildActionArgsWithSelectedFiles( FileViewData **selection_list, int selected_file_count, DtActionArg **action_args, int *args_count) ; extern void _DtBuildActionArgsWithDroppedFiles( FileViewData *dropped_on_obj, DtDndDropCallbackStruct *drop_parameters, DtActionArg **action_args, int *args_count) ; extern void _DtBuildActionArgsWithDroppedBuffers( FileViewData *dropped_on_obj, DtDndDropCallbackStruct *drop_parameters, DtActionArg **action_args, int *args_count) ; extern void _DtFreeActionArgs( DtActionArg *action_args, int args_count) ; extern void _DtSetDroppedBufferInfo( char **file_set, BufferInfo *buffer_set, char **host_set, DtDndDropCallbackStruct *drop_parameters); extern void _DtFreeDroppedBufferInfo ( char **file_set, BufferInfo *buffer_set, char **host_set, int num_of_buffers); extern Boolean _DtIsBufferExecutable( void *buffer, int buffer_size) ; extern void _DtSetDroppedFileInfo( DtDndDropCallbackStruct *drop_parameters, char ***file_set, char ***host_set) ; extern void _DtCopyDroppedFileInfo( int num_files, char **orig_file_set, char **orig_host_set, char ***new_file_set, char ***new_host_set) ; extern void _DtFreeDroppedFileInfo( int num_files, char **file_set, char **host_set) ; extern void _DtPathFromInput( char *input_string, char *current_dir, char **host, char **rel_path) ; extern char * _DtChangeTildeToHome( char *input_string) ; extern Boolean _DtSpacesInFileNames( char **fileNames, int fileCount) ; extern char * _DtResolveAppManPath( char *path, char *restricted_dir) ; /******** End Public Function Declarations ********/ /* _DtMessage Dialog build defines */ #define ERROR_DIALOG 1 #define WARNING_DIALOG 2 #define QUESTION_DIALOG 3 /* Flag which can be used to prevent error dialogs from being posted */ extern Boolean messageDisplayEnabled; /* Flag controlling whether dialogs are auto-positioned */ extern Boolean disableDialogAutoPlacement; #endif /* _DtFile_SharedProcs_h */ /* DON'T ADD ANYTHING AFTER THIS #endif */