instant: partially revert commit bc96e6f1ff6c72d4d2cafb6a4088ffa32cd3019f. remove...
[oweals/cde.git] / cde / programs / dticon / externals.h
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 librararies 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 #include <Xm/Xm.h>
32 #include <Dt/xpm.h>
33 #include "constants.h"
34
35 extern char    *black_string;
36 extern char    *white_string;
37 extern char    *none_string;
38
39 extern HelpStruct   *help_head;
40 extern int           query_state, error_state;
41
42 extern Display   *dpy;
43 extern Window     root;
44 extern Window     tablet_win;
45 extern Widget     tablet_wid;
46 extern int        screen;
47 extern Screen    *screen_ptr;
48 extern Colormap   Cmap;
49 extern Cursor     cursor;
50 extern GC         Color_gc;
51 extern GC         Mono_gc;
52 extern GC         Flicker_gc;
53 extern GC         Grid_gc;
54 extern GC         Erase_gc;
55 extern int        cmap_size;
56 extern int        MagFactor;
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;
65 extern int        format;
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;
77 extern XImage    *Scale;
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;
108
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,
115                           dtIconShell,
116                           queryDialog, 
117                           stdErrDialog, 
118                           newIconDialog,
119                           fileIODialog;
120 extern Widget             iconImage, 
121                           monoImage;
122 extern ApplicationData    xrdb;
123 extern SessionData        session;
124
125
126
127 #ifdef DEBUG
128 extern int           debug;
129 extern int           debug_status;
130 extern XImage       *debug_image, *debug_shape;
131 /* extern unsigned char XErrorFlag; */
132 #endif