home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / x / volume19 / xbmbrowser / part01 / xbmbrowser.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-04-28  |  2.5 KB  |  89 lines

  1. /*
  2. *****************************************************************************
  3. ** xbmbrowser version 1.0  (c) Copyright Ashley Roll, 1992.
  4. ** FILE: xbmbrowser.h 
  5. **
  6. ** xbmbrowser is Public Domain. However it, and all the code still belong to me.
  7. ** I do, however grant permission for you to freely copy and distribute it on 
  8. ** the condition that this and all other copyright notices remain unchanged in 
  9. ** all distributions.
  10. **
  11. ** This software comes with NO warranty whatsoever. I therefore take no
  12. ** responsibility for any damages, losses or problems that the program may 
  13. ** cause.
  14. *****************************************************************************
  15. */
  16.  
  17. #include <X11/Xlib.h>  /* Xt programming includes */
  18. #include <X11/Xutil.h>
  19. #include <X11/Xatom.h>
  20.  
  21. #include <stdio.h>
  22. #include <strings.h>
  23. #include <dirent.h> 
  24. #include <X11/cursorfont.h>
  25. #include <X11/Intrinsic.h>      
  26. #include <X11/StringDefs.h>
  27.  
  28. #include <X11/Xaw/Form.h>      /* widget includes */
  29. #include <X11/Xaw/Box.h>
  30. #include <X11/Xaw/Dialog.h> 
  31. #include <X11/Xaw/MenuButton.h>
  32. #include <X11/Xaw/SimpleMenu.h>
  33. #include <X11/Xaw/SmeBSB.h>
  34. #include <X11/Xaw/SmeLine.h>
  35. #include <X11/Xaw/AsciiText.h>
  36. #include <X11/Xaw/Paned.h>
  37. #include <X11/Xaw/Viewport.h>
  38.  
  39.  
  40. /***************************************************************************
  41.     SITE SPECIFIC STUFF - EDIT TO MATCH YOUR SETUP
  42.  ***************************************************************************/
  43. /*
  44. ** The full path to the Help file.
  45. */
  46. #ifndef HELPFILE
  47. #define HELPFILE "/usr/lib/X11/xbmbrowser.help"
  48. #endif
  49.  
  50. /*
  51. ** the editor that will be called from the Edit selection of the 
  52. ** Menu. If this is NULL ("") then the selection will not be selectable.
  53. ** A system() call will be made with this string with the filename of the 
  54. ** selected bitmap, and an & appended to it.
  55. */
  56. #define EDITOR "bitmap"
  57.  
  58. /*
  59. ** This is the program that can be used to set the bitmap as the root
  60. ** window decoration. the same things apply as above in EDITOR.
  61. */
  62. #define SETROOT "xsetroot -bitmap"
  63. #define SETROOTINV "xsetroot -rv -bitmap"
  64.  
  65.  
  66.  
  67. /***************************************************************************
  68.     PROGRAM STUFF - CHANGE IT AT YOUR OWN RISK
  69.  ***************************************************************************/
  70.  
  71. typedef struct _file_lst {
  72.   char fname[255];
  73.   struct _file_lst *next;
  74. } FileList;
  75.  
  76. #ifdef MAIN
  77. #define ext
  78. #else
  79. #define ext extern
  80. #endif
  81.  
  82. ext char *bname;
  83. ext char dname[255];
  84. ext FileList *file_list;
  85. ext Widget toplevel,mainpw,bfw,bw,lw,phw,atw,menu;
  86. ext int ac;
  87. ext char **av;
  88. ext int dialogs_made;
  89.