home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / procssng / ccs / ccs-11tl.lha / lbl / xview / genial / include / ui.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-07-14  |  1.3 KB  |  57 lines

  1. /*
  2.  * include file for any source files that interact with the UI
  3.  */
  4.  
  5. #include <sys/param.h>
  6. #include <sys/types.h>
  7. #include <xview/xview.h>
  8. #include <xview/canvas.h>
  9. #include <xview/panel.h>
  10. #include <xview/frame.h>
  11. #include <xview/textsw.h>
  12. #include <xview/xv_xrect.h>
  13. #include <xview/cms.h>
  14. #include <xview/notice.h>
  15. #include <X11/Xlib.h>
  16. #include <X11/Xutil.h>
  17. #include <X11/Xatom.h>
  18. #include <X11/cursorfont.h>
  19. #include "main_control_ui.h"
  20. #include "file_ui.h"
  21. #include "comment_ui.h"
  22. #include "display_ui.h"
  23.  
  24. extern main_control_ctrlwin_objects *base_win;
  25. #ifdef V1
  26. extern main_control_imgwin_objects *genial_imgwin;
  27. #endif
  28. extern file_window1_objects *file_win;
  29. extern display_ctrlwin_objects *disp_ctrl;
  30. extern comment_comm_win_objects *comment_win;
  31.  
  32.  
  33. /* display, winv are and gc are used globally in calls to X for any purpose */
  34. extern Display *display;
  35. extern Visual *winv;
  36. extern GC gc;
  37. extern int depth;
  38.  
  39. /* line_mode is an int represneting the present line drawing mode */
  40. #define CLICK 0
  41. #define DRAG 1
  42. #define LSQ 2
  43.  
  44. /* function opcodes */
  45. #define LINE_TRACE 0
  46. #define HISTOGRAM 1
  47. #define ZOOM 2
  48. #define DISTANCE 3
  49. #define ANGLE_MES 4
  50. #define ANNOTATE 5
  51. #define COMMENT 6
  52.  
  53. #define SCROLL_BAR_SIZE 21    /* width of scrollbar */
  54.  
  55. extern char *func_names[];
  56. extern int line_mode, clean_mode;
  57.