Initial import of the CDE 2.1.30 sources from the Open Group.
This commit is contained in:
187
cde/programs/dtfile/SharedProcs.h
Normal file
187
cde/programs/dtfile/SharedProcs.h
Normal file
@@ -0,0 +1,187 @@
|
||||
/* $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 _SharedProcs_h
|
||||
#define _SharedProcs_h
|
||||
|
||||
#include <Dt/Icon.h>
|
||||
#include <Dt/Action.h>
|
||||
#include <Dt/Dnd.h>
|
||||
|
||||
#include "Common.h"
|
||||
#include "FileMgr.h"
|
||||
|
||||
/******** Public Function Declarations ********/
|
||||
|
||||
extern char * _DtPName(
|
||||
register char *name) ;
|
||||
extern char * _DtFollowLink(
|
||||
char * path) ;
|
||||
extern Boolean _DtStringsAreEquivalent(
|
||||
register char *in_str,
|
||||
register 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;
|
||||
|
||||
/* Generic overlay for all dialog 'Rec' structures */
|
||||
typedef struct
|
||||
{
|
||||
Widget shell;
|
||||
} GenericRecord;
|
||||
|
||||
#endif /* _SharedProcs_h */
|
||||
/* DON'T ADD ANYTHING AFTER THIS #endif */
|
||||
Reference in New Issue
Block a user