1c9e2be55Smrg/* 2c9e2be55Smrg * $XConsortium: externs.h /main/36 1996/01/14 16:51:37 kaleb $ 3c9e2be55Smrg * 4c9e2be55Smrg * 5c9e2be55Smrg * COPYRIGHT 1987, 1989 6c9e2be55Smrg * DIGITAL EQUIPMENT CORPORATION 7c9e2be55Smrg * MAYNARD, MASSACHUSETTS 8c9e2be55Smrg * ALL RIGHTS RESERVED. 9c9e2be55Smrg * 10c9e2be55Smrg * THE INFORMATION IN THIS SOFTWARE IS SUBJECT TO CHANGE WITHOUT NOTICE AND 11c9e2be55Smrg * SHOULD NOT BE CONSTRUED AS A COMMITMENT BY DIGITAL EQUIPMENT CORPORATION. 12c9e2be55Smrg * DIGITAL MAKES NO REPRESENTATIONS ABOUT THE SUITABILITY OF THIS SOFTWARE FOR 13c9e2be55Smrg * ANY PURPOSE. IT IS SUPPLIED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY. 14c9e2be55Smrg * 15c9e2be55Smrg * IF THE SOFTWARE IS MODIFIED IN A MANNER CREATING DERIVATIVE COPYRIGHT 16c9e2be55Smrg * RIGHTS, APPROPRIATE LEGENDS MAY BE PLACED ON THE DERIVATIVE WORK IN 17c9e2be55Smrg * ADDITION TO THAT SET FORTH ABOVE. 18c9e2be55Smrg * 19c9e2be55Smrg * 20c9e2be55Smrg * Permission to use, copy, modify, and distribute this software and its 21c9e2be55Smrg * documentation for any purpose and without fee is hereby granted, provided 22c9e2be55Smrg * that the above copyright notice appear in all copies and that both that 23c9e2be55Smrg * copyright notice and this permission notice appear in supporting 24c9e2be55Smrg * documentation, and that the name of Digital Equipment Corporation not be 25c9e2be55Smrg * used in advertising or publicity pertaining to distribution of the software 26c9e2be55Smrg * without specific, written prior permission. 27c9e2be55Smrg */ 28c9e2be55Smrg/* $XFree86: xc/programs/xmh/externs.h,v 1.4 2001/10/28 03:34:38 tsi Exp $ */ 29c9e2be55Smrg 30c9e2be55Smrg#include <X11/Intrinsic.h> 31c9e2be55Smrg#include <errno.h> 32c9e2be55Smrg#include <stdlib.h> 33c9e2be55Smrg 34c9e2be55Smrg/* Action routines are declared in actions.h */ 35c9e2be55Smrg/* Functions which begin with `Do' are the corresponding callbacks. */ 36c9e2be55Smrg 37c9e2be55Smrg /* from command.c */ 38c9e2be55Smrg 3966d665a3Smrgextern int DoCommand (char * const *, const char *, const char *); 4066d665a3Smrgextern char * DoCommandToFile (char * const *); 4166d665a3Smrgextern char * DoCommandToString (char * const *); 42c9e2be55Smrg 43c9e2be55Smrg /* from compfuncs.c */ 44c9e2be55Smrg 45c9e2be55Smrgextern void DoResetCompose (XMH_CB_ARGS); 46c9e2be55Smrgextern void CreateForward (MsgList, String *, Cardinal); 47c9e2be55Smrg 48c9e2be55Smrg /* from folder.c */ 49c9e2be55Smrg 50c9e2be55Smrgextern void DoClose (XMH_CB_ARGS); 51c9e2be55Smrgextern void DoComposeMessage (XMH_CB_ARGS); 52c9e2be55Smrgextern void DoOpenFolder (XMH_CB_ARGS); 53c9e2be55Smrgextern void DoOpenFolderInNewWindow (XMH_CB_ARGS); 54c9e2be55Smrgextern void DoCreateFolder (XMH_CB_ARGS); 55c9e2be55Smrgextern void DoDeleteFolder (XMH_CB_ARGS); 56c9e2be55Smrgextern void DoSaveYourself (XMH_CB_ARGS); 5766d665a3Smrgextern void Push (Stack *, const char *); 5866d665a3Smrgextern const char * Pop (Stack *); 59c9e2be55Smrg 60c9e2be55Smrg /* from init.c */ 61c9e2be55Smrg 62c9e2be55Smrgextern void InitializeWorld (int, char **); 63c9e2be55Smrg 64c9e2be55Smrg /* from menu.c */ 65c9e2be55Smrg 6666d665a3Smrgextern void AttachMenuToButton (Button, Widget, const char *); 67c9e2be55Smrgextern void DoRememberMenuSelection (XMH_CB_ARGS); 6866d665a3Smrgextern void SendMenuEntryEnableMsg (Button, const char *, int); 69c9e2be55Smrgextern void ToggleMenuItem (Widget, Boolean); 70c9e2be55Smrg 71c9e2be55Smrg /* from miscfuncs.c */ 72c9e2be55Smrg 7366d665a3Smrgextern int ScanDir (const char *, char ***, 7466d665a3Smrg int (*)(char *)); 75c9e2be55Smrg 76c9e2be55Smrg /* from msg.c */ 77c9e2be55Smrg 78c9e2be55Smrgextern Widget CreateFileSource (Widget, String, Boolean); 79c9e2be55Smrgextern char* MsgName (Msg); 80c9e2be55Smrg 81c9e2be55Smrg /* from pick.c */ 82c9e2be55Smrg 83c9e2be55Smrgextern void InitPick (void); 8466d665a3Smrgextern void AddPick (Scrn, Toc, const char *, const char *); 85c9e2be55Smrg 86c9e2be55Smrg /* from popup.c */ 87c9e2be55Smrg 88c9e2be55Smrgextern void DestroyPopup (XMH_CB_ARGS); 89c9e2be55Smrgextern void WMDeletePopup (Widget, XEvent*); 90c9e2be55Smrgextern void PopupPrompt (Widget, String, XtCallbackProc); 91c9e2be55Smrgextern void PopupConfirm (Widget, String, 92c9e2be55Smrg XtCallbackList, XtCallbackList); 9366d665a3Smrgextern void PopupNotice (String, XtCallbackProc, XtPointer); 94c9e2be55Smrgextern void PopupError (Widget, String); 95c9e2be55Smrgextern void PopupWarningHandler(String, String, String, String, String *, Cardinal *); 96c9e2be55Smrg 97c9e2be55Smrg /* from screen.c */ 98c9e2be55Smrg 99c9e2be55Smrgextern void EnableProperButtons (Scrn); 100c9e2be55Smrgextern Scrn CreateNewScrn (ScrnKind); 101c9e2be55Smrgextern Scrn NewViewScrn (void); 102c9e2be55Smrgextern Scrn NewCompScrn (void); 103c9e2be55Smrgextern void ScreenSetAssocMsg (Scrn, Msg); 104c9e2be55Smrgextern void DestroyScrn (Scrn); 105c9e2be55Smrgextern void MapScrn (Scrn); 106c9e2be55Smrgextern Scrn ScrnFromWidget (Widget); 107c9e2be55Smrg 108c9e2be55Smrg /* from toc.c */ 109c9e2be55Smrg 110c9e2be55Smrgextern int TocFolderExists (Toc); 111c9e2be55Smrgextern Boolean TocHasChanges (Toc); 112c9e2be55Smrg 113c9e2be55Smrg /* from tocfuncs.c */ 114c9e2be55Smrg 115c9e2be55Smrgextern Boolean UserWantsAction (Widget, Scrn); 116c9e2be55Smrgextern void DoIncorporateNewMail (XMH_CB_ARGS); 117c9e2be55Smrgextern void DoCommit (XMH_CB_ARGS); 118c9e2be55Smrgextern void DoPack (XMH_CB_ARGS); 119c9e2be55Smrgextern void DoSort (XMH_CB_ARGS); 120c9e2be55Smrgextern void DoForceRescan (XMH_CB_ARGS); 121c9e2be55Smrgextern void DoReverseReadOrder (XMH_CB_ARGS); 122c9e2be55Smrgextern void DoNextView (XMH_CB_ARGS); 123c9e2be55Smrgextern void DoPrevView (XMH_CB_ARGS); 124c9e2be55Smrgextern void DoDelete (XMH_CB_ARGS); 125c9e2be55Smrgextern void DoMove (XMH_CB_ARGS); 126c9e2be55Smrgextern void DoCopy (XMH_CB_ARGS); 127c9e2be55Smrgextern void DoUnmark (XMH_CB_ARGS); 128c9e2be55Smrgextern void DoViewNew (XMH_CB_ARGS); 129c9e2be55Smrgextern void DoReply (XMH_CB_ARGS); 130c9e2be55Smrgextern void DoForward (XMH_CB_ARGS); 131c9e2be55Smrgextern void DoTocUseAsComp (XMH_CB_ARGS); 132c9e2be55Smrgextern void DoPrint (XMH_CB_ARGS); 133c9e2be55Smrgextern void DoPickMessages (XMH_CB_ARGS); 134c9e2be55Smrgextern void DoSelectSequence (XMH_CB_ARGS); 135c9e2be55Smrgextern void DoOpenSeq (XMH_CB_ARGS); 136c9e2be55Smrgextern void DoAddToSeq (XMH_CB_ARGS); 137c9e2be55Smrgextern void DoRemoveFromSeq (XMH_CB_ARGS); 138c9e2be55Smrgextern void DoDeleteSeq (XMH_CB_ARGS); 139c9e2be55Smrg 140c9e2be55Smrg /* from util.c */ 141c9e2be55Smrg 14266d665a3Smrgextern void Punt (const char *) _X_NORETURN; 14366d665a3Smrgextern int myopen (const char *, int, int); 14466d665a3Smrgextern FILE * myfopen (const char *, const char *); 145c9e2be55Smrgextern void myclose (int); 146c9e2be55Smrgextern void myfclose (FILE *); 147c9e2be55Smrgextern char * MakeNewTempFileName (void); 148c9e2be55Smrgextern char ** MakeArgv (int); 149c9e2be55Smrgextern char ** ResizeArgv (char **, int); 15066d665a3Smrgextern FILEPTR FOpenAndCheck (const char *, const char *); 151c9e2be55Smrgextern char * ReadLine (FILE *); 152c9e2be55Smrgextern char * ReadLineWithCR (FILE *); 15366d665a3Smrgextern void DeleteFileAndCheck (const char *); 15466d665a3Smrgextern void CopyFileAndCheck (const char *, const char *); 15566d665a3Smrgextern void RenameAndCheck (const char *, const char *); 156c9e2be55Smrgextern char * CreateGeometry (int, int, int, int, int); 15766d665a3Smrgextern int FileExists (const char *); 15866d665a3Smrgextern long LastModifyDate (const char *); 15966d665a3Smrgextern int GetFileLength (const char *); 16066d665a3Smrgextern Boolean IsSubfolder (const char *); 16166d665a3Smrgextern void SetCurrentFolderName (Scrn, const char *); 16266d665a3Smrgextern void ChangeLabel (Widget, const char *); 16366d665a3Smrgextern Widget CreateTextSW (Scrn, const char *, ArgList, Cardinal); 16466d665a3Smrgextern Widget CreateTitleBar (Scrn, const char *); 165c9e2be55Smrgextern void Feep (int, int, Window); 166c9e2be55Smrgextern MsgList CurMsgListOrCurMsg (Toc); 167c9e2be55Smrgextern int GetWidth (Widget); 168c9e2be55Smrgextern int GetHeight (Widget); 169c9e2be55Smrgextern Toc SelectedToc (Scrn); 170c9e2be55Smrgextern Toc CurrentToc (Scrn); 17166d665a3Smrgextern int strncmpIgnoringCase (const char *, const char *, int); 17266d665a3Smrgextern void StoreWindowName (Scrn, const char *); 173c9e2be55Smrgextern void InitBusyCursor (Scrn); 174c9e2be55Smrgextern void ShowBusyCursor (void); 175c9e2be55Smrgextern void UnshowBusyCursor (void); 176c9e2be55Smrgextern void SetCursorColor (Widget, Cursor, unsigned long); 177c9e2be55Smrg 178c9e2be55Smrg /* from viewfuncs.c */ 179c9e2be55Smrg 180c9e2be55Smrgextern void DoCloseView (XMH_CB_ARGS); 181c9e2be55Smrgextern void DoViewReply (XMH_CB_ARGS); 182c9e2be55Smrgextern void DoViewForward (XMH_CB_ARGS); 183c9e2be55Smrgextern void DoViewUseAsComposition (XMH_CB_ARGS); 184c9e2be55Smrgextern void DoEditView (XMH_CB_ARGS); 185c9e2be55Smrgextern void DoSaveView (XMH_CB_ARGS); 186c9e2be55Smrgextern void DoPrintView (XMH_CB_ARGS); 187