1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152
|
/*
* $XConsortium: xmh.h,v 2.32 93/09/08 15:31:11 kaleb Exp $
*
*
* COPYRIGHT 1987
* DIGITAL EQUIPMENT CORPORATION
* MAYNARD, MASSACHUSETTS
* ALL RIGHTS RESERVED.
*
* THE INFORMATION IN THIS SOFTWARE IS SUBJECT TO CHANGE WITHOUT NOTICE AND
* SHOULD NOT BE CONSTRUED AS A COMMITMENT BY DIGITAL EQUIPMENT CORPORATION.
* DIGITAL MAKES NO REPRESENTATIONS ABOUT THE SUITABILITY OF THIS SOFTWARE FOR
* ANY PURPOSE. IT IS SUPPLIED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY.
*
* IF THE SOFTWARE IS MODIFIED IN A MANNER CREATING DERIVATIVE COPYRIGHT
* RIGHTS, APPROPRIATE LEGENDS MAY BE PLACED ON THE DERIVATIVE WORK IN
* ADDITION TO THAT SET FORTH ABOVE.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose and without fee is hereby granted, provided
* that the above copyright notice appear in all copies and that both that
* copyright notice and this permission notice appear in supporting
* documentation, and that the name of Digital Equipment Corporation not be
* used in advertising or publicity pertaining to distribution of the software
* without specific, written prior permission.
*/
/* $XFree86: xc/programs/xmh/xmh.h,v 1.3 2002/07/01 02:26:05 tsi Exp $ */
#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; /* For debugging. */
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; /* The parent widget of the scrn */
Widget widget; /* The pane widget for the scrn */
int mapped; /* TRUE only if we've mapped this screen. */
ScrnKind kind; /* What kind of scrn we have. */
ButtonBox mainbuttons; /* Main xmh control buttons. */
Widget folderlabel; /* Folder titlebar */
ButtonBox folderbuttons; /* Folder buttons. */
Widget toclabel; /* Toc titlebar. */
Widget tocwidget; /* Toc text. */
ButtonBox miscbuttons; /* optional miscellaneous command buttons */
Widget viewlabel; /* View titlebar. */
Widget viewwidget; /* View text. */
ButtonBox viewbuttons; /* View control buttons. */
char * curfolder; /* Currently selected folder name */
Toc toc; /* The table of contents. */
Msg msg; /* The message being viewed. */
Pick pick; /* Pick in this screen. */
XtTranslations edit_translations; /* Text widget translations */
XtTranslations read_translations; /* overridden by accelerators */
Msg assocmsg; /* Associated message for reply, etc. */
Window wait_window; /* InputOnly window with busy cursor */
Stack folder_stack; /* Stack of folder names */
} ScrnRec, *Scrn;
typedef struct {
int nummsgs;
Msg *msglist;
} MsgListRec, *MsgList;
typedef struct {
char *name; /* Name of this sequence. */
MsgList mlist; /* Messages in this sequence. */
} 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 /* _xmh_h */
|