home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / x / volume19 / xfig / part01 / resources.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-05-27  |  2.1 KB  |  61 lines

  1. /*
  2.  * FIG : Facility for Interactive Generation of figures
  3.  * Copyright (c) 1985 by Supoj Sutanthavibul
  4.  *
  5.  * "Permission to use, copy, modify, distribute, and sell this software and its
  6.  * documentation for any purpose is hereby granted without fee, provided that
  7.  * the above copyright notice appear in all copies and that both the copyright
  8.  * notice and this permission notice appear in supporting documentation. 
  9.  * No representations are made about the suitability of this software for 
  10.  * any purpose.  It is provided "as is" without express or implied warranty."
  11.  */
  12.  
  13. #include "fig.h"
  14. #include "resources.h"
  15.  
  16. char           *colorNames[] = {"Default", "Black", "Blue", "Green", "Cyan",
  17.                 "Red", "Magenta", "Yellow", "White"};
  18. Boolean        all_colors_available;
  19.  
  20. appresStruct    appres;
  21. Window        canvas_win, msg_win, sideruler_win, topruler_win;
  22.  
  23. Cursor        cur_cursor;
  24. Cursor        arrow_cursor, bull_cursor, buster_cursor, crosshair_cursor,
  25.         null_cursor, pencil_cursor, pick15_cursor, pick9_cursor,
  26.         panel_cursor, l_arrow_cursor, lr_arrow_cursor, r_arrow_cursor,
  27.         u_arrow_cursor, ud_arrow_cursor, d_arrow_cursor, wait_cursor;
  28.  
  29. TOOL        tool;
  30. XtAppContext    tool_app;
  31.  
  32. TOOLSW        canvas_sw, ps_fontmenu, /* printer font menu tool */
  33.         latex_fontmenu, /* printer font menu tool */
  34.         msg_form, msg_panel, name_panel, cmd_panel, mode_panel, 
  35.         d_label, e_label, mousefun,
  36.         ind_viewp, ind_panel,    /* indicator panel */
  37.         unitbox_sw, sideruler_sw, topruler_sw;
  38.  
  39. Display           *tool_d;
  40. Screen           *tool_s;
  41. int        tool_sn;
  42.  
  43. GC        gc, bold_gc, button_gc, ind_button_gc, color_gc, mouse_button_gc,
  44.         blank_gc, ind_blank_gc, mouse_blank_gc, gccache[NUMOPS],
  45.         fillgc, fill_gc[NUMFILLPATS],    /* fill style gc's */
  46.         black_fill_gc[NUMFILLPATS],
  47.         un_fill_gc[NUMFILLPATS],    /* unfill gc's */
  48.         black_un_fill_gc[NUMFILLPATS],
  49.         tr_gc, tr_xor_gc, tr_erase_gc,    /* for the rulers */
  50.         sr_gc, sr_xor_gc, sr_erase_gc;
  51.  
  52. Pixmap        fill_pm[NUMFILLPATS];
  53. XColor        x_fg_color, x_bg_color;
  54. Boolean        writing_bitmap;
  55. unsigned long    but_fg, but_bg;
  56. unsigned long    ind_but_fg, ind_but_bg;
  57. unsigned long    mouse_but_fg, mouse_but_bg;
  58.  
  59. /* will be filled in with environment variable XFIGTMPDIR */
  60. char           *TMPDIR;
  61.