2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
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)
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
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these librararies and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
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
30 **********************************************************************/
33 #include "constants.h"
35 extern char *black_string;
36 extern char *white_string;
37 extern char *none_string;
39 extern HelpStruct *help_head;
40 extern int query_state, error_state;
44 extern Window tablet_win;
45 extern Widget tablet_wid;
47 extern Screen *screen_ptr;
57 extern int GraphicsOp;
58 extern int Backup_G_Op;
59 extern int CurrentColor;
60 extern int ColorBlock;
61 extern int tx, ty, last_tx, last_ty;
62 extern int ix, iy, last_ix, last_iy;
63 extern int ClickCount;
64 extern int multiClickTime;
66 extern int fileIOMode;
67 extern int fileFormat;
68 extern char last_fname[MAX_FNAME];
69 extern int pointCount;
70 extern XPoint pointList[MAX_PTS];
71 extern XRectangle current_box;
72 extern XRectangle select_box;
73 extern XImage *CutCopy;
74 extern XImage *CutCopy_mono;
75 extern XImage *Rotate;
76 extern XImage *Rotate_mono;
78 extern XImage *Scale_mono;
79 extern int icon_width, icon_height;
80 extern int backup_width, backup_height;
81 extern Pixmap color_icon, prev_color_icon;
82 extern Pixmap mono_icon, prev_mono_icon;
83 extern Boolean status, Dirty;
84 extern int X_Hot, Y_Hot;
85 extern Boolean hotSpot;
86 extern Boolean FirstRigid, GridEnabled, FloodToBorder, Selected, Anchored;
87 extern Pixel black_pixel, white_pixel;
88 extern Pixel Foreground, Background, TopShadow, BottomShadow;
89 extern Pixel Select, Transparent;
90 extern Pixel StaticPen[NUM_STATICS], DynamicPen[NUM_DYNAMICS];
91 extern Pixel StaticMono[NUM_STATICS], DynamicMono[NUM_DYNAMICS];
92 extern Widget StaticWid[NUM_STATICS], DynamicWid[NUM_DYNAMICS];
93 extern Widget GraphicOpsWid[NUM_GFX_OPS];
94 extern Boolean DialogFlag;
95 extern Boolean FillSolids;
96 extern Boolean UndoFlag;
97 extern Boolean param_flag[NUM_PARAMS];
98 extern Boolean argsNeedProcessed;
99 extern XpmAttributes xpm_ReadAttribs, xpm_WriteAttribs;
100 /* extern int numSymbols; */
101 extern XpmColorSymbol *colorSymbols;
102 extern char *hints_cmt;
103 extern char *colors_cmt;
104 extern char *pixels_cmt;
105 extern char dynamic_c_str[NUM_DYNAMICS][30];
106 extern char *color_table[NUM_STATICS+NUM_DYNAMICS][6];
107 extern PixelTable pixelTable;
109 /* globals related to the user interface (motif, etc.) */
110 extern Widget TopLevel;
111 extern char *execName;
112 extern char *progName;
113 extern XtAppContext AppContext;
114 extern Widget mainWindow,
120 extern Widget iconImage,
122 extern ApplicationData xrdb;
123 extern SessionData session;
129 extern int debug_status;
130 extern XImage *debug_image, *debug_shape;
131 /* extern unsigned char XErrorFlag; */