#ifndef _xmh_h
#define _xmh_h
#include <X11/Intrinsic.h>
#include <X11/StringDefs.h>
#include <X11/Shell.h>
#include <X11/Xos.h>
#include <X11/Xfuncs.h>
#include <X11/Xutil.h>
#include <X11/cursorfont.h>
#include <X11/Xaw/AsciiText.h>
#include <X11/Xaw/SmeBSB.h>
#include <X11/Xaw/Box.h>
#include <X11/Xaw/Command.h>
#include <X11/Xaw/Dialog.h>
#include <X11/Xaw/Form.h>
#include <X11/Xaw/Label.h>
#include <X11/Xaw/SmeLine.h>
#include <X11/Xaw/MenuButton.h>
#include <X11/Xaw/SimpleMenu.h>
#include <X11/Xaw/Toggle.h>
#include <X11/Xaw/Viewport.h>
#include <X11/Xaw/Paned.h>
#if defined(sun) && defined(SVR4)
#define _XOPEN_SOURCE
#include <stdio.h>
#undef _XOPEN_SOURCE
#else
#include <stdio.h>
#endif
#define DELETEABORTED -1
#define NEEDS_CONFIRMATION -1
#define MARKPOS 4
#define xMargin 2
#define yMargin 2
#define DEBUG(msg) \
if (app_resources.debug) \
{(void)fprintf(stderr, msg); (void)fflush(stderr);}
#define DEBUG1(msg, arg) \
if (app_resources.debug) \
{(void)fprintf(stderr, msg, arg); (void)fflush(stderr);}
#define DEBUG2(msg, arg1, arg2) \
if (app_resources.debug) \
{(void)fprintf(stderr,msg,arg1,arg2); (void)fflush(stderr);}
typedef int * dp;
typedef FILE* FILEPTR;
typedef struct _ButtonRec *Button;
typedef struct _XmhButtonBoxRec *ButtonBox;
typedef struct _TocRec *Toc;
typedef struct _MsgRec *Msg;
typedef struct _PickRec *Pick;
typedef enum {
Fignore, Fmove, Fcopy, Fdelete
} FateType;
typedef enum {
STtocAndView,
STview,
STcomp,
STpick
} ScrnKind;
typedef struct _StackRec {
char *data;
struct _StackRec *next;
} StackRec, *Stack;
typedef struct _ScrnRec {
Widget parent;
Widget widget;
int mapped;
ScrnKind kind;
ButtonBox mainbuttons;
Widget folderlabel;
ButtonBox folderbuttons;
Widget toclabel;
Widget tocwidget;
ButtonBox miscbuttons;
Widget viewlabel;
Widget viewwidget;
ButtonBox viewbuttons;
char * curfolder;
Toc toc;
Msg msg;
Pick pick;
XtTranslations edit_translations;
XtTranslations read_translations;
Msg assocmsg;
Window wait_window;
Stack folder_stack;
} ScrnRec, *Scrn;
typedef struct {
int nummsgs;
Msg *msglist;
} MsgListRec, *MsgList;
typedef struct {
char *name;
MsgList mlist;
} SequenceRec, *Sequence;
#define XMH_CB_ARGS Widget, XtPointer, XtPointer
#include "globals.h"
#include "externs.h"
#include "mlist.h"
#include "bbox.h"
#include "msg.h"
#include "toc.h"
#endif