mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
dtfile: Add missing prototypes
Add missing prototypes and header files to the dtfile code in order to move closer towards 64-bit compatibility. Extract the following functions from Motif internal headers: _XmGetWidgetExtData _XmRecordEvent _XmStringUngenerate _XmTextFieldSetDestination _XmGetActiveTopLevelMenu Extract manually prototypes of the obsolete Motif interface: _XmHighlightBorder _XmUnhighlightBorder Remove XmPrivate.h if extractprototype.awk fails Make the following header files available via -I: codelibs/boolean.h codelibs/pathutils.h codelibs/shellutils.h and remove shellutils.h from dtwm directory.
This commit is contained in:
parent
f55dfc34c0
commit
1079b56422
43 changed files with 240 additions and 99 deletions
|
@ -13,7 +13,7 @@ ALLHEADERS = *.h
|
||||||
BuildIncludes($(HEADERS),Xm,..)
|
BuildIncludes($(HEADERS),Xm,..)
|
||||||
|
|
||||||
XmPrivate.h: extractprototype.awk
|
XmPrivate.h: extractprototype.awk
|
||||||
awk -f extractprototype.awk $(MLIBSRC)/Xm/$(ALLHEADERS) > $@
|
awk -f extractprototype.awk $(MLIBSRC)/Xm/$(ALLHEADERS) > $@ || rm -f $@
|
||||||
|
|
||||||
depend::
|
depend::
|
||||||
|
|
||||||
|
|
|
@ -26,6 +26,13 @@ extern void _XmPopWidgetExtData(
|
||||||
#else
|
#else
|
||||||
unsigned char extType) ;
|
unsigned char extType) ;
|
||||||
#endif /* NeedWidePrototypes */
|
#endif /* NeedWidePrototypes */
|
||||||
|
extern XmWidgetExtData _XmGetWidgetExtData(
|
||||||
|
Widget widget,
|
||||||
|
#if NeedWidePrototypes
|
||||||
|
unsigned int extType) ;
|
||||||
|
#else
|
||||||
|
unsigned char extType) ;
|
||||||
|
#endif /* NeedWidePrototypes */
|
||||||
/* Extracted from MenuStateI.h */
|
/* Extracted from MenuStateI.h */
|
||||||
extern void _XmSetInDragMode(
|
extern void _XmSetInDragMode(
|
||||||
Widget widget,
|
Widget widget,
|
||||||
|
@ -44,6 +51,10 @@ extern int _XmGrabPointer(
|
||||||
Window confine_to,
|
Window confine_to,
|
||||||
Cursor cursor,
|
Cursor cursor,
|
||||||
Time time) ;
|
Time time) ;
|
||||||
|
/* Extracted from RCMenuI.h */
|
||||||
|
extern void _XmGetActiveTopLevelMenu(
|
||||||
|
Widget wid,
|
||||||
|
Widget *rwid);
|
||||||
/* Extracted from SyntheticI.h */
|
/* Extracted from SyntheticI.h */
|
||||||
extern void _XmExtGetValuesHook(
|
extern void _XmExtGetValuesHook(
|
||||||
Widget w,
|
Widget w,
|
||||||
|
@ -53,6 +64,11 @@ extern void _XmGadgetImportSecondaryArgs(
|
||||||
Widget w,
|
Widget w,
|
||||||
ArgList args,
|
ArgList args,
|
||||||
Cardinal *num_args) ;
|
Cardinal *num_args) ;
|
||||||
|
/* Extracted from TextFI.h */
|
||||||
|
extern Boolean _XmTextFieldSetDestination(
|
||||||
|
Widget w,
|
||||||
|
XmTextPosition position,
|
||||||
|
Time set_time) ;
|
||||||
/* Extracted from TextStrSoI.h */
|
/* Extracted from TextStrSoI.h */
|
||||||
extern char * _XmStringSourceGetString(XmTextWidget tw,
|
extern char * _XmStringSourceGetString(XmTextWidget tw,
|
||||||
XmTextPosition from,
|
XmTextPosition from,
|
||||||
|
@ -90,6 +106,7 @@ extern Boolean _XmShellIsExclusive(
|
||||||
Widget wid) ;
|
Widget wid) ;
|
||||||
/* Extracted from UniqueEvnI.h */
|
/* Extracted from UniqueEvnI.h */
|
||||||
extern Boolean _XmIsEventUnique(XEvent *event) ;
|
extern Boolean _XmIsEventUnique(XEvent *event) ;
|
||||||
|
extern void _XmRecordEvent(XEvent *event) ;
|
||||||
/* Extracted from VendorSI.h */
|
/* Extracted from VendorSI.h */
|
||||||
extern void _XmAddGrab(
|
extern void _XmAddGrab(
|
||||||
Widget wid,
|
Widget wid,
|
||||||
|
@ -121,6 +138,11 @@ extern void _XmClearShadowType(
|
||||||
Dimension old_shadow_thickness,
|
Dimension old_shadow_thickness,
|
||||||
Dimension old_highlight_thickness) ;
|
Dimension old_highlight_thickness) ;
|
||||||
#endif /* NeedWidePrototypes */
|
#endif /* NeedWidePrototypes */
|
||||||
|
/* Extracted from XmStringI.h */
|
||||||
|
extern XtPointer _XmStringUngenerate (XmString string,
|
||||||
|
XmStringTag tag,
|
||||||
|
XmTextType tag_type,
|
||||||
|
XmTextType output_type);
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -45,6 +45,7 @@ function proto() {
|
||||||
/_XmLeaveGadget/ { proto(); }
|
/_XmLeaveGadget/ { proto(); }
|
||||||
/_XmPushWidgetExtData/ { proto(); }
|
/_XmPushWidgetExtData/ { proto(); }
|
||||||
/_XmPopWidgetExtData/ { proto(); }
|
/_XmPopWidgetExtData/ { proto(); }
|
||||||
|
/_XmGetWidgetExtData/ { proto(); }
|
||||||
/_XmGadgetImportSecondaryArgs/ { proto(); }
|
/_XmGadgetImportSecondaryArgs/ { proto(); }
|
||||||
/_XmExtImportArgs/ { proto(); }
|
/_XmExtImportArgs/ { proto(); }
|
||||||
/_XmExtGetValuesHook/ { proto(); }
|
/_XmExtGetValuesHook/ { proto(); }
|
||||||
|
@ -52,6 +53,10 @@ function proto() {
|
||||||
/_XmFocusInGadget/ { proto(); }
|
/_XmFocusInGadget/ { proto(); }
|
||||||
/_XmFocusOutGadget/ { proto(); }
|
/_XmFocusOutGadget/ { proto(); }
|
||||||
/_XmIsEventUnique/ { proto(); }
|
/_XmIsEventUnique/ { proto(); }
|
||||||
|
/_XmRecordEvent/ { proto(); }
|
||||||
/_XmSetInDragMode/ { proto(); }
|
/_XmSetInDragMode/ { proto(); }
|
||||||
/_XmStringSourceGetString/ { proto(); }
|
/_XmStringSourceGetString/ { proto(); }
|
||||||
|
/_XmStringUngenerate/ { proto(); }
|
||||||
/_XmShellIsExclusive/ { proto(); }
|
/_XmShellIsExclusive/ { proto(); }
|
||||||
|
/_XmTextFieldSetDestination/ { proto(); }
|
||||||
|
/_XmGetActiveTopLevelMenu/ { proto(); }
|
||||||
|
|
|
@ -37,6 +37,7 @@
|
||||||
|
|
||||||
#include <Dt/DtP.h>
|
#include <Dt/DtP.h>
|
||||||
#include <bms/connect.h>
|
#include <bms/connect.h>
|
||||||
|
#include <codelibs/pathutils.h>
|
||||||
|
|
||||||
#define DtGetShortHostname Xegetshorthostname
|
#define DtGetShortHostname Xegetshorthostname
|
||||||
#define DtGetHostname Xegethostname
|
#define DtGetHostname Xegethostname
|
||||||
|
|
|
@ -2,7 +2,7 @@ XCOMM $TOG: Imakefile /main/3 1998/08/10 18:02:40 mgreess $
|
||||||
#define IHaveSubdirs
|
#define IHaveSubdirs
|
||||||
#define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)' 'CXXDEBUGFLAGS=$(CXXDEBUGFLAGS)'
|
#define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)' 'CXXDEBUGFLAGS=$(CXXDEBUGFLAGS)'
|
||||||
|
|
||||||
SUBDIRS = bms SPC
|
SUBDIRS = bms codelibs SPC
|
||||||
|
|
||||||
MakeSubdirs($(SUBDIRS))
|
MakeSubdirs($(SUBDIRS))
|
||||||
DependSubdirs($(SUBDIRS))
|
DependSubdirs($(SUBDIRS))
|
||||||
|
|
11
cde/lib/DtSvc/include/codelibs/Imakefile
Normal file
11
cde/lib/DtSvc/include/codelibs/Imakefile
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
|
||||||
|
HEADERS = pathutils.h boolean.h shellutils.h
|
||||||
|
|
||||||
|
all::
|
||||||
|
|
||||||
|
BuildIncludes($(HEADERS),codelibs,..)
|
||||||
|
InstallMultipleFlags($(HEADERS),$(INCDIR)/codelibs,$(INSTINCFLAGS))
|
||||||
|
|
||||||
|
depend::
|
||||||
|
|
||||||
|
clean::
|
|
@ -86,11 +86,14 @@
|
||||||
#include <Dt/Action.h>
|
#include <Dt/Action.h>
|
||||||
#include <Dt/Connect.h>
|
#include <Dt/Connect.h>
|
||||||
#include <Dt/DtNlUtils.h>
|
#include <Dt/DtNlUtils.h>
|
||||||
|
#include <Dt/SharedProcs.h>
|
||||||
|
|
||||||
#include <Tt/tttk.h>
|
#include <Tt/tttk.h>
|
||||||
|
|
||||||
#include <Xm/DragIcon.h>
|
#include <Xm/DragIcon.h>
|
||||||
#include <Xm/DragC.h>
|
#include <Xm/DragC.h>
|
||||||
|
#include <Xm/TextF.h>
|
||||||
|
#include <Xm/XmPrivate.h> /* _XmStringUngenerate */
|
||||||
#include <Dt/Dnd.h>
|
#include <Dt/Dnd.h>
|
||||||
|
|
||||||
#include "Encaps.h"
|
#include "Encaps.h"
|
||||||
|
@ -786,7 +789,7 @@ TryToChangeDir(
|
||||||
|
|
||||||
XtFree(title);
|
XtFree(title);
|
||||||
XtFree(msg);
|
XtFree(msg);
|
||||||
return;
|
return False;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -61,9 +61,11 @@
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <Xm/Xm.h>
|
#include <Xm/Xm.h>
|
||||||
#include <Xm/XmP.h>
|
#include <Xm/XmP.h>
|
||||||
|
#include <Xm/DrawP.h>
|
||||||
#include <Xm/TextFP.h>
|
#include <Xm/TextFP.h>
|
||||||
#include <Xm/PushBG.h>
|
#include <Xm/PushBG.h>
|
||||||
#include <Xm/DragDrop.h>
|
#include <Xm/DragDrop.h>
|
||||||
|
#include <Xm/RowColumn.h>
|
||||||
#include <Dt/Icon.h>
|
#include <Dt/Icon.h>
|
||||||
#include <Dt/IconP.h>
|
#include <Dt/IconP.h>
|
||||||
#include <Dt/DtNlUtils.h>
|
#include <Dt/DtNlUtils.h>
|
||||||
|
|
|
@ -53,6 +53,7 @@
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <Xm/PushBG.h>
|
#include <Xm/PushBG.h>
|
||||||
#include <Xm/RowColumn.h>
|
#include <Xm/RowColumn.h>
|
||||||
|
#include <Xm/ScrollBar.h>
|
||||||
#include <Xm/SeparatoG.h>
|
#include <Xm/SeparatoG.h>
|
||||||
#include <Xm/XmP.h>
|
#include <Xm/XmP.h>
|
||||||
#include <X11/Shell.h>
|
#include <X11/Shell.h>
|
||||||
|
@ -64,6 +65,9 @@
|
||||||
#include <Dt/DtNlUtils.h>
|
#include <Dt/DtNlUtils.h>
|
||||||
#include <Dt/HourGlass.h>
|
#include <Dt/HourGlass.h>
|
||||||
#include <Dt/Dnd.h>
|
#include <Dt/Dnd.h>
|
||||||
|
#include <Dt/Dts.h>
|
||||||
|
#include <Dt/SharedProcs.h>
|
||||||
|
#include <Dt/Utility.h>
|
||||||
|
|
||||||
#include "Encaps.h"
|
#include "Encaps.h"
|
||||||
#include "SharedProcs.h"
|
#include "SharedProcs.h"
|
||||||
|
|
|
@ -51,8 +51,12 @@
|
||||||
|
|
||||||
#include <Xm/Xm.h>
|
#include <Xm/Xm.h>
|
||||||
#include <Xm/XmP.h>
|
#include <Xm/XmP.h>
|
||||||
|
#include <Xm/TextF.h>
|
||||||
|
|
||||||
#include <Dt/DtP.h> /* required for DtDirPaths type */
|
#include <Dt/DtP.h> /* required for DtDirPaths type */
|
||||||
|
|
||||||
|
#include <codelibs/shellutils.h>
|
||||||
|
|
||||||
#include <Dt/DtNlUtils.h>
|
#include <Dt/DtNlUtils.h>
|
||||||
#include "Encaps.h"
|
#include "Encaps.h"
|
||||||
#include "SharedProcs.h"
|
#include "SharedProcs.h"
|
||||||
|
|
|
@ -113,6 +113,7 @@
|
||||||
#include <Dt/IconP.h>
|
#include <Dt/IconP.h>
|
||||||
#include <Dt/IconFile.h>
|
#include <Dt/IconFile.h>
|
||||||
#include <Dt/Connect.h>
|
#include <Dt/Connect.h>
|
||||||
|
#include <Dt/Dts.h>
|
||||||
#include <Dt/Wsm.h>
|
#include <Dt/Wsm.h>
|
||||||
#include <Dt/WsmM.h>
|
#include <Dt/WsmM.h>
|
||||||
#include <Dt/UserMsg.h>
|
#include <Dt/UserMsg.h>
|
||||||
|
@ -121,10 +122,12 @@
|
||||||
#include <Xm/DragIcon.h>
|
#include <Xm/DragIcon.h>
|
||||||
#include <Xm/DragC.h>
|
#include <Xm/DragC.h>
|
||||||
#include <Dt/Dnd.h>
|
#include <Dt/Dnd.h>
|
||||||
|
#include <Dt/HourGlass.h>
|
||||||
|
|
||||||
#include <Dt/ActionP.h>
|
#include <Dt/ActionP.h>
|
||||||
#include <Dt/Action.h>
|
#include <Dt/Action.h>
|
||||||
#include <Dt/Session.h>
|
#include <Dt/Session.h>
|
||||||
|
#include <Dt/SharedProcs.h>
|
||||||
|
|
||||||
#include <Tt/tttk.h>
|
#include <Tt/tttk.h>
|
||||||
|
|
||||||
|
|
|
@ -116,8 +116,10 @@
|
||||||
#include "Encaps.h"
|
#include "Encaps.h"
|
||||||
#include "FileMgr.h"
|
#include "FileMgr.h"
|
||||||
#include "Desktop.h"
|
#include "Desktop.h"
|
||||||
|
#include "IconicPath.h"
|
||||||
#include "Main.h"
|
#include "Main.h"
|
||||||
#include "SharedMsgs.h"
|
#include "SharedMsgs.h"
|
||||||
|
#include "SharedProcs.h"
|
||||||
#include "Prefs.h"
|
#include "Prefs.h"
|
||||||
|
|
||||||
extern Boolean removingTrash;
|
extern Boolean removingTrash;
|
||||||
|
@ -231,6 +233,8 @@ typedef struct
|
||||||
/* background procedure */
|
/* background procedure */
|
||||||
typedef int (*DirBackgroundProc)(int, Directory *, ActivityStatus);
|
typedef int (*DirBackgroundProc)(int, Directory *, ActivityStatus);
|
||||||
|
|
||||||
|
extern void _DtFlushIconFileCache(String path);
|
||||||
|
|
||||||
|
|
||||||
/*--------------------------------------------------------------------
|
/*--------------------------------------------------------------------
|
||||||
* Static Function Declarations
|
* Static Function Declarations
|
||||||
|
@ -293,7 +297,7 @@ int maxDirectoryProcesses = 10;
|
||||||
int maxRereadProcesses = 5;
|
int maxRereadProcesses = 5;
|
||||||
int maxRereadProcsPerTick = 1;
|
int maxRereadProcsPerTick = 1;
|
||||||
|
|
||||||
XtIntervalId checkBrokenLinkTimerId = NULL;
|
XtIntervalId checkBrokenLinkTimerId = None;
|
||||||
|
|
||||||
static Directory ** directory_set = NULL;
|
static Directory ** directory_set = NULL;
|
||||||
static int directory_count = 0;
|
static int directory_count = 0;
|
||||||
|
@ -408,7 +412,7 @@ InitializeDirectoryRead(
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
checkBrokenLinkTimerId = NULL;
|
checkBrokenLinkTimerId = None;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2127,7 +2131,7 @@ ReaddirPipeCallback(
|
||||||
int *fd,
|
int *fd,
|
||||||
XtInputId *id)
|
XtInputId *id)
|
||||||
{
|
{
|
||||||
static whined_fd = 0;
|
static int whined_fd = 0;
|
||||||
PipeCallbackData *pipe_data = (PipeCallbackData *)client_data;
|
PipeCallbackData *pipe_data = (PipeCallbackData *)client_data;
|
||||||
Directory *directory = pipe_data->directory;
|
Directory *directory = pipe_data->directory;
|
||||||
FileMgrData *file_mgr_data;
|
FileMgrData *file_mgr_data;
|
||||||
|
@ -2364,7 +2368,7 @@ ReaddirPipeCallback(
|
||||||
{
|
{
|
||||||
whined_fd = *fd;
|
whined_fd = *fd;
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"ReaddirPipeCallback: badmsg, ppid=%d pid=%d fd=%d activ'y=%d\n",
|
"ReaddirPipeCallback: badmsg=%d, ppid=%d pid=%d fd=%d activ'y=%d\n",
|
||||||
msg, getppid(), getpid(), *fd, activity);
|
msg, getppid(), getpid(), *fd, activity);
|
||||||
}
|
}
|
||||||
directory->errnum = -1;
|
directory->errnum = -1;
|
||||||
|
@ -4682,7 +4686,7 @@ TimerEventBrokenLinks(
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
checkBrokenLinkTimerId = NULL;
|
checkBrokenLinkTimerId = None;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
2
cde/programs/dtfile/DtSvcInternal.h
Normal file
2
cde/programs/dtfile/DtSvcInternal.h
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
/* Additional import */
|
||||||
|
extern Pixmap _DtGetMask(Screen *screen, char *image_name);
|
|
@ -83,25 +83,21 @@
|
||||||
#include <Xm/AtomMgr.h>
|
#include <Xm/AtomMgr.h>
|
||||||
#include <Xm/MwmUtil.h>
|
#include <Xm/MwmUtil.h>
|
||||||
#include <Xm/VendorSEP.h>
|
#include <Xm/VendorSEP.h>
|
||||||
|
#include <Xm/XmPrivate.h> /* _XmStringUngenerate, _XmGetWidgetExtData */
|
||||||
#include <X11/ShellP.h>
|
#include <X11/ShellP.h>
|
||||||
#include <X11/Shell.h>
|
#include <X11/Shell.h>
|
||||||
#include <X11/Xutil.h>
|
#include <X11/Xutil.h>
|
||||||
#include <X11/Xatom.h>
|
#include <X11/Xatom.h>
|
||||||
#include <X11/Intrinsic.h>
|
#include <X11/Intrinsic.h>
|
||||||
/* Copied from Xm/BaseClassI.h */
|
|
||||||
extern XmWidgetExtData _XmGetWidgetExtData(
|
|
||||||
Widget widget,
|
|
||||||
#if NeedWidePrototypes
|
|
||||||
unsigned int extType) ;
|
|
||||||
#else
|
|
||||||
unsigned char extType) ;
|
|
||||||
#endif /* NeedWidePrototypes */
|
|
||||||
|
|
||||||
#include <Dt/Wsm.h>
|
#include <Dt/Wsm.h>
|
||||||
#include <Dt/DtNlUtils.h>
|
#include <Dt/DtNlUtils.h>
|
||||||
|
|
||||||
#include "Encaps.h"
|
#include "Encaps.h"
|
||||||
|
#include "Desktop.h"
|
||||||
#include "Filter.h"
|
#include "Filter.h"
|
||||||
|
#include "FileMgr.h"
|
||||||
|
#include "Main.h"
|
||||||
#include "ModAttr.h"
|
#include "ModAttr.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -332,6 +332,10 @@ extern void _DtShowBuiltDialog(
|
||||||
Boolean iconify_state,
|
Boolean iconify_state,
|
||||||
XClassHint * classHints ) ;
|
XClassHint * classHints ) ;
|
||||||
|
|
||||||
|
extern void _DtChangeTo(
|
||||||
|
XtPointer client_data,
|
||||||
|
char *directory) ;
|
||||||
|
|
||||||
extern void _DtFreeDialog(
|
extern void _DtFreeDialog(
|
||||||
DialogData *dialog_data);
|
DialogData *dialog_data);
|
||||||
/******** End Public Function Declarations ********/
|
/******** End Public Function Declarations ********/
|
||||||
|
|
|
@ -149,6 +149,7 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
#include <fnmatch.h>
|
||||||
|
|
||||||
#include <Xm/XmP.h>
|
#include <Xm/XmP.h>
|
||||||
#include <Xm/Xm.h>
|
#include <Xm/Xm.h>
|
||||||
|
@ -169,8 +170,10 @@
|
||||||
#include <Xm/RowColumn.h>
|
#include <Xm/RowColumn.h>
|
||||||
#include <Xm/LabelG.h>
|
#include <Xm/LabelG.h>
|
||||||
#include <Xm/PushBG.h>
|
#include <Xm/PushBG.h>
|
||||||
|
#include <Xm/ToggleBG.h>
|
||||||
#include <Xm/SeparatoG.h>
|
#include <Xm/SeparatoG.h>
|
||||||
#include <Xm/ScrollBar.h>
|
#include <Xm/ScrollBar.h>
|
||||||
|
#include <Xm/ScrolledW.h>
|
||||||
#include <Xm/TextF.h>
|
#include <Xm/TextF.h>
|
||||||
#include <Xm/Frame.h>
|
#include <Xm/Frame.h>
|
||||||
#include <Xm/Screen.h>
|
#include <Xm/Screen.h>
|
||||||
|
@ -194,9 +197,12 @@
|
||||||
#include <Dt/HourGlass.h>
|
#include <Dt/HourGlass.h>
|
||||||
#include <Dt/Dts.h>
|
#include <Dt/Dts.h>
|
||||||
#include <Dt/UserMsg.h>
|
#include <Dt/UserMsg.h>
|
||||||
|
#include <Dt/SharedProcs.h>
|
||||||
|
|
||||||
#include <Tt/tttk.h>
|
#include <Tt/tttk.h>
|
||||||
|
|
||||||
|
#include <Xm/XmPrivate.h> /* _XmIsEventUnique _XmSetInDragMode _XmRecordEvent */
|
||||||
|
|
||||||
#include "Encaps.h"
|
#include "Encaps.h"
|
||||||
#include "SharedProcs.h"
|
#include "SharedProcs.h"
|
||||||
#include "FileMgr.h"
|
#include "FileMgr.h"
|
||||||
|
@ -415,6 +421,12 @@ static int dragIconPixmapOffsetY;
|
||||||
FileMgrPopup fileMgrPopup = {NULL};
|
FileMgrPopup fileMgrPopup = {NULL};
|
||||||
|
|
||||||
|
|
||||||
|
/* Obsolete Motif highlighting and unhighlighting routines */
|
||||||
|
extern void _XmHighlightBorder(Widget w);
|
||||||
|
extern void _XmUnhighlightBorder(Widget w);
|
||||||
|
|
||||||
|
extern void SelectDTFile (DesktopRec *desktopWindow);
|
||||||
|
|
||||||
/************************************************************************
|
/************************************************************************
|
||||||
************************************************************************
|
************************************************************************
|
||||||
*
|
*
|
||||||
|
@ -7246,7 +7258,7 @@ DisplayWorkProc(
|
||||||
|
|
||||||
dialog_data = _DtGetInstanceData ((XtPointer)file_mgr_rec);
|
dialog_data = _DtGetInstanceData ((XtPointer)file_mgr_rec);
|
||||||
if (dialog_data == NULL)
|
if (dialog_data == NULL)
|
||||||
return;
|
return False;
|
||||||
|
|
||||||
file_mgr_data = (FileMgrData *) dialog_data->data;
|
file_mgr_data = (FileMgrData *) dialog_data->data;
|
||||||
file_window = (XmManagerWidget) file_mgr_rec->file_window;
|
file_window = (XmManagerWidget) file_mgr_rec->file_window;
|
||||||
|
|
|
@ -92,6 +92,9 @@
|
||||||
#include <Dt/Connect.h>
|
#include <Dt/Connect.h>
|
||||||
#include <Dt/DtNlUtils.h>
|
#include <Dt/DtNlUtils.h>
|
||||||
#include <Dt/FileM.h>
|
#include <Dt/FileM.h>
|
||||||
|
#include <Dt/HourGlass.h>
|
||||||
|
#include <Dt/Dts.h>
|
||||||
|
#include <Dt/SharedProcs.h>
|
||||||
|
|
||||||
#include <Tt/tttk.h>
|
#include <Tt/tttk.h>
|
||||||
|
|
||||||
|
|
|
@ -119,6 +119,7 @@
|
||||||
#include <Dt/DtP.h> /* required for DtDirPaths type */
|
#include <Dt/DtP.h> /* required for DtDirPaths type */
|
||||||
#include <Dt/Connect.h>
|
#include <Dt/Connect.h>
|
||||||
#include <Dt/DtNlUtils.h>
|
#include <Dt/DtNlUtils.h>
|
||||||
|
#include <Dt/SharedProcs.h>
|
||||||
|
|
||||||
#include "Encaps.h"
|
#include "Encaps.h"
|
||||||
#include "SharedProcs.h"
|
#include "SharedProcs.h"
|
||||||
|
|
|
@ -106,6 +106,7 @@
|
||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
#include <ctype.h>
|
||||||
|
|
||||||
#include <Xm/XmP.h>
|
#include <Xm/XmP.h>
|
||||||
#include <Xm/CascadeB.h>
|
#include <Xm/CascadeB.h>
|
||||||
|
@ -142,6 +143,8 @@
|
||||||
#include <Dt/HourGlass.h>
|
#include <Dt/HourGlass.h>
|
||||||
#include <Dt/DtNlUtils.h>
|
#include <Dt/DtNlUtils.h>
|
||||||
#include <Dt/Dts.h>
|
#include <Dt/Dts.h>
|
||||||
|
#include <Dt/SharedProcs.h>
|
||||||
|
#include <Dt/Wsm.h>
|
||||||
|
|
||||||
#include <Xm/DragIcon.h>
|
#include <Xm/DragIcon.h>
|
||||||
#include <Xm/DragC.h>
|
#include <Xm/DragC.h>
|
||||||
|
@ -163,6 +166,7 @@
|
||||||
#include "Prefs.h"
|
#include "Prefs.h"
|
||||||
#include "SharedMsgs.h"
|
#include "SharedMsgs.h"
|
||||||
#include "IconicPath.h"
|
#include "IconicPath.h"
|
||||||
|
#include "DtSvcInternal.h"
|
||||||
|
|
||||||
|
|
||||||
/* Dialog classes installed by Main.c */
|
/* Dialog classes installed by Main.c */
|
||||||
|
|
|
@ -98,6 +98,8 @@
|
||||||
#include <Xm/XmP.h>
|
#include <Xm/XmP.h>
|
||||||
#include <Xm/Xm.h>
|
#include <Xm/Xm.h>
|
||||||
#include <Xm/MwmUtil.h>
|
#include <Xm/MwmUtil.h>
|
||||||
|
#include <Xm/TextF.h>
|
||||||
|
#include <Xm/ScrollBar.h>
|
||||||
#include <X11/ShellP.h>
|
#include <X11/ShellP.h>
|
||||||
#include <X11/Shell.h>
|
#include <X11/Shell.h>
|
||||||
#include <X11/Xutil.h>
|
#include <X11/Xutil.h>
|
||||||
|
@ -116,6 +118,7 @@
|
||||||
#include <Dt/Wsm.h>
|
#include <Dt/Wsm.h>
|
||||||
#include <Dt/DtNlUtils.h>
|
#include <Dt/DtNlUtils.h>
|
||||||
#include <Dt/HourGlass.h>
|
#include <Dt/HourGlass.h>
|
||||||
|
#include <Dt/SharedProcs.h>
|
||||||
|
|
||||||
#include <Tt/tttk.h>
|
#include <Tt/tttk.h>
|
||||||
|
|
||||||
|
@ -607,7 +610,7 @@ FileMoveCopyProcess(
|
||||||
rc = -1;
|
rc = -1;
|
||||||
write(pipe_s2m, &pipe_msg, sizeof(short));
|
write(pipe_s2m, &pipe_msg, sizeof(short));
|
||||||
write(pipe_s2m, &rc, sizeof(int));
|
write(pipe_s2m, &rc, sizeof(int));
|
||||||
return;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
DtEliminateDots(target_dir);
|
DtEliminateDots(target_dir);
|
||||||
|
@ -1306,7 +1309,7 @@ FileMoveCopyProcessDesktop(
|
||||||
rc = -1;
|
rc = -1;
|
||||||
write(pipe_s2m, &pipe_msg, sizeof(short));
|
write(pipe_s2m, &pipe_msg, sizeof(short));
|
||||||
write(pipe_s2m, &rc, sizeof(int));
|
write(pipe_s2m, &rc, sizeof(int));
|
||||||
return;
|
return rc;
|
||||||
}
|
}
|
||||||
DtEliminateDots(to);
|
DtEliminateDots(to);
|
||||||
|
|
||||||
|
|
|
@ -95,6 +95,8 @@
|
||||||
|
|
||||||
#include <Dt/DtP.h>
|
#include <Dt/DtP.h>
|
||||||
#include <Dt/DtNlUtils.h>
|
#include <Dt/DtNlUtils.h>
|
||||||
|
#include <Dt/Dts.h>
|
||||||
|
#include <Dt/SharedProcs.h>
|
||||||
|
|
||||||
#include "Encaps.h"
|
#include "Encaps.h"
|
||||||
#include "SharedProcs.h"
|
#include "SharedProcs.h"
|
||||||
|
@ -137,6 +139,8 @@ static DialogResource resources[] =
|
||||||
|
|
||||||
#define FM_TYPE_LABEL "TYPE_LABEL"
|
#define FM_TYPE_LABEL "TYPE_LABEL"
|
||||||
|
|
||||||
|
/******** Forward Function Declaration ********/
|
||||||
|
int ReadInFiletypes(FilterData *filter_data);
|
||||||
|
|
||||||
/******** Static Function Declarations ********/
|
/******** Static Function Declarations ********/
|
||||||
|
|
||||||
|
|
|
@ -117,9 +117,13 @@
|
||||||
#include <Dt/Connect.h>
|
#include <Dt/Connect.h>
|
||||||
#include <Dt/DtNlUtils.h>
|
#include <Dt/DtNlUtils.h>
|
||||||
#include <Dt/HourGlass.h>
|
#include <Dt/HourGlass.h>
|
||||||
|
#include <Dt/Dts.h>
|
||||||
|
#include <Dt/SharedProcs.h>
|
||||||
|
|
||||||
#include <Tt/tttk.h>
|
#include <Tt/tttk.h>
|
||||||
|
|
||||||
|
#include <Xm/XmPrivate.h> /* _XmStringUngenerate */
|
||||||
|
|
||||||
#include "Encaps.h"
|
#include "Encaps.h"
|
||||||
#include "SharedProcs.h"
|
#include "SharedProcs.h"
|
||||||
#include "FileMgr.h"
|
#include "FileMgr.h"
|
||||||
|
@ -236,7 +240,7 @@ static void InvalidFindMessage(
|
||||||
FindRec *find_rec,
|
FindRec *find_rec,
|
||||||
int messageIndex,
|
int messageIndex,
|
||||||
String extra_string) ;
|
String extra_string) ;
|
||||||
static int FreeMatchInfo(
|
static void FreeMatchInfo(
|
||||||
String *matches,
|
String *matches,
|
||||||
int numMatches) ;
|
int numMatches) ;
|
||||||
static void LeaveStopBttn(
|
static void LeaveStopBttn(
|
||||||
|
@ -951,7 +955,7 @@ GetDefaultValues( void )
|
||||||
find_data->height = 0;
|
find_data->height = 0;
|
||||||
find_data->width = 0;
|
find_data->width = 0;
|
||||||
|
|
||||||
(char *)getcwd((char *)dirbuf, (unsigned int)MAX_DIR_PATH_LEN);
|
(void)getcwd((char *)dirbuf, (unsigned int)MAX_DIR_PATH_LEN);
|
||||||
if(restrictMode &&
|
if(restrictMode &&
|
||||||
strncmp(users_home_dir, dirbuf, strlen(users_home_dir)) != 0)
|
strncmp(users_home_dir, dirbuf, strlen(users_home_dir)) != 0)
|
||||||
{
|
{
|
||||||
|
@ -1391,7 +1395,7 @@ InvalidFindMessage(
|
||||||
*
|
*
|
||||||
************************************************************************/
|
************************************************************************/
|
||||||
|
|
||||||
static int
|
static void
|
||||||
FreeMatchInfo(
|
FreeMatchInfo(
|
||||||
String *matches,
|
String *matches,
|
||||||
int numMatches )
|
int numMatches )
|
||||||
|
|
|
@ -74,6 +74,7 @@
|
||||||
#include <Dt/DtNlUtils.h>
|
#include <Dt/DtNlUtils.h>
|
||||||
#include <Dt/FileM.h>
|
#include <Dt/FileM.h>
|
||||||
#include <Dt/Action.h>
|
#include <Dt/Action.h>
|
||||||
|
#include <Dt/SharedProcs.h>
|
||||||
#include "Encaps.h"
|
#include "Encaps.h"
|
||||||
|
|
||||||
#include <Dt/HelpDialog.h>
|
#include <Dt/HelpDialog.h>
|
||||||
|
|
|
@ -56,8 +56,10 @@
|
||||||
|
|
||||||
#include <Xm/Xm.h>
|
#include <Xm/Xm.h>
|
||||||
#include <Xm/XmP.h>
|
#include <Xm/XmP.h>
|
||||||
|
#include <Xm/DrawP.h>
|
||||||
#include <Xm/TextF.h>
|
#include <Xm/TextF.h>
|
||||||
#include <Xm/VirtKeys.h>
|
#include <Xm/VirtKeys.h>
|
||||||
|
#include <Xm/ScrollBar.h>
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
@ -80,6 +82,7 @@
|
||||||
#include "Prefs.h"
|
#include "Prefs.h"
|
||||||
#include "Common.h"
|
#include "Common.h"
|
||||||
#include "Filter.h"
|
#include "Filter.h"
|
||||||
|
#include "SharedProcs.h"
|
||||||
|
|
||||||
/* For HightlightBorder & UnhighlightBorder */
|
/* For HightlightBorder & UnhighlightBorder */
|
||||||
externalref XmPrimitiveClassRec xmPrimitiveClassRec;
|
externalref XmPrimitiveClassRec xmPrimitiveClassRec;
|
||||||
|
|
|
@ -83,6 +83,8 @@
|
||||||
#include "Encaps.h"
|
#include "Encaps.h"
|
||||||
#include "SharedProcs.h"
|
#include "SharedProcs.h"
|
||||||
|
|
||||||
|
#include <Xm/XmPrivate.h> /* _XmShellIsExclusive */
|
||||||
|
|
||||||
#include "Desktop.h"
|
#include "Desktop.h"
|
||||||
#include "FileMgr.h"
|
#include "FileMgr.h"
|
||||||
#include "Main.h"
|
#include "Main.h"
|
||||||
|
|
|
@ -138,6 +138,7 @@
|
||||||
#include <Xm/RowColumn.h>
|
#include <Xm/RowColumn.h>
|
||||||
#include <Xm/MwmUtil.h>
|
#include <Xm/MwmUtil.h>
|
||||||
|
|
||||||
|
#include <Xm/IconFileP.h>
|
||||||
#include <Dt/Icon.h>
|
#include <Dt/Icon.h>
|
||||||
#include <Dt/IconP.h>
|
#include <Dt/IconP.h>
|
||||||
#include <Dt/IconFile.h>
|
#include <Dt/IconFile.h>
|
||||||
|
@ -156,6 +157,7 @@
|
||||||
#include <X11/Xmu/Editres.h>
|
#include <X11/Xmu/Editres.h>
|
||||||
#endif
|
#endif
|
||||||
#include <Dt/Session.h>
|
#include <Dt/Session.h>
|
||||||
|
#include <Dt/Dt.h>
|
||||||
#include <Dt/DtP.h>
|
#include <Dt/DtP.h>
|
||||||
#include <Dt/Connect.h>
|
#include <Dt/Connect.h>
|
||||||
#include <Dt/FileM.h>
|
#include <Dt/FileM.h>
|
||||||
|
@ -168,6 +170,7 @@
|
||||||
#include <Dt/CommandM.h>
|
#include <Dt/CommandM.h>
|
||||||
#include <Dt/EnvControlP.h>
|
#include <Dt/EnvControlP.h>
|
||||||
#include <Dt/Dts.h>
|
#include <Dt/Dts.h>
|
||||||
|
#include <Dt/SharedProcs.h>
|
||||||
|
|
||||||
#include "Encaps.h"
|
#include "Encaps.h"
|
||||||
#include "SharedProcs.h"
|
#include "SharedProcs.h"
|
||||||
|
@ -185,6 +188,24 @@
|
||||||
#include "Find.h"
|
#include "Find.h"
|
||||||
#include "ModAttr.h"
|
#include "ModAttr.h"
|
||||||
|
|
||||||
|
/* From Command.c */
|
||||||
|
extern void MoveCopyLinkHandler(Tt_message ttMsg, int opType);
|
||||||
|
|
||||||
|
/* From Desktop.c */
|
||||||
|
extern void PutOnWorkspaceHandler(Tt_message ttMsg);
|
||||||
|
|
||||||
|
/* From Filter.c */
|
||||||
|
extern void UpdateFilterAfterDBReread (DialogData * dialog_data);
|
||||||
|
|
||||||
|
/* From ToolTalk.c */
|
||||||
|
extern int InitializeToolTalkSession( Widget topLevel, int ttFd );
|
||||||
|
extern Tt_status InitializeToolTalkProcid( int *ttFd, Widget topLevel, Boolean sendStarted );
|
||||||
|
extern void FinalizeToolTalkSession();
|
||||||
|
/* From Trash.c */
|
||||||
|
void CloseTrash(Widget w, XtPointer client_data, XtPointer call_data) ;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* When openDir resource is set to NEW
|
/* When openDir resource is set to NEW
|
||||||
File Manager will use this prefix to find for a different icon
|
File Manager will use this prefix to find for a different icon
|
||||||
to display.
|
to display.
|
||||||
|
@ -1626,7 +1647,7 @@ _DtPerfChkpntMsgSend("Begin XtInitialize");
|
||||||
mod_attr_dialog = _DtInstallDialog (modAttrClass, True, True);
|
mod_attr_dialog = _DtInstallDialog (modAttrClass, True, True);
|
||||||
help_dialog = _DtInstallDialog (helpClass, False, False);
|
help_dialog = _DtInstallDialog (helpClass, False, False);
|
||||||
|
|
||||||
if(special_view == True && special_restricted != NULL);
|
if(special_view == True && special_restricted != NULL) {
|
||||||
if(strncmp(special_restricted, "~", 1) == 0)
|
if(strncmp(special_restricted, "~", 1) == 0)
|
||||||
{
|
{
|
||||||
char *ptr, *ptr1;
|
char *ptr, *ptr1;
|
||||||
|
@ -1637,6 +1658,7 @@ _DtPerfChkpntMsgSend("Begin XtInitialize");
|
||||||
if(ptr1[0] == '\0')
|
if(ptr1[0] == '\0')
|
||||||
*ptr = '\0';
|
*ptr = '\0';
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Setup the settings file if any to setup */
|
/* Setup the settings file if any to setup */
|
||||||
RestoreSettingsFile();
|
RestoreSettingsFile();
|
||||||
|
@ -2988,7 +3010,7 @@ RestoreSession(
|
||||||
status = DtSessionRestorePath(toplevel, &full_path, path);
|
status = DtSessionRestorePath(toplevel, &full_path, path);
|
||||||
|
|
||||||
if (!status)
|
if (!status)
|
||||||
return;
|
return(-1);
|
||||||
|
|
||||||
if (stat(full_path, &stat_buf) != 0)
|
if (stat(full_path, &stat_buf) != 0)
|
||||||
{
|
{
|
||||||
|
@ -4393,7 +4415,7 @@ ViewDirectoryProc(
|
||||||
XtFree(errTitle);
|
XtFree(errTitle);
|
||||||
XtFree(errMsg);
|
XtFree(errMsg);
|
||||||
XtFree(dmsg);
|
XtFree(dmsg);
|
||||||
return;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -505,6 +505,10 @@ extern void ChangeToNewDir (
|
||||||
Widget text_field,
|
Widget text_field,
|
||||||
XtPointer client_data,
|
XtPointer client_data,
|
||||||
XmAnyCallbackStruct * callback_data );
|
XmAnyCallbackStruct * callback_data );
|
||||||
|
|
||||||
|
extern void ChangeDirectoryToParent(
|
||||||
|
FileMgrRec * file_mgr_rec,
|
||||||
|
char *directory) ;
|
||||||
extern void DropOnChangeView (
|
extern void DropOnChangeView (
|
||||||
Widget w,
|
Widget w,
|
||||||
XtPointer client_data,
|
XtPointer client_data,
|
||||||
|
@ -662,6 +666,10 @@ extern void DirectoryFileModified(
|
||||||
extern void DirectoryEndModify(
|
extern void DirectoryEndModify(
|
||||||
char *host_name,
|
char *host_name,
|
||||||
char *directory_name) ;
|
char *directory_name) ;
|
||||||
|
extern void DirectoryAbortModify(
|
||||||
|
char *host_name,
|
||||||
|
char *directory_name);
|
||||||
|
|
||||||
extern void UpdateDirectorySet( void ) ;
|
extern void UpdateDirectorySet( void ) ;
|
||||||
extern void UpdateCachedDirectories(
|
extern void UpdateCachedDirectories(
|
||||||
View **view_set,
|
View **view_set,
|
||||||
|
@ -676,6 +684,11 @@ extern char * GetDirectoryLogicalType(
|
||||||
extern FileData * FileData2toFileData(
|
extern FileData * FileData2toFileData(
|
||||||
FileData2 *file_data2,
|
FileData2 *file_data2,
|
||||||
int *l);
|
int *l);
|
||||||
|
|
||||||
|
extern FileData * ReadFileData(
|
||||||
|
char *full_directory_name,
|
||||||
|
char *file_name);
|
||||||
|
|
||||||
extern int ReadFileData2(
|
extern int ReadFileData2(
|
||||||
FileData2 *fdata,
|
FileData2 *fdata,
|
||||||
char *full_directory_name,
|
char *full_directory_name,
|
||||||
|
@ -888,8 +901,23 @@ extern void RepairFileWindow (
|
||||||
FileMgrData * file_mgr_data);
|
FileMgrData * file_mgr_data);
|
||||||
StrcollProc GetStrcollProc(void);
|
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 */
|
/* prototypes from FileDialog.h */
|
||||||
|
|
||||||
|
@ -938,6 +966,10 @@ extern Boolean FileManip(
|
||||||
void (*errorHandler)(),
|
void (*errorHandler)(),
|
||||||
Boolean checkForBusyDir,
|
Boolean checkForBusyDir,
|
||||||
int type);
|
int type);
|
||||||
|
extern int CheckAccess(
|
||||||
|
char *fname,
|
||||||
|
int what);
|
||||||
|
|
||||||
extern char * DName(
|
extern char * DName(
|
||||||
register char *name) ;
|
register char *name) ;
|
||||||
|
|
||||||
|
@ -1295,6 +1327,7 @@ extern Boolean FileFromTrash(
|
||||||
extern int CheckDeletePermission(
|
extern int CheckDeletePermission(
|
||||||
char *dir,
|
char *dir,
|
||||||
char *file);
|
char *file);
|
||||||
|
extern int EraseObject(char *file_name);
|
||||||
|
|
||||||
/* prototype for Desktop.c */
|
/* prototype for Desktop.c */
|
||||||
|
|
||||||
|
@ -1465,7 +1498,6 @@ extern Boolean MakeFilesFromBuffersDT(
|
||||||
extern Boolean fsDialogAvailable(const String path,
|
extern Boolean fsDialogAvailable(const String path,
|
||||||
dtFSData * fsDialogData);
|
dtFSData * fsDialogData);
|
||||||
|
|
||||||
|
|
||||||
/* prototype for Utils.c */
|
/* prototype for Utils.c */
|
||||||
extern char *
|
extern char *
|
||||||
ResolveLocalPathName(
|
ResolveLocalPathName(
|
||||||
|
@ -1558,6 +1590,23 @@ buffer_multicollide_ok_callback(
|
||||||
XtPointer client_data,
|
XtPointer client_data,
|
||||||
XtPointer call_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
|
* macro to get message catalog strings
|
||||||
|
|
|
@ -65,6 +65,7 @@
|
||||||
|
|
||||||
#include <Xm/XmP.h>
|
#include <Xm/XmP.h>
|
||||||
#include <Xm/CascadeBG.h>
|
#include <Xm/CascadeBG.h>
|
||||||
|
#include <Xm/TextF.h>
|
||||||
#include <Xm/PushBG.h>
|
#include <Xm/PushBG.h>
|
||||||
#include <Xm/RowColumn.h>
|
#include <Xm/RowColumn.h>
|
||||||
#include <Xm/SeparatoG.h>
|
#include <Xm/SeparatoG.h>
|
||||||
|
@ -72,6 +73,8 @@
|
||||||
#include <Xm/MessageB.h>
|
#include <Xm/MessageB.h>
|
||||||
#include <Xm/MenuShellP.h>
|
#include <Xm/MenuShellP.h>
|
||||||
|
|
||||||
|
#include <Xm/XmPrivate.h> /* _XmGetActiveTopLevelMenu */
|
||||||
|
|
||||||
#include <X11/ShellP.h>
|
#include <X11/ShellP.h>
|
||||||
|
|
||||||
#include <Dt/DtP.h>
|
#include <Dt/DtP.h>
|
||||||
|
@ -81,6 +84,7 @@
|
||||||
#include <Dt/Connect.h>
|
#include <Dt/Connect.h>
|
||||||
#include <Dt/Indicator.h>
|
#include <Dt/Indicator.h>
|
||||||
#include <Dt/FileM.h>
|
#include <Dt/FileM.h>
|
||||||
|
#include <Dt/SharedProcs.h>
|
||||||
|
|
||||||
#include "Encaps.h"
|
#include "Encaps.h"
|
||||||
#include "SharedProcs.h"
|
#include "SharedProcs.h"
|
||||||
|
|
|
@ -47,6 +47,7 @@
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include <sys/wait.h>
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
|
|
@ -87,6 +87,8 @@
|
||||||
#include <Dt/IconP.h>
|
#include <Dt/IconP.h>
|
||||||
#include <Dt/IconFile.h>
|
#include <Dt/IconFile.h>
|
||||||
#include <Dt/TitleBox.h>
|
#include <Dt/TitleBox.h>
|
||||||
|
#include <Dt/Dts.h>
|
||||||
|
#include <Dt/SharedProcs.h>
|
||||||
|
|
||||||
#include <X11/ShellP.h>
|
#include <X11/ShellP.h>
|
||||||
#include <X11/Shell.h>
|
#include <X11/Shell.h>
|
||||||
|
@ -1871,9 +1873,9 @@ OkCallback(
|
||||||
old = (ModAttrData *) old_dialog->data;
|
old = (ModAttrData *) old_dialog->data;
|
||||||
|
|
||||||
if(RecheckFlag(NULL,w))
|
if(RecheckFlag(NULL,w))
|
||||||
return;
|
return None;
|
||||||
else if(RecheckFlag(NULL,close))
|
else if(RecheckFlag(NULL,close))
|
||||||
return;
|
return None;
|
||||||
|
|
||||||
new_attr_data = (ModAttrData *) XtCalloc (1, sizeof (ModAttrData));
|
new_attr_data = (ModAttrData *) XtCalloc (1, sizeof (ModAttrData));
|
||||||
new_attr_data->displayed = True;
|
new_attr_data->displayed = True;
|
||||||
|
|
|
@ -59,6 +59,7 @@
|
||||||
|
|
||||||
#include <Dt/Connect.h>
|
#include <Dt/Connect.h>
|
||||||
#include <Dt/FileM.h>
|
#include <Dt/FileM.h>
|
||||||
|
#include <Dt/SharedProcs.h>
|
||||||
|
|
||||||
#include <Tt/tttk.h>
|
#include <Tt/tttk.h>
|
||||||
|
|
||||||
|
|
|
@ -66,6 +66,8 @@
|
||||||
#include <Dt/DtNlUtils.h>
|
#include <Dt/DtNlUtils.h>
|
||||||
#include <Dt/Connect.h>
|
#include <Dt/Connect.h>
|
||||||
|
|
||||||
|
#include <Xm/XmPrivate.h> /* _XmGetActiveTopLevelMenu */
|
||||||
|
|
||||||
#include "Encaps.h"
|
#include "Encaps.h"
|
||||||
#include "MultiView.h"
|
#include "MultiView.h"
|
||||||
|
|
||||||
|
|
|
@ -73,6 +73,7 @@
|
||||||
|
|
||||||
|
|
||||||
#include <Dt/DtNlUtils.h>
|
#include <Dt/DtNlUtils.h>
|
||||||
|
#include <Dt/SharedProcs.h>
|
||||||
|
|
||||||
#include "Encaps.h"
|
#include "Encaps.h"
|
||||||
#include "FileMgr.h"
|
#include "FileMgr.h"
|
||||||
|
|
|
@ -120,6 +120,8 @@ extern XmWidgetExtData _XmGetWidgetExtData(
|
||||||
#include <Dt/IconFile.h>
|
#include <Dt/IconFile.h>
|
||||||
#include <Dt/Action.h>
|
#include <Dt/Action.h>
|
||||||
#include <Dt/Dnd.h>
|
#include <Dt/Dnd.h>
|
||||||
|
#include <Dt/Utility.h>
|
||||||
|
#include <Dt/SharedProcs.h>
|
||||||
|
|
||||||
#include <Tt/tttk.h>
|
#include <Tt/tttk.h>
|
||||||
|
|
||||||
|
|
|
@ -38,8 +38,8 @@
|
||||||
****************************************************************************
|
****************************************************************************
|
||||||
************************************<+>*************************************/
|
************************************<+>*************************************/
|
||||||
|
|
||||||
#ifndef _SharedProcs_h
|
#ifndef _DtFile_SharedProcs_h
|
||||||
#define _SharedProcs_h
|
#define _DtFile_SharedProcs_h
|
||||||
|
|
||||||
#include <Dt/Icon.h>
|
#include <Dt/Icon.h>
|
||||||
#include <Dt/Action.h>
|
#include <Dt/Action.h>
|
||||||
|
@ -135,6 +135,7 @@ extern void _DtBuildActionArgsWithSelectedFiles(
|
||||||
int selected_file_count,
|
int selected_file_count,
|
||||||
DtActionArg **action_args,
|
DtActionArg **action_args,
|
||||||
int *args_count) ;
|
int *args_count) ;
|
||||||
|
|
||||||
extern void _DtBuildActionArgsWithDroppedFiles(
|
extern void _DtBuildActionArgsWithDroppedFiles(
|
||||||
FileViewData *dropped_on_obj,
|
FileViewData *dropped_on_obj,
|
||||||
DtDndDropCallbackStruct *drop_parameters,
|
DtDndDropCallbackStruct *drop_parameters,
|
||||||
|
@ -202,11 +203,5 @@ extern Boolean messageDisplayEnabled;
|
||||||
/* Flag controlling whether dialogs are auto-positioned */
|
/* Flag controlling whether dialogs are auto-positioned */
|
||||||
extern Boolean disableDialogAutoPlacement;
|
extern Boolean disableDialogAutoPlacement;
|
||||||
|
|
||||||
/* Generic overlay for all dialog 'Rec' structures */
|
#endif /* _DtFile_SharedProcs_h */
|
||||||
typedef struct
|
|
||||||
{
|
|
||||||
Widget shell;
|
|
||||||
} GenericRecord;
|
|
||||||
|
|
||||||
#endif /* _SharedProcs_h */
|
|
||||||
/* DON'T ADD ANYTHING AFTER THIS #endif */
|
/* DON'T ADD ANYTHING AFTER THIS #endif */
|
||||||
|
|
|
@ -131,6 +131,8 @@
|
||||||
#include <Dt/EnvControlP.h>
|
#include <Dt/EnvControlP.h>
|
||||||
#include <Dt/Wsm.h>
|
#include <Dt/Wsm.h>
|
||||||
#include <Dt/Dnd.h>
|
#include <Dt/Dnd.h>
|
||||||
|
#include <Dt/SharedProcs.h>
|
||||||
|
#include "DtSvcInternal.h" /* _DtGetMask */
|
||||||
|
|
||||||
#include <Tt/tttk.h>
|
#include <Tt/tttk.h>
|
||||||
|
|
||||||
|
@ -142,6 +144,7 @@
|
||||||
#include "Desktop.h"
|
#include "Desktop.h"
|
||||||
#include "Main.h"
|
#include "Main.h"
|
||||||
#include "SharedMsgs.h"
|
#include "SharedMsgs.h"
|
||||||
|
#include "dtcopy/fsrtns.h"
|
||||||
|
|
||||||
#define AdditionalHeader (GETMESSAGE(27,98, "(Plus %d additional object(s))"))
|
#define AdditionalHeader (GETMESSAGE(27,98, "(Plus %d additional object(s))"))
|
||||||
|
|
||||||
|
@ -244,6 +247,12 @@ Widget trashShell;
|
||||||
DialogData * primaryTrashHelpDialog = NULL;
|
DialogData * primaryTrashHelpDialog = NULL;
|
||||||
DialogData ** secondaryTrashHelpDialogList = NULL;
|
DialogData ** secondaryTrashHelpDialogList = NULL;
|
||||||
int secondaryTrashHelpDialogCount = 0;
|
int secondaryTrashHelpDialogCount = 0;
|
||||||
|
|
||||||
|
/* Forward prototype */
|
||||||
|
int EraseDir(char *dir_name);
|
||||||
|
/* From dtcopy/fsrtns.c */
|
||||||
|
extern int EmptyDir(char *sourceP, int rm, int force);
|
||||||
|
|
||||||
/* 'defines' for trash files */
|
/* 'defines' for trash files */
|
||||||
static char * TRASH_DIR = ".dt/Trash";
|
static char * TRASH_DIR = ".dt/Trash";
|
||||||
static char * TRASH_INFO_FILE = ".dt/Trash/.trashinfo";
|
static char * TRASH_INFO_FILE = ".dt/Trash/.trashinfo";
|
||||||
|
@ -1212,7 +1221,7 @@ TrashEmpty(void)
|
||||||
Select_All(*selectAllBtn, NULL, NULL);
|
Select_All(*selectAllBtn, NULL, NULL);
|
||||||
Remove(*removeBtn, NULL, NULL);
|
Remove(*removeBtn, NULL, NULL);
|
||||||
*/
|
*/
|
||||||
EmptyDir(trashFileMgrData->current_directory,0);
|
EmptyDir(trashFileMgrData->current_directory,0,0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4330,7 +4339,7 @@ RestoreVerifyOk(
|
||||||
|
|
||||||
if(lstat(dirs[1],&s1) < 0)
|
if(lstat(dirs[1],&s1) < 0)
|
||||||
goto goback;
|
goto goback;
|
||||||
fsErase(dirs[1],&status);
|
fsErase(dirs[1],&status,0);
|
||||||
FileList = (char **) XtMalloc(sizeof(char *));
|
FileList = (char **) XtMalloc(sizeof(char *));
|
||||||
FileList[0] = XtNewString(dirs[0]);
|
FileList[0] = XtNewString(dirs[0]);
|
||||||
RestoreFromTrash(FileList, (int) 1, NULL, NULL, NULL,True);
|
RestoreFromTrash(FileList, (int) 1, NULL, NULL, NULL,True);
|
||||||
|
|
|
@ -65,6 +65,7 @@
|
||||||
#include <Xm/Form.h>
|
#include <Xm/Form.h>
|
||||||
#include <Xm/Frame.h>
|
#include <Xm/Frame.h>
|
||||||
#include <Xm/BulletinB.h>
|
#include <Xm/BulletinB.h>
|
||||||
|
#include <Xm/MessageB.h>
|
||||||
#include <Xm/Text.h>
|
#include <Xm/Text.h>
|
||||||
#include <Xm/TextF.h>
|
#include <Xm/TextF.h>
|
||||||
#include <Xm/ScrolledW.h>
|
#include <Xm/ScrolledW.h>
|
||||||
|
@ -81,6 +82,11 @@
|
||||||
#define TOP_SPACING (VERTICAL_SPACING + 5)
|
#define TOP_SPACING (VERTICAL_SPACING + 5)
|
||||||
#define INDENTED_SPACING (HORIZONTAL_SPACING + 5)
|
#define INDENTED_SPACING (HORIZONTAL_SPACING + 5)
|
||||||
|
|
||||||
|
/* Cannot put into sharedFuncs.h due to conflict with FileManip.c */
|
||||||
|
extern int Check(
|
||||||
|
register char *spth,
|
||||||
|
register char *dpth,
|
||||||
|
int mode);
|
||||||
|
|
||||||
/*--------------------------------------------------------------------
|
/*--------------------------------------------------------------------
|
||||||
* Global variables
|
* Global variables
|
||||||
|
|
|
@ -61,6 +61,8 @@
|
||||||
#include <X11/Intrinsic.h>
|
#include <X11/Intrinsic.h>
|
||||||
#include <X11/StringDefs.h>
|
#include <X11/StringDefs.h>
|
||||||
#include <Xm/Xm.h>
|
#include <Xm/Xm.h>
|
||||||
|
#include <Xm/Text.h>
|
||||||
|
#include <Xm/TextF.h>
|
||||||
|
|
||||||
/* #Include <X11/Xmu/Editres.h> */ /* for editres debugging tool */
|
/* #Include <X11/Xmu/Editres.h> */ /* for editres debugging tool */
|
||||||
|
|
||||||
|
@ -758,7 +760,7 @@ InitNlsMessage(void)
|
||||||
* Main
|
* Main
|
||||||
*------------------------------------------------------------------*/
|
*------------------------------------------------------------------*/
|
||||||
|
|
||||||
void
|
int
|
||||||
main(int argc, char *argv[])
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
char msg[1024];
|
char msg[1024];
|
||||||
|
|
|
@ -68,7 +68,9 @@
|
||||||
#include <Xm/TextF.h>
|
#include <Xm/TextF.h>
|
||||||
#include <Xm/ToggleB.h>
|
#include <Xm/ToggleB.h>
|
||||||
#include <Xm/MessageB.h>
|
#include <Xm/MessageB.h>
|
||||||
|
#include <Xm/RowColumn.h>
|
||||||
#include <Xm/Separator.h>
|
#include <Xm/Separator.h>
|
||||||
|
#include <Dt/SharedProcs.h>
|
||||||
|
|
||||||
#include "dtcopy.h"
|
#include "dtcopy.h"
|
||||||
#include "sharedFuncs.h"
|
#include "sharedFuncs.h"
|
||||||
|
|
|
@ -96,6 +96,7 @@
|
||||||
|
|
||||||
#include <Dt/Connect.h>
|
#include <Dt/Connect.h>
|
||||||
#include <Dt/DtNlUtils.h>
|
#include <Dt/DtNlUtils.h>
|
||||||
|
#include <Dt/SharedProcs.h>
|
||||||
|
|
||||||
#include "sharedFuncs.h"
|
#include "sharedFuncs.h"
|
||||||
#include "dtcopy.h"
|
#include "dtcopy.h"
|
||||||
|
@ -645,7 +646,7 @@ _DtCopyPathFromInput(input_string, current_dir)
|
||||||
else if (!path)
|
else if (!path)
|
||||||
{
|
{
|
||||||
XtFree(tmp_path);
|
XtFree(tmp_path);
|
||||||
return;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Resolve '.' or '..' -- input is overwritten, output may be NULL! */
|
/* Resolve '.' or '..' -- input is overwritten, output may be NULL! */
|
||||||
|
|
|
@ -96,6 +96,6 @@ extern void TimeoutHandler(
|
||||||
XtPointer client_data,
|
XtPointer client_data,
|
||||||
XtIntervalId *id);
|
XtIntervalId *id);
|
||||||
|
|
||||||
|
extern char * get_path(char *path);
|
||||||
|
|
||||||
#endif /* SHAREDFUNCS_H */
|
#endif /* SHAREDFUNCS_H */
|
||||||
|
|
|
@ -1,56 +0,0 @@
|
||||||
/*
|
|
||||||
* 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 librararies and programs; if not, write
|
|
||||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
||||||
* Floor, Boston, MA 02110-1301 USA
|
|
||||||
*/
|
|
||||||
/*
|
|
||||||
* File: shellutils.h $XConsortium: shellutils.h /main/3 1995/10/26 16:13:31 rswiston $
|
|
||||||
*
|
|
||||||
* (c) Copyright 1993, 1994 Hewlett-Packard Company
|
|
||||||
* (c) Copyright 1993, 1994 International Business Machines Corp.
|
|
||||||
* (c) Copyright 1993, 1994 Sun Microsystems, Inc.
|
|
||||||
* (c) Copyright 1993, 1994 Novell, Inc.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef __SHELLUTILS_H_
|
|
||||||
#define __SHELLUTILS_H_
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C"
|
|
||||||
{
|
|
||||||
char const *const *shellscan(char const *str, int *argc = (int *)0,
|
|
||||||
unsigned opts = 0);
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
extern char **shellscan();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define SHX_NOGLOB 0x0001
|
|
||||||
#define SHX_NOTILDE 0x0002
|
|
||||||
#define SHX_NOVARS 0x0004
|
|
||||||
#define SHX_NOQUOTES 0x0008
|
|
||||||
#define SHX_NOSPACE 0x0010
|
|
||||||
#define SHX_NOMETA 0x0020
|
|
||||||
#define SHX_NOCMD 0x0040
|
|
||||||
#define SHX_COMPLETE 0x0080
|
|
||||||
|
|
||||||
#define SHX_NOGRAVE 0x0040 /* Obsolete, use NOCMD */
|
|
||||||
|
|
||||||
#endif /* __SHELLUTILS_H_ */
|
|
|
@ -61,7 +61,7 @@ static char rcsid[] = "$XConsortium: WmResParse.c /main/9 1996/11/01 10:17:34 dr
|
||||||
#endif /* PANELIST */
|
#endif /* PANELIST */
|
||||||
#include "WmResource.h"
|
#include "WmResource.h"
|
||||||
|
|
||||||
#include "Dt/shellutils.h" /* shellscan */
|
#include <codelibs/shellutils.h> /* shellscan */
|
||||||
|
|
||||||
#include <Xm/VirtKeysP.h>
|
#include <Xm/VirtKeysP.h>
|
||||||
#include <Xm/XmPrivate.h> /* _XmVirtKeysLoadFileBindings,
|
#include <Xm/XmPrivate.h> /* _XmVirtKeysLoadFileBindings,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue