externals.h 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. /*
  2. * CDE - Common Desktop Environment
  3. *
  4. * Copyright (c) 1993-2012, The Open Group. All rights reserved.
  5. *
  6. * These libraries and programs are free software; you can
  7. * redistribute them and/or modify them under the terms of the GNU
  8. * Lesser General Public License as published by the Free Software
  9. * Foundation; either version 2 of the License, or (at your option)
  10. * any later version.
  11. *
  12. * These libraries and programs are distributed in the hope that
  13. * they will be useful, but WITHOUT ANY WARRANTY; without even the
  14. * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  15. * PURPOSE. See the GNU Lesser General Public License for more
  16. * details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public
  19. * License along with these libraries and programs; if not, write
  20. * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
  21. * Floor, Boston, MA 02110-1301 USA
  22. */
  23. /* $XConsortium: externals.h /main/3 1995/11/02 14:04:25 rswiston $ */
  24. /*********************************************************************
  25. * (c) Copyright 1993, 1994 Hewlett-Packard Company
  26. * (c) Copyright 1993, 1994 International Business Machines Corp.
  27. * (c) Copyright 1993, 1994 Sun Microsystems, Inc.
  28. * (c) Copyright 1993, 1994 Unix System Labs, Inc., a subsidiary of
  29. * Novell, Inc.
  30. **********************************************************************/
  31. #pragma once
  32. #include <Xm/Xm.h>
  33. #include <X11/xpm.h>
  34. #include "constants.h"
  35. extern char *black_string;
  36. extern char *white_string;
  37. extern char *none_string;
  38. extern HelpStruct *help_head;
  39. extern int query_state, error_state;
  40. extern Display *dpy;
  41. extern Window root;
  42. extern Window tablet_win;
  43. extern Widget tablet_wid;
  44. extern int screen;
  45. extern Screen *screen_ptr;
  46. extern Colormap Cmap;
  47. extern Cursor cursor;
  48. extern GC Color_gc;
  49. extern GC Mono_gc;
  50. extern GC Flicker_gc;
  51. extern GC Grid_gc;
  52. extern GC Erase_gc;
  53. extern int cmap_size;
  54. extern int MagFactor;
  55. extern int GraphicsOp;
  56. extern int Backup_G_Op;
  57. extern int CurrentColor;
  58. extern int ColorBlock;
  59. extern int tx, ty, last_tx, last_ty;
  60. extern int ix, iy, last_ix, last_iy;
  61. extern int ClickCount;
  62. extern int multiClickTime;
  63. extern int format;
  64. extern int fileIOMode;
  65. extern int fileFormat;
  66. extern char last_fname[MAX_FNAME];
  67. extern int pointCount;
  68. extern XPoint pointList[MAX_PTS];
  69. extern XRectangle current_box;
  70. extern XRectangle select_box;
  71. extern XImage *CutCopy;
  72. extern XImage *CutCopy_mono;
  73. extern XImage *Rotate;
  74. extern XImage *Rotate_mono;
  75. extern XImage *Scale;
  76. extern XImage *Scale_mono;
  77. extern int icon_width, icon_height;
  78. extern int backup_width, backup_height;
  79. extern Pixmap color_icon, prev_color_icon;
  80. extern Pixmap mono_icon, prev_mono_icon;
  81. extern Boolean status, Dirty;
  82. extern int X_Hot, Y_Hot;
  83. extern Boolean hotSpot;
  84. extern Boolean FirstRigid, GridEnabled, FloodToBorder, Selected, Anchored;
  85. extern Pixel black_pixel, white_pixel;
  86. extern Pixel Foreground, Background, TopShadow, BottomShadow;
  87. extern Pixel Select, Transparent;
  88. extern Pixel StaticPen[NUM_STATICS], DynamicPen[NUM_DYNAMICS];
  89. extern Pixel StaticMono[NUM_STATICS], DynamicMono[NUM_DYNAMICS];
  90. extern Widget StaticWid[NUM_STATICS], DynamicWid[NUM_DYNAMICS];
  91. extern Widget GraphicOpsWid[NUM_GFX_OPS];
  92. extern Boolean DialogFlag;
  93. extern Boolean FillSolids;
  94. extern Boolean UndoFlag;
  95. extern Boolean param_flag[NUM_PARAMS];
  96. extern Boolean argsNeedProcessed;
  97. extern XpmAttributes xpm_ReadAttribs, xpm_WriteAttribs;
  98. /* extern int numSymbols; */
  99. extern XpmColorSymbol *colorSymbols;
  100. extern char *hints_cmt;
  101. extern char *colors_cmt;
  102. extern char *pixels_cmt;
  103. extern char dynamic_c_str[NUM_DYNAMICS][30];
  104. extern char *color_table[NUM_STATICS+NUM_DYNAMICS][6];
  105. extern PixelTable pixelTable;
  106. /* globals related to the user interface (motif, etc.) */
  107. extern Widget TopLevel;
  108. extern char *execName;
  109. extern char *progName;
  110. extern XtAppContext AppContext;
  111. extern Widget mainWindow,
  112. dtIconShell,
  113. queryDialog,
  114. stdErrDialog,
  115. newIconDialog,
  116. fileIODialog;
  117. extern Widget iconImage,
  118. monoImage;
  119. extern ApplicationData xrdb;
  120. extern SessionData session;
  121. #ifdef DEBUG
  122. extern int debug;
  123. extern int debug_status;
  124. extern XImage *debug_image, *debug_shape;
  125. /* extern unsigned char XErrorFlag; */
  126. #endif