12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628 |
- /*
- * 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
- */
- /* $TOG: Main.h /main/8 1999/12/09 13:06:45 mgreess $ */
- /************************************<+>*************************************
- ****************************************************************************
- *
- * FILE: Main.h
- *
- * COMPONENT_NAME: Desktop File Manager
- *
- * DESCRIPTION: Structures and defines needed by all of the files
- *
- * MACROS: DPRINTF
- * DPRINTF2
- * FileManip
- * FileMoveCopy
- * FileMoveCopyDesktop
- * GETMESSAGE
- * MakeFile
- * MakeFilesFromBuffers
- * MakeFilesFromBuffersDT
- * XtMalloc
- *
- * (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 _Main_h
- #define _Main_h
- /* ANSI C definitions */
- #ifdef __STDC__
- #define Const const
- #else
- #define Const /**/
- #endif
- /* Replacing XtMalloc by XtCalloc */
- #define XtMalloc(x) XtCalloc(1,x)
- /* Unknown type of file. */
- #define DtUNKNOWN 255
- /* The defines for icon states */
- #define NORMAL 0
- #define SELECTED 1
- /* Generally used defines */
- #define MAX_PATH PATH_MAX
- #define BLOCK_SIZE 1024
- #define BUF_SIZE 256
- /* Current Directory Area defines */
- #define CURRENT_DIRECTORY_PAD_X 10
- #define CURRENT_DIRECTORY_PAD_Y 4
- #define FAST_RENAME "fast_rename"
- /* Session restore defines */
- #define NORMAL_RESTORE 0
- #define HOME_RESTORE 1
- #define TOOL_RESTORE 2
- #define TOOL_SETTINGS_FILENAME "dtfile.appl"
- #define HOME_SETTINGS_FILENAME "dtfile.fmgr"
- #define HOME_DIR_RESTORE 1
- #define CURRENT_DIR_RESTORE 2
- #define TOOL 0
- #define NON_TOOL 1
- #define PIXELS_PER_ROW_LARGE 82
- #define PIXELS_PER_COLUMN_LARGE 128
- #define PIXELS_PER_ROW_SMALL 35
- #define PIXELS_PER_COLUMN_SMALL 128
- #define FP_HEIGHT 115
- /* Physical file type defines */
- #define DtDATA 1
- #define DtDIRECTORY 2
- #define DtEXECUTABLE 3
- /* Logical file type defines */
- #define LT_BROKEN_LINK "BROKEN_LINK"
- #define LT_RECURSIVE_LINK "RECURSIVE_LINK"
- #define LT_DIRECTORY "FOLDER"
- #define LT_DATA "DATA"
- #define LT_AGROUP "AGROUP"
- #define LT_AGROUP_SUBDIR "APPGROUP"
- #define LT_TRASH "TRASH_FOLDER"
- #define LT_FOLDER_LOCK "FOLDER_LOCK"
- #define LT_NON_WRITABLE_FOLDER "NON_WRITABLE_FOLDER"
- #define LT_DOT_FOLDER "DOT_FOLDER"
- #define LT_CURRENT_FOLDER "CURRENT_FOLDER"
- #define LT_NON_WRITABLE_FOLDER "NON_WRITABLE_FOLDER"
- /* _DtMessage Dialog build defines */
- #define ERROR_DIALOG 1
- #define WARNING_DIALOG 2
- #define QUESTION_DIALOG 3
- /* Trash movement defines -- see FileMgr.c and Desktop.c */
- #define TO_TRASH 1
- #define WITHIN_TRASH 2
- #define FROM_TRASH 3
- /* Trash Action */
- #define TRASH_ACTION "Trash"
- /* Internal bitmap file names */
- #define CHANGE_VIEW_ICON_S "change_view.s"
- #define CHANGE_VIEW_ICON_M "change_view.m"
- #define MULTIPLE_FILE_DRAG "drag.bm"
- #define SMALL_DIRECTORY_ICON CDE_INSTALLATION_TOP "/appconfig/icons/C/dirblue.t.pm"
- #define TOOL_ICON_NAME CDE_INSTALLATION_TOP "/appconfig/icons/C/Fpapps.l.pm"
- #define TRASH_ICON_NAME CDE_INSTALLATION_TOP "/appconfig/icons/C/Fptrsh.l.pm"
- #define HOME_ICON_NAME CDE_INSTALLATION_TOP "/appconfig/icons/C/Fphome.l.pm"
- /* File manipulation types */
- #define MOVE_FILE 0
- #define COPY_FILE 1
- #define LINK_FILE 2
- #define REMOVE_FILE 3
- #define TRASH_FILE 4
- #define RENAME_FILE 5
- #define MERGE_DIR 6
- #define MAKE_BUFFER 7
- /* object placement values (for objectPlacement on the desktop) */
- #define OBJ_PLACE_LEFT_PRIMARY (1L << 0)
- #define OBJ_PLACE_RIGHT_PRIMARY (1L << 1)
- #define OBJ_PLACE_TOP_PRIMARY (1L << 2)
- #define OBJ_PLACE_BOTTOM_PRIMARY (1L << 3)
- #define OBJ_PLACE_LEFT_SECONDARY (1L << 4)
- #define OBJ_PLACE_RIGHT_SECONDARY (1L << 5)
- #define OBJ_PLACE_TOP_SECONDARY (1L << 6)
- #define OBJ_PLACE_BOTTOM_SECONDARY (1L << 7)
- #define OBJ_PLACE_EDGE (1L << 8)
- #define OBJ_PLACE_TIGHT (1L << 9)
- #define OBJ_PLACE_RESERVE (1L << 10)
- /* defines for the icon type on the Desktop */
- #define DEFAULT 0
- #define LARGE 1
- #define SMALL 2
- /* defines for whether to open New or use current */
- #define CURRENT 0
- #define NEW 1
- /* defines for tree branch operations */
- #define BRANCH_UPDATE 0
- #define BRANCH_EXPAND 1
- #define BRANCH_COLLAPSE 2
- /* defines for Selected Menu button */
- #define SELECTED_MENU_MAX 12 /* This is the number of children in Selected
- menu pane excluding all action items
- ('move to', 'copy to' ...
- 'change permission', separator)
- Will use this to know where to unmanage
- action menu items for the Selected menu pane.
- */
-
- /* defines for default Buffer file names */
- #define DEFAULT_BUFFER_FILENAME "Untitled"
- #define MAX_POSTFIX_LENGTH 11
- /* Creation mask */
- #define DtFILE_DATA_CREATION_MASK S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH
- #define DtFILE_DIR_CREATION_MASK S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IWGRP | S_IXGRP | S_IROTH | S_IWOTH | S_IXOTH
- #define DtFILE_OTHER_CREATION_MASK S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IWGRP | S_IXGRP | S_IROTH | S_IWOTH | S_IXOTH
- #include <Tt/tttk.h>
- /* The main directory structure and directory set list */
- typedef struct
- {
- XtPointer dialog_data;
- char * host_name;
- char * directory_name;
- Tt_message msg;
- Tt_pattern * pats;
- } View;
- typedef struct
- {
- int x, y;
- } WindowPosition;
- /* Used by File.c */
- typedef int (*StrcollProc) (const char *,const char *);
- /* Global strings */
- extern char DESKTOP_DIR[];
- extern char DTFILE_CLASS_NAME[];
- extern char DTFILE_HELP_NAME[];
- /* Trash globals */
- extern Widget trashShell;
- extern DialogData * primaryTrashHelpDialog;
- extern DialogData ** secondaryTrashHelpDialogList;
- extern int secondaryTrashHelpDialogCount;
- /* debugging output */
- #ifdef DEBUG
- extern int debug;
- #define DBGFORK(p) if (debug) {fflush(stdout); printf("pid %d, ppid %d: ",getpid(),getppid()); printf p ; fflush(stdout);}
- #define DPRINTF(p) \
- if (debug) {printf("pid %d, ppid %d: ",getpid(),getppid()); printf p ;}
- #define DPRINTF2(p) \
- if (debug>=2) {printf("pid %d, ppid %d: ",getpid(),getppid()); printf p ;}
- #else
- #define DBGFORK(p) /* noop */
- #define DPRINTF(p) /* noop */
- #define DPRINTF2(p) /* noop */
- #endif
- /* Externally referenced globals */
- extern Widget toplevel;
- extern char * application_name;
- extern long root_user;
- extern char home_host_name[];
- extern char users_home_dir[];
- extern Pixel black_pixel;
- extern Pixel white_pixel;
- extern XtPointer initiating_view;
- extern Boolean special_view;
- extern Boolean TrashView;
- extern XmFontList user_font;
- extern Boolean showFilesystem;
- extern Boolean showDropZone;
- extern Boolean showEmptySet;
- extern Boolean showEmptyMsg;
- extern Boolean restrictMode;
- extern int openDirType;
- extern char *root_title;
- extern char *fileMgrTitle;
- extern char *fileMgrHelpVol;
- extern int desktopIconType;
- extern Boolean freezeOnConfig;
- #if defined(__hpux) || defined(sun)
- extern Boolean follow_links;
- #endif
- extern int maxDirectoryProcesses;
- extern int maxRereadProcesses;
- extern int maxRereadProcsPerTick;
- extern int rereadTime;
- extern int checkBrokenLink;
- extern int trashWait;
- extern int desktopPlacement;
- extern int treeType;
- extern int treeFiles;
- extern int viewType;
- extern int orderType;
- extern int directionType;
- extern int randomType;
- extern int special_treeType;
- extern int special_treeFiles;
- extern int special_viewType;
- extern int special_orderType;
- extern int special_directionType;
- extern int special_randomType;
- extern int instanceWidth;
- extern int instanceHeight;
- extern char *special_restricted;
- extern char *special_title;
- extern char *special_helpVol;
- extern char *fileMgrIcon;
- extern char *appMgrIcon;
- extern char *trashIcon;
- extern int retryLoadDesktopInfo;
- extern int smallIconWidth;
- extern int smallIconHeight;
- extern int largeIconWidth;
- extern int largeIconHeight;
- extern Boolean emptyTrashOnExit;
- extern String openInPlace;
- extern String openNewView;
- extern char * desktop_dir;
- extern char * trash_dir;
- extern char * remote_sys_dir;
- extern XmString okXmString;
- extern XmString cancelXmString;
- extern XmString helpXmString;
- extern XmString applyXmString;
- extern XmString closeXmString;
- extern unsigned int currentMenuStates;
- extern Boolean b1Drag;
- extern Boolean dragActive;
- extern int restoreType;
- extern int file_mgr_dialog;
- extern int change_dir_dialog;
- extern int preferences_dialog;
- extern int filter_dialog;
- extern int find_dialog;
- extern int mod_attr_dialog;
- extern int help_dialog;
- extern Boolean TurnOnTextName;
- extern int numColumns;
- extern int numRows;
- extern FileMgrPopup fileMgrPopup;
- extern unsigned char keybdFocusPolicy;
- extern FileMgrData *trashFileMgrData;
- extern DialogData *trashDialogData;
- #ifdef SHAPE
- extern Boolean shapeExtension;
- #endif
- extern Widget * create_dataBtn;
- extern Widget * renameBtn;
- extern Widget * moveBtn;
- extern Widget * duplicateBtn;
- extern Widget * linkBtn;
- extern Widget * findBtn;
- extern Widget * create_directoryBtn;
- extern Widget * change_directoryBtn;
- extern Widget * preferencesBtn;
- extern Widget * filterBtn;
- extern Widget * defaultEnvBtn;
- extern Widget * homeBarBtn;
- extern Widget * upBarBtn;
- extern Widget * newViewBtn;
- extern Widget * cleanUpBtn;
- extern Widget * separator1;
- extern Widget * separator2;
- extern Widget * terminalBtn;
- extern Widget * showHiddenMenu;
- extern Widget * usingHelp;
- extern Widget * fileManagerHelp;
- extern Widget * applicationManagerHelp;
- extern Widget * usingHelpTrash;
- extern Widget widget_dragged;
- /* Drag state variables */
- extern Boolean B1DragPossible;
- extern Boolean B2DragPossible;
- extern Boolean ProcessBtnUp;
- extern Boolean ProcessBtnUpCD;
- extern int initialDragX;
- extern int initialDragY;
- extern int dragThreshold;
- extern int xErrorDetected;
- /* BMenu button binding */
- extern int bMenuButton;
- extern char translations_sp_esc[];
- extern char translations_space[];
- extern char translations_escape[];
- extern char translations_da[];
- extern View ** view_set;
- extern int view_count;
- extern int view_set_size;
- extern StrcollProc FMStrcoll;
- extern XtIntervalId checkBrokenLinkTimerId;
- /******** Public Function Declarations ********/
- #include <Xm/GadgetP.h>
- #include <Xm/ManagerP.h>
- #include <Dt/DtP.h>
- #include <Dt/Action.h>
- #include <Dt/Dnd.h>
- #include "sharedFuncs.h"
- #include "FileMgr.h"
- #include "ChangeDir.h"
- #include "ModAttr.h"
- /* prototypes from Main.c */
- extern void SaveSettingsCB(
- Widget w,
- XtPointer client_data,
- XtPointer call_data) ;
- extern void SaveSessionCallback(
- Widget w,
- XtPointer client_data,
- XtPointer call_data) ;
- extern DialogData *ViewDirectoryProc(
- char *root_dir,
- int restricted,
- Tt_message msg) ;
- extern DialogData *GetNewView(
- char *host_name,
- char *directory_name,
- char *type,
- WindowPosition *position,
- Tt_message msg) ;
- extern void CloseView(
- DialogData *dialog_data) ;
- extern void DirectoryContentsModified(
- char *host_name,
- char *directory_name,
- FileMgrRec *file_mgr_rec) ;
- extern void DirectoryChanged(
- XtPointer file_mgr_data,
- char *old_host_name,
- char *new_host_name,
- char *old_directory_name,
- char *new_directory_name) ;
- extern PixmapData * CheckForOpenDirectory(
- FileViewData *order_list,
- DirectorySet *directory_set,
- FileMgrData *file_mgr_data,
- char * logical_type) ;
- extern FileMgrData * ReturnDesktopPtr (
- Widget w);
- extern void CleanUp (
- Widget w,
- XtPointer client_data,
- XtPointer call_data) ;
- extern void DragEndedHandler(
- Display *drop_display,
- Window drop_window,
- Position drop_x,
- Position drop_y,
- Window root_window,
- Position root_x,
- Position root_y,
- unsigned int modifiers,
- char *types,
- char *objects,
- XtPointer client_data) ;
- extern char * GetMessage(
- int set,
- int n,
- char *s) ;
- extern FileMgrData * CheckOpenDir (
- char * directory,
- char * host) ;
- extern char * GetRestrictedDirectory ( Widget widget) ;
- extern char * BuildTrueDTFilePath(
- DesktopRec *desktopWindow,
- FileViewData *file_view_data) ;
- extern void ForceMyIconClosed (
- char * host_name,
- char * directory_name) ;
- extern void ForceMyIconOpen (
- char * host_name,
- char * directory_name) ;
- extern Tt_callback_action HandleTtRequest(
- Tt_message msg,
- Tt_pattern pat) ;
- /* prototype from ChangeDir.c */
- extern void ChangeToNewDir (
- Widget text_field,
- XtPointer client_data,
- XmAnyCallbackStruct * callback_data );
- extern void ChangeDirectoryToParent(
- FileMgrRec * file_mgr_rec,
- char *directory) ;
- extern void DropOnChangeView (
- Widget w,
- XtPointer client_data,
- XtPointer call_data ) ;
- extern void TextChange(
- Widget text,
- XtPointer client_data,
- XmTextVerifyCallbackStruct * callback_data );
- /* prototypes from ChangeDirP.c */
- extern void ShowNewDirectory(
- FileMgrData *,
- char *,
- char * );
- extern void ShowChangeDirDialog(
- Widget w,
- XtPointer client_data,
- XtPointer callback) ;
- extern void CurrentDirSelected(
- Widget w,
- XtPointer client_data,
- XtPointer call_data) ;
- extern void CurrentDirDropCallback(
- Widget w,
- XtPointer client_data,
- XtPointer call_data) ;
- extern void CurrentDirIconCallback(
- Widget w,
- XtPointer client_data,
- XtPointer call_data) ;
- extern void CurrentDirExposed(
- Widget w,
- XtPointer client_data,
- XtPointer call_data) ;
- extern Boolean GetStatusMsg(
- FileMgrData *file_mgr_data,
- char *buf) ;
- extern void DrawCurrentDirectory(
- Widget w,
- FileMgrRec *file_mgr_rec,
- FileMgrData *file_mgr_data) ;
- extern void CurrentDirectoryIconMotion(
- Widget w,
- XtPointer client_data,
- XEvent *event) ;
- extern void ShowFastChangeDir(
- FileMgrRec *file_mgr_rec,
- FileMgrData *file_mgr_data ) ;
- extern void IconicPathExposeCallback(
- Widget w,
- XtPointer client_data,
- XtPointer call_data) ;
- extern void IconicPathResizeCallback(
- Widget w,
- XtPointer client_data,
- XEvent *event) ;
- /* prototype from Command.c */
- extern void UpdateActionMenuPane(
- XtPointer client_data,
- FileMgrRec *file_mgr_rec,
- char * file_type,
- int type,
- int number,
- Widget widget,
- unsigned char physical_type) ;
- extern void RunCommand( char *command,
- FileMgrData *file_mgr_data,
- FileViewData *file_view_data,
- WindowPosition *position,
- DtDndDropCallbackStruct *drop_parameters,
- Widget drop_window) ;
- extern Boolean InvalidTrashDragDrop ( int drop_op,
- int trash_context,
- Widget w) ;
- extern void ProcessNewView ( char *command,
- FileMgrData *file_mgr_data,
- FileViewData *file_view_data,
- WindowPosition *position) ;
- extern void ProcessMoveCopyLink ( char *command,
- FileMgrData *file_mgr_data,
- FileViewData *file_view_data,
- DtDndDropCallbackStruct *drop_parameters,
- Widget drop_window) ;
- extern void ProcessAction ( char *action,
- FileViewData *file_view_data,
- DtDndDropCallbackStruct *drop_parameters,
- char *cur_host,
- char *cur_dir,
- char *restricted_dir,
- Widget w) ;
- /* prototype from Common.c */
- extern void VFTextChangeSpace(
- Widget text,
- XEvent *event,
- XtPointer params,
- XtPointer num_params ) ;
- extern void CancelOut(
- Widget widget,
- XEvent *event,
- XtPointer params,
- XtPointer num_params ) ;
- extern void AddString(
- String *buf,
- int *size,
- String string,
- String header ) ;
- /* prototype from MakeDir.c */
- extern int RunFileCommand(
- char *command_path,
- char *argument1,
- char *argument2,
- char *argument3) ;
- /* prototypes from Directory.h */
- extern void InitializeDirectoryRead(
- Widget widget) ;
- extern void FileWindowMapUnmap(
- FileMgrData *file_mgr_data) ;
- extern int ReadDir(
- Widget w,
- FileMgrData *file_mgr_data,
- char *host_name,
- char *directory_name,
- FileViewData *dp,
- int level,
- int read_level,
- char **branch_list) ;
- extern void RereadDirectory(
- Widget w,
- char *host_name,
- char *directory_name) ;
- extern void UpdateDirectory(
- Widget w,
- char *host_name,
- char *directory_name) ;
- extern void DirectoryBeginModify(
- char *host_name,
- char *directory_name) ;
- extern void DirectoryModifyTime(
- char *host_name,
- char *directory_name,
- long modify_time) ;
- extern void DirectoryFileModified(
- char *host_name,
- char *directory_name,
- char *file_name) ;
- extern void DirectoryEndModify(
- char *host_name,
- char *directory_name) ;
- extern void DirectoryAbortModify(
- char *host_name,
- char *directory_name);
- extern void UpdateDirectorySet( void ) ;
- extern void UpdateCachedDirectories(
- View **view_set,
- int view_count) ;
- extern char * GetLongName(
- FileData *file_data) ;
- extern Boolean DirectoryBusy(
- char *path) ;
- extern char * GetDirectoryLogicalType(
- FileMgrData *file_mgr_data,
- char *path) ;
- extern FileData * FileData2toFileData(
- FileData2 *file_data2,
- int *l);
- extern FileData * ReadFileData(
- char *full_directory_name,
- char *file_name);
- extern int ReadFileData2(
- FileData2 *fdata,
- char *full_directory_name,
- char *file_name,
- Boolean IsToolBox) ;
- extern void FreeFileData(
- FileData *file_data,
- Boolean free_all) ;
- extern FileData * LookupFileData(
- char *host_name,
- char *directory_name,
- char *file_name) ;
- extern int GetDirectoryPositionInfo(
- char *host_name,
- char *directory_name,
- PositionInfo **position_info) ;
- extern int SetDirectoryPositionInfo(
- char *host_name,
- char *directory_name,
- int position_count,
- PositionInfo *position_info) ;
- extern void TimerEventBrokenLinks(
- XtPointer client_data,
- XtIntervalId *id);
- extern char * GetTTPath(
- char *name) ;
- /* prototypes for File.c */
- extern void SetHotRects (
- FileViewData * file_view_data,
- XtCallbackProc callback,
- XtPointer callback_data) ;
- extern unsigned char TypeToDropOperations (
- char * file_type) ;
- extern char * TypeToAction (
- unsigned char operation,
- char * logical_type) ;
- extern void OrderFiles(
- FileMgrData *file_mgr_data,
- DirectorySet *directory_set) ;
- extern void FilterFiles(
- FileMgrData *file_mgr_data,
- DirectorySet *directory_set) ;
- extern void UnmanageFileIcons(
- FileMgrRec *file_mgr_rec,
- FileMgrData *file_mgr_data,
- FileViewData *file_view_data);
- extern void UpdateFileIcons(
- FileMgrRec *file_mgr_rec,
- FileMgrData *file_mgr_data,
- Boolean new_directory) ;
- extern void AddFileIcons(
- FileMgrRec *file_mgr_rec,
- FileMgrData *file_mgr_data,
- DirectorySet * add_dir_set) ;
- extern void EraseTreeLines(
- FileMgrRec *file_mgr_rec,
- FileMgrData *file_mgr_data,
- FileViewData *file_view_data) ;
- extern void RedrawTreeLines(
- Widget w,
- int ex, int ey, int ewidth, int eheight, int ecount,
- FileMgrRec *file_mgr_rec,
- FileMgrData *file_mgr_data) ;
- extern void LayoutFileIcons(
- FileMgrRec *file_mgr_rec,
- FileMgrData *file_mgr_data,
- Boolean update_scrolling_position,
- Boolean turn_off_hourglass) ;
- extern Pixmap GetTreebtnPixmap(
- FileMgrData *file_mgr_data,
- FileViewData *file_view_data);
- extern void IconCallback(
- Widget w,
- XtPointer clientData,
- XtPointer callData) ;
- extern void FileIconMotion(
- Widget w,
- XtPointer clientData,
- XEvent *event) ;
- extern Boolean FileIsSelected(
- FileMgrData *file_mgr_data,
- FileViewData *file_view_data) ;
- extern void SelectFile(
- FileMgrData *file_mgr_data,
- FileViewData *file_view_data) ;
- extern void DeselectFile(
- FileMgrData *file_mgr_data,
- FileViewData *file_view_data,
- Boolean valid ) ;
- extern void DeselectAllFiles(
- FileMgrData *file_mgr_data) ;
- extern void SelectAllFiles(
- FileMgrData *file_mgr_data) ;
- extern void SetToSelectColors(
- Widget widget,
- Widget file_window,
- int type) ;
- extern void SetToNormalColors(
- Widget widget,
- Widget bg_fg_colors,
- Widget top_shadow_colors,
- int type) ;
- extern void GetTarget(
- char *from_host,
- char *from_dir,
- char *new_name,
- char *to_host,
- char *to_dir,
- char *to_file);
- extern Boolean FileMoveCopy(
- FileMgrData *file_mgr_data,
- char *to_file,
- char *directory,
- char *host,
- char **host_set,
- char **file_set,
- int file_count,
- unsigned int modifiers,
- void (*finish_callback)(),
- XtPointer callback_data);
- extern void RepositionIcons(
- FileMgrData *file_mgr_data,
- char **file_list,
- int file_count,
- Position drop_x,
- Position drop_y,
- Boolean late_binding_needed) ;
- extern void RegisterDesktopHotspots(
- FileMgrData *file_mgr_data,
- FileMgrRec *file_mgr_rec) ;
- extern void DestroyIconName(
- Widget w,
- XtPointer client_data,
- XtPointer call_data) ;
- extern void CreateNameChangeDialog(
- Widget w,
- FileViewData *file_view_data,
- XtPointer client_data,
- int type) ;
- extern void SavePositionalData(
- int fd,
- FileMgrData *file_mgr_data,
- char **name_list,
- char *name) ;
- extern void RestorePositionalData(
- XrmDatabase db,
- char **name_list,
- FileMgrData *file_mgr_data,
- char *name) ;
- extern void UnpostTextField(
- FileMgrData *file_mgr_data) ;
- extern void UnpostTextPath(
- FileMgrData *file_mgr_data) ;
- extern void RedrawOneGadget(
- Widget child,
- XEvent *event,
- Region region) ;
- extern void RepaintDesktop(
- FileMgrData *file_mgr_data,
- XEvent *event,
- Region region) ;
- extern void DrawingAreaRedisplay(
- Widget wid,
- XEvent *event,
- Region region) ;
- extern ObjectPtr GetBottomOfStack(
- FileMgrData *file_mgr_data) ;
- extern ObjectPtr GetTopOfStack(
- FileMgrData *file_mgr_data) ;
- extern void RepositionUpInStack(
- FileMgrData *file_mgr_data,
- int oldPos,
- int newPos) ;
- extern ObjectPtr FindCurrentPosition(
- FileMgrData *file_mgr_data,
- char *file_name) ;
- extern void RepairStackingPointers(
- FileMgrData *file_mgr_data) ;
- extern void OrderChildrenList(
- FileMgrData *file_mgr_data) ;
- extern void PositionFileView(
- FileViewData *file_view_data,
- FileMgrData *file_mgr_data) ;
- extern void DrawHighlight (
- Widget w,
- FileViewData *file_view_data,
- FileMgrData *file_mgr_data,
- int type );
- extern void DrawUnhighlight (
- Widget w,
- int type);
- extern void DrawShadowTh (
- Widget w,
- GC gc,
- int type);
- extern void FmPopup (
- Widget w,
- XtPointer client_data,
- XEvent *event,
- FileMgrData *file_mgr_data);
- extern Boolean VerticalScrollbarIsVisible(
- Widget vertSB,
- Widget scrolledWin);
- extern Boolean HorizontalScrollbarIsVisible(
- Widget hortSB,
- Widget scrolledWin);
- extern void RepairFileWindow (
- FileMgrData * file_mgr_data);
- StrcollProc GetStrcollProc(void);
- extern void StartDrag(
- Widget w,
- FileViewData * fileViewData,
- XEvent * event);
- extern void FreeLayoutData(XtPointer p);
- extern void GetAncestorInfo(
- FileMgrData *file_mgr_data,
- FileViewData *ip,
- int *levelp,
- char *path,
- Bool *morep);
- extern void GetFullName(
- FileMgrData *file_mgr_data,
- FileViewData *ip,
- char *path);
- /* prototypes from FileDialog.h */
- extern void ShowRenameFileDialog(
- Widget w,
- XtPointer client_data,
- XtPointer call_data) ;
- extern void ShowCopyFileDialog(
- Widget w,
- XtPointer client_data,
- XtPointer call_data) ;
- extern void ShowMoveFileDialog(
- Widget w,
- XtPointer client_data,
- XtPointer call_data) ;
- extern void ShowLinkFileDialog(
- Widget w,
- XtPointer client_data,
- XtPointer call_data) ;
- extern void ShowMakeFileDialog(
- Widget w,
- XtPointer client_data,
- XtPointer call_data) ;
- extern void RenameDone(
- XtPointer client_data,
- int rc) ;
- extern int RecheckFlag(
- Widget parent,
- Widget w);
- extern void ResetFlag(
- Widget parent,
- Widget w);
- /* prototypes from FileManip.h */
- extern void FileOperationError(
- Widget w,
- char *message1,
- char *message2) ;
- extern Boolean FileManip(
- Widget w,
- int mode,
- char *from,
- char *to,
- Boolean isContainer,
- void (*errorHandler)(),
- Boolean checkForBusyDir,
- int type);
- extern int CheckAccess(
- char *fname,
- int what);
- extern char * DName(
- char *name) ;
- /* prototypes from FileMgr.h */
- extern PixmapData * GetPixmapData(
- FileMgrRec *file_mgr_rec,
- FileMgrData *file_mgr_data,
- char *path,
- Boolean large) ;
- extern void SetSpecialMsg(
- FileMgrRec *file_mgr_rec,
- FileMgrData *file_mgr_data,
- char *msg) ;
- extern void UpdateHeaders(
- FileMgrRec *file_mgr_rec,
- FileMgrData *file_mgr_data,
- Boolean icons_changed) ;
- extern void FileMgrRedisplayFiles(
- FileMgrRec *file_mgr_rec,
- FileMgrData *file_mgr_data,
- Boolean new_directory) ;
- extern void ShowNewDirectory(
- FileMgrData *file_mgr_data,
- char *host_name,
- char *directory_name) ;
- extern void FileMgrReread(
- FileMgrRec *file_mgr_rec) ;
- extern void FileMgrBuildDirectories(
- FileMgrData *file_mgr_data,
- char *host_name,
- char *directory_name) ;
- extern Boolean DropOnGadget(
- FileMgrData *file_mgr_data,
- Widget w,
- Position x,
- Position y) ;
- extern void FileMgrProcessDrop(
- FileMgrData *file_mgr_data,
- FileMgrRec *file_mgr_rec,
- Window w,
- Position drop_x,
- Position drop_y,
- unsigned int modifiers,
- char *types,
- char *files) ;
- extern void FileMgrPropagateSettings(
- FileMgrData *src_data,
- FileMgrData *dst_data) ;
- extern void Close(
- Widget w,
- XtPointer client_data,
- XtPointer call_data) ;
- extern void ShowChangeDirField(
- Widget w,
- XtPointer client_data,
- XtPointer callback) ;
- extern void FreePositionInfo(
- FileMgrData *file_mgr_data) ;
- extern Boolean PositioningEnabledInView(
- FileMgrData *file_mgr_data) ;
- extern Boolean PositionFlagSet(
- FileMgrData *file_mgr_data) ;
- extern void InheritPositionInfo(
- FileMgrData *src_file_mgr_data,
- FileMgrData *dest_file_mgr_data) ;
- extern void SavePositionInfo(
- FileMgrData *file_mgr_data) ;
- extern void LoadPositionInfo(
- FileMgrData *file_mgr_data) ;
- extern void SetPWD(
- char *viewHost,
- char *viewDir,
- char **pwdHostRet,
- char **pwdDirRet,
- char *type) ;
- extern FileViewData * DropOnPrimaryHotspot (
- FileMgrData * file_mgr_data,
- Position drop_x,
- Position drop_y,
- DirectorySet ** directory_data);
- extern void DropOnFileWindow (
- Widget w,
- XtPointer client_data,
- XtPointer call_data);
- extern void DropOnObject (
- Widget w,
- XtPointer client_data,
- XtPointer call_data);
- extern void CheckMoveType(
- FileMgrData *file_mgr_data,
- FileViewData *file_view_data,
- DirectorySet * directory_data,
- DesktopRec * desktopWindow,
- char **file_set,
- char **host_set,
- unsigned int modifiers,
- int file_count,
- Position drop_x,
- Position drop_y,
- int view ) ;
- extern void UpdateBranchList(
- FileMgrData *file_mgr_data,
- DirectorySet *directory_set) ;
- extern Boolean QueryBranchList(
- FileMgrData *file_mgr_data,
- char **branch_list,
- char *directory_name,
- TreeShow *tsp) ;
- extern void UpdateBranchState(
- FileMgrData *file_mgr_data,
- FileViewData *ip,
- int op,
- Boolean busy) ;
- extern void DirTreeExpand(
- FileMgrData *file_mgr_data,
- FileViewData *ip,
- Boolean expand) ;
- /* prototype from Filter.c */
- extern void UpdataFilterAfterDBReread (
- DialogData * dialog_data) ;
- /* prototype from FilterP.c */
- extern void ShowFilterDialog(
- Widget w,
- XtPointer client_data,
- XtPointer callback) ;
- extern void ShowHiddenFiles (
- Widget w,
- XtPointer client_data,
- XtPointer callback) ;
- extern void NewFileTypeSelected (
- Widget w,
- XtPointer client_data,
- XtPointer callback) ;
- extern void SelectAllFileTypes (
- Widget w,
- XtPointer client_data,
- XtPointer callback) ;
- extern void UnselectAllFileTypes (
- Widget w,
- XtPointer client_data,
- XtPointer callback) ;
- /* prototype from FindP.c */
- extern void ShowFindDialog(
- Widget w,
- XtPointer client_data,
- XtPointer callback) ;
- /* prototype from IconWindow.c */
- extern void FileWindowExposeCallback(
- Widget w,
- XtPointer client_data,
- XtPointer call_data) ;
- extern void FileWindowResizeCallback(
- Widget w,
- XtPointer client_data,
- XEvent *event) ;
- extern void FileWindowMapCallback(
- Widget w,
- XtPointer client_data,
- XEvent *event ) ;
- extern void FileWindowInputCallback(
- Widget w,
- XtPointer client_data,
- XtPointer call_data) ;
- extern void WidgetRectToRegion (
- FileMgrData * file_mgr_data,
- Widget w,
- Region region) ;
- /* prototype from Menu.c */
- extern Widget CreateMenu(
- Widget main,
- FileMgrRec *file_mgr_rec) ;
- extern void ActivateSingleSelect(
- FileMgrRec *file_mgr_rec,
- char * file_type) ;
- extern void ActivateMultipleSelect(
- FileMgrRec *file_mgr_rec) ;
- extern void ActivateNoSelect(
- FileMgrRec *file_mgr_rec) ;
- extern void UnselectAll(
- Widget w,
- XtPointer client_data,
- XtPointer call_data) ;
- extern void SelectAll(
- Widget w,
- XtPointer client_data,
- XtPointer call_data) ;
- extern void TrashFiles(
- Widget w,
- XtPointer client_data,
- XtPointer call_data) ;
- extern void ChangeToHome(
- Widget w,
- XtPointer client_data,
- XtPointer call_data ) ;
- extern void ChangeToParent(
- Widget w,
- XtPointer client_data,
- XtPointer call_data ) ;
- /* prototype from ModAttr.c */
- extern Boolean LoadFileAttributes(
- String host,
- String dir,
- String file,
- ModAttrData *modAttr_data) ;
- extern void ModAttrChange(
- XtPointer client_data,
- DialogData *old_dialog_data,
- DialogData *new_dialog_data,
- XtPointer call_data) ;
- extern void ModAttrClose(
- XtPointer client_data,
- DialogData *old_dialog_data,
- DialogData *new_dialog_data) ;
- extern void ModAttrFreeValues(
- ModAttrData *modAttr_data );
- /* prototype from ModAttrP.c */
- extern void ShowModAttrDialog(
- Widget w,
- XtPointer client_data,
- XtPointer callback) ;
- /* prototypes from Prefs.c */
- extern void ShowTypeToString(
- int fd,
- unsigned char *value,
- char *out_buf) ;
- extern void StringToShowType(
- XrmValuePtr args,
- Cardinal *num_args,
- XrmValue *from_val,
- XrmValue *to_val) ;
- extern void TreeFilesToString(
- int fd,
- unsigned char *value,
- char *out_buf) ;
- extern void StringToTreeFiles(
- XrmValuePtr args,
- Cardinal *num_args,
- XrmValue *from_val,
- XrmValue *to_val) ;
- extern void ViewToString(
- int fd,
- unsigned char *value,
- char *out_buf) ;
- extern void StringToView(
- XrmValuePtr args,
- Cardinal *num_args,
- XrmValue *from_val,
- XrmValue *to_val) ;
- extern void OrderToString(
- int fd,
- unsigned char *value,
- char *out_buf) ;
- extern void StringToOrder(
- XrmValuePtr args,
- Cardinal *num_args,
- XrmValue *from_val,
- XrmValue *to_val) ;
- extern void DirectionToString(
- int fd,
- unsigned char *value,
- char *out_buf) ;
- extern void RandomToString(
- int fd,
- unsigned char *value,
- char *out_buf) ;
- extern void StringToDirection(
- XrmValuePtr args,
- Cardinal *num_args,
- XrmValue *from_val,
- XrmValue *to_val) ;
- extern void StringToRandom(
- XrmValuePtr args,
- Cardinal *num_args,
- XrmValue *from_val,
- XrmValue *to_val) ;
- extern void UpdatePreferencesDialog (
- FileMgrData * file_mgr_data) ;
- /* prototype for PrefsP.c */
- extern void ShowPreferencesDialog(
- Widget w,
- XtPointer client_data,
- XtPointer callback) ;
- /* prototype for Trash.c */
- extern Boolean TrashIsInitialized(
- void ) ;
- extern Boolean InitializeTrash(
- Boolean enableVerifyPrompt);
- extern void TrashCreateDialog(
- Display *display) ;
- extern void TrashDisplayHandler(
- Tt_message msg);
- extern void TrashEmptyHandler(
- Tt_message msg);
- extern void TrashRemoveHandler(
- Tt_message msg);
- extern void TrashEmpty( void );
- extern void TrashRestoreHandler(
- Tt_message msg);
- extern void TrashRemoveNoConfirmHandler(
- Tt_message msg);
- extern Widget CreateTrashMenu(
- Widget mainw,
- FileMgrRec *file_mgr_rec) ;
- extern void SensitizeTrashBtns( void ) ;
- extern void DropOnTrashCan(
- int file_count,
- char **host_set,
- char **file_set,
- DtDndDropCallbackStruct *parameters) ;
- extern void MoveOutOfTrashCan(
- FileMgrData *file_mgr_data,
- FileMgrRec *file_mgr_rec,
- Window w,
- int file_count,
- char **host_set,
- char **file_set,
- Position drop_x,
- Position drop_y);
- extern void Restore(
- Widget w,
- XtPointer client_data,
- XtPointer call_data ) ;
- extern void ConfirmRemove(
- Widget w,
- XtPointer client_data,
- XtPointer call_data ) ;
- extern void Remove(
- Widget w,
- XtPointer client_data,
- XtPointer call_data ) ;
- extern Boolean FileFromTrash(
- char *filename) ;
- extern int CheckDeletePermission(
- char *dir,
- char *file);
- extern int EraseObject(char *file_name);
- /* prototype for Desktop.c */
- extern void InitializeDesktopWindows(
- int number_cache,
- Display *display) ;
- extern void CheckDesktop( void ) ;
- extern void DesktopObjectRemoved(
- DesktopRec *desktopWindow ) ;
- extern void DesktopObjectChanged(
- DesktopRec *desktopWindow ) ;
- extern FileViewData * DropOnDesktopHotspot(
- Window win,
- Position drop_x,
- Position drop_y,
- DirectorySet **directory_data,
- DesktopRec *desktopWindow) ;
- extern Boolean FileMoveCopyDesktop(
- FileViewData *file_view_data,
- char *directory,
- char **host_set,
- char **file_set,
- int file_count,
- unsigned int modifiers,
- DesktopRec *desktopWindow,
- void (*finish_callback)(),
- XtPointer callback_data);
- extern void SaveDesktopInfo(
- int session) ;
- extern void LoadDesktopInfo(
- char *session) ;
- extern void RemoveDT(
- Widget w,
- XtPointer client_data,
- XtPointer call_data) ;
- #ifdef SUN_PERF
- extern void RemoveMovedObjectFromDT(
- Widget w,
- XtPointer client_data,
- int file_cnt,
- char **file_list) ;
- #endif /* SUN_PERF */
- extern void DeselectAllDTFiles(
- WorkspaceRec *workspaceData) ;
- extern void DeselectDTFile(
- WorkspaceRec *workspaceData,
- DesktopRec *desktopWindow) ;
- extern void DTActionCallback(
- Widget w,
- XtPointer client_data,
- XtPointer call_data) ;
- extern void RunDTCommand(
- char *command,
- DesktopRec *desktopWindow,
- DtDndDropCallbackStruct *parameters) ;
- extern char * IsAFileOnDesktop(
- DtString message,
- int *number) ;
- extern char * IsAFileOnDesktop2(
- char **file_set,
- int file_count,
- int *number,
- Boolean *IsToolBox) ;
- extern void ProcessDTSelection(
- DesktopRec *desktopRec,
- XButtonEvent *event) ;
- extern void UnpostDTTextField(void) ;
- extern Boolean DTFileIsSelected(
- DesktopRec *desktopRec,
- FileViewData *fileViewData) ;
- extern void InitializeDesktopGrid(
- int displayWidth,
- int displayHeight) ;
- extern void RegisterInGrid(
- int width,
- int height,
- int rX,
- int rY,
- int workspace,
- Boolean type) ;
- extern void PutOnDTCB(
- Widget w,
- XtPointer client_data,
- XtPointer call_data) ;
- extern void SetupDesktopWindow(
- Display *display,
- FileMgrData *file_mgr_data,
- FileMgrRec *file_mgr_rec,
- char *file_name,
- char *host_name,
- char *directory_name,
- int root_x,
- int root_y,
- char *type,
- int EndIndex) ;
- extern void CleanUpWSName(
- char *workspace_name) ;
- extern void CheckDesktopMarquee(
- int x,
- int y,
- int width,
- int height) ;
- #ifdef SHAPE
- extern void GenerateShape( DesktopRec *desktopWindow );
- #endif
- extern void RegisterIconDropsDT(DesktopRec *desktopWindow) ;
- extern void WorkSpaceRemoved(
- Widget w,
- Atom atom_name,
- int type,
- XtPointer client_data );
- /* prototype for HelpCB.c */
- XtPointer LocateRecordStructure(
- Widget w) ;
- /* prototype for FileOp.c */
- extern int PipeRead(
- int fd,
- void *buf,
- int len) ;
- extern int PipeWriteString(
- int fd,
- char *s) ;
- extern char * PipeReadString(
- int fd) ;
- extern void FileOpError(
- Widget w,
- char *message1,
- char *message2) ;
- extern void ChangeIconName(
- Widget w,
- XtPointer client_data,
- XmTextVerifyCallbackStruct *call_data) ;
- extern void ChangeIconNameDT(
- Widget w,
- XtPointer client_data,
- XtPointer call_data) ;
- extern void MakeFile(
- Widget w,
- char *host_name,
- char *directory_name,
- char *new_name,
- unsigned char type,
- void (*finish_callback)(),
- XtPointer callback_data) ;
- extern Boolean MakeFilesFromBuffers(
- FileMgrData *file_mgr_data,
- char *directory,
- char *host,
- char **file_set,
- char **host_set,
- BufferInfo *buffer_set,
- int num_of_buffers,
- void (*finish_callback)(),
- XtPointer callback_data);
- extern Boolean MakeFilesFromBuffersDT(
- FileViewData *file_view_data,
- char *directory,
- char **file_set,
- char **host_set,
- BufferInfo *buffer_set,
- int num_of_buffers,
- DesktopRec *desktopWindow,
- void (*finish_callback)(),
- XtPointer callback_data);
- /* prototype for fsDialog.c */
- extern Boolean fsDialogAvailable(const String path,
- dtFSData * fsDialogData);
- /* prototype for Utils.c */
- extern char *
- ResolveLocalPathName(
- char *hostname,
- char *directory_name,
- char *file_name,
- char *local_hostname,
- Tt_status *tt_status);
- extern char * ResolveTranslationString(
- char * originalString,
- char * addressString );
- /* prototype for OverWrite.c */
- extern void
- create_replace_rename_dialog(
- Widget parent_widget,
- int mode,
- String directory,
- String file,
- int filop_confirm_fd,
- ActionAreaDefn actions,
- Boolean Same);
- extern void
- create_replace_merge_dialog(
- Widget parent_widget,
- int mode,
- String directory,
- String file,
- int filop_confirm_fd,
- ActionAreaDefn actions);
- extern void
- create_multicollide_dialog(
- Widget parent_widget,
- int mode,
- int nSelected,
- int nCollisions,
- String destination,
- String * fileList,
- int filop_confirm_fd,
- ActionAreaDefn actions,
- Boolean Same);
- extern void
- replace_rename_cancel_callback(
- Widget w,
- XtPointer client_data,
- XtPointer call_data);
- extern void
- replace_rename_ok_callback(
- Widget w,
- XtPointer client_data,
- XtPointer call_data);
- extern void
- buffer_replace_rename_ok_callback(
- Widget w,
- XtPointer client_data,
- XtPointer call_data);
- extern void
- replace_merge_cancel_callback(
- Widget w,
- XtPointer client_data,
- XtPointer call_data);
- extern void
- replace_merge_ok_callback(
- Widget w,
- XtPointer client_data,
- XtPointer call_data);
- extern void
- multicollide_cancel_callback(
- Widget w,
- XtPointer client_data,
- XtPointer call_data);
- extern void
- multicollide_ok_callback(
- Widget w,
- XtPointer client_data,
- XtPointer call_data);
- extern void
- buffer_multicollide_ok_callback(
- Widget w,
- XtPointer client_data,
- XtPointer call_data);
- /* From SharedProcs.c - needs DesktopRec */
- extern void _DtBuildActionArgsWithDTSelectedFiles(
- DesktopRec **selection_list,
- int selected_count,
- DtActionArg **action_args,
- int *arg_count) ;
- /* From DtWidget */
- extern void _DtIconGetTextExtent_r(Widget widget, XRectangle *clip);
- /* From DtSvc */
- extern Pixmap _DtGetPixmap(
- Screen *screen,
- char *image_name,
- Pixel foreground,
- Pixel background );
- /*
- * macro to get message catalog strings
- */
- #ifndef NO_MESSAGE_CATALOG
- # define _CLIENT_CAT_NAME "dtfile"
- extern char *_DtGetMessage(char *filename, int set, int n, char *s);
- # define GETMESSAGE(set, number, string)\
- (_DtGetMessage(_CLIENT_CAT_NAME, set, number, string))
- #else
- # define GETMESSAGE(set, number, string)\
- string
- #endif
- #endif /* _Main_h */
- /* DON'T ADD ANYTHING AFTER THIS #endif */
|