home *** CD-ROM | disk | FTP | other *** search
- /*
- *****************************************************************************
- ** xbmbrowser version 1.0 (c) Copyright Ashley Roll, 1992.
- ** FILE: xbmbrowser.h
- **
- ** xbmbrowser is Public Domain. However it, and all the code still belong to me.
- ** I do, however grant permission for you to freely copy and distribute it on
- ** the condition that this and all other copyright notices remain unchanged in
- ** all distributions.
- **
- ** This software comes with NO warranty whatsoever. I therefore take no
- ** responsibility for any damages, losses or problems that the program may
- ** cause.
- *****************************************************************************
- */
-
- #include <X11/Xlib.h> /* Xt programming includes */
- #include <X11/Xutil.h>
- #include <X11/Xatom.h>
-
- #include <stdio.h>
- #include <strings.h>
- #include <dirent.h>
- #include <X11/cursorfont.h>
- #include <X11/Intrinsic.h>
- #include <X11/StringDefs.h>
-
- #include <X11/Xaw/Form.h> /* widget includes */
- #include <X11/Xaw/Box.h>
- #include <X11/Xaw/Dialog.h>
- #include <X11/Xaw/MenuButton.h>
- #include <X11/Xaw/SimpleMenu.h>
- #include <X11/Xaw/SmeBSB.h>
- #include <X11/Xaw/SmeLine.h>
- #include <X11/Xaw/AsciiText.h>
- #include <X11/Xaw/Paned.h>
- #include <X11/Xaw/Viewport.h>
-
-
- /***************************************************************************
- SITE SPECIFIC STUFF - EDIT TO MATCH YOUR SETUP
- ***************************************************************************/
- /*
- ** The full path to the Help file.
- */
- #ifndef HELPFILE
- #define HELPFILE "/usr/lib/X11/xbmbrowser.help"
- #endif
-
- /*
- ** the editor that will be called from the Edit selection of the
- ** Menu. If this is NULL ("") then the selection will not be selectable.
- ** A system() call will be made with this string with the filename of the
- ** selected bitmap, and an & appended to it.
- */
- #define EDITOR "bitmap"
-
- /*
- ** This is the program that can be used to set the bitmap as the root
- ** window decoration. the same things apply as above in EDITOR.
- */
- #define SETROOT "xsetroot -bitmap"
- #define SETROOTINV "xsetroot -rv -bitmap"
-
-
-
- /***************************************************************************
- PROGRAM STUFF - CHANGE IT AT YOUR OWN RISK
- ***************************************************************************/
-
- typedef struct _file_lst {
- char fname[255];
- struct _file_lst *next;
- } FileList;
-
- #ifdef MAIN
- #define ext
- #else
- #define ext extern
- #endif
-
- ext char *bname;
- ext char dname[255];
- ext FileList *file_list;
- ext Widget toplevel,mainpw,bfw,bw,lw,phw,atw,menu;
- ext int ac;
- ext char **av;
- ext int dialogs_made;
-