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: Main.h /main/8 1996/10/15 08:02:10 pascale $ */
24 /************************************<+>*************************************
25 ****************************************************************************
31 ** Description: defines and typedefs for DtStyle
34 ****************************************************************************
35 ************************************<+>*************************************/
37 * (c) Copyright 1996 Digital Equipment Corporation.
38 * (c) Copyright 1990, 1996 Hewlett-Packard Company.
39 * (c) Copyright 1996 International Business Machines Corp.
40 * (c) Copyright 1996 Sun Microsystems, Inc.
41 * (c) Copyright 1996 Novell, Inc.
42 * (c) Copyright 1996 FUJITSU LIMITED.
43 * (c) Copyright 1996 Hitachi.
57 #include <Dt/SessionM.h>
58 #include <Dt/SessionP.h>
61 * Copied from Xm/BaseClassI.h
63 extern XmWidgetExtData _XmGetWidgetExtData(
65 #if NeedWidePrototypes
66 unsigned int extType) ;
68 unsigned char extType) ;
69 #endif /* NeedWidePrototypes */
76 #define CMPSTR(str) XmStringCreateLocalized (str)
77 #define XMCLASS "Dtstyle"
78 #define DIALOG_MWM_FUNC MWM_FUNC_MOVE | MWM_FUNC_CLOSE
82 #define BACKDROP "Backdrop"
83 #define KEYBOARD "Keyboard"
86 #define SCREEN "Screen"
88 #define STARTUP "Startup"
91 #define COLOR_ICON "DtColor"
92 #define FONT_ICON "DtFont"
93 #define BACKDROP_ICON "DtBkdrp"
94 #define KEYBOARD_ICON "DtKeybd"
95 #define MOUSE_ICON "DtMouse"
96 #define BEEP_ICON "DtBeep"
97 #define SCREEN_ICON "DtScrn"
98 #define DTWM_ICON "DtDtwm"
99 #define STARTUP_ICON "DtStart"
100 #define I18N_ICON "DtI18N"
104 #define KB_TRAV_HELP "vs_keys"
105 #define BACKDROP_HELP "vs_back"
106 #define AUDIO_HELP "vs_beep"
107 #define PALETTE_HELP "vs_colo"
108 #define COLOR_EDIT_HELP "vs_dtd"
109 #define ADD_PALETTE_HELP "vs_coad"
110 #define DELETE_PALETTE_HELP "vs_code"
111 #define FONT_HELP "vs_font"
112 #define HOST_HELP "vs_host"
113 #define KEYBOARD_HELP "vs_keyb"
114 #define MOUSE_HELP "vs_mous"
115 #define PASSWORD_HELP "vs_pass"
116 #define SCREEN_HELP "vs_scre"
117 #define STARTUP_HELP "vs_star"
118 #define I18N_HELP "vs_i18n"
119 #define STYLE_HELP "vs_wind"
121 /* DialogBoxDialog label #defines */
123 #define CANCEL_BUTTON 2
124 #define HELP_BUTTON 3
128 #define LB_MARGIN_HEIGHT 2
129 #define LB_MARGIN_WIDTH 12
130 #define SCALE_HIGHLIGHT_THICKNESS (Dimension) 2
142 Fontset fontChoice[10];
146 timeoutScale, lockoutScale;
147 Boolean writeXrdbImmediate;
148 Boolean writeXrdbColors;
149 String componentList;
150 XmStringTable imServerHosts;
151 XmStringTable preeditType;
153 } ApplicationData, *ApplicationDataPtr;
158 Arg posArgs[MAX_ARGS];
167 Boolean useMultiColorIcons;
169 secSelectColor, /** for editable text bg **/
170 primTSCol, primBSCol, /** TS and BS colors are **/
171 secTSCol, secBSCol, /** for icon fg and bg **/
173 ApplicationData xrdb;
178 Boolean longfilename;
193 Widget errDialog, errParent;
194 char tmpBigStr[1024];
195 int fontSize, timeoutscale;
198 Boolean dynamicColor;
200 int horizontalSpacing, verticalSpacing;
209 extern char *progName;
210 extern XrmDatabase sys_pl_DB;
211 extern XrmDatabase adm_pl_DB;
212 extern XrmDatabase hm_pl_DB;
213 extern XrmDatabase pl_DB;
219 extern int local_xerror( Display *dpy, XErrorEvent *rep) ; /* defined in hostBB.c for
223 extern char *_DtGetMessage(
228 extern void raiseWindow(
230 extern void CenterMsgCB(
232 XtPointer client_data,
233 XtPointer call_data) ;
234 extern void ErrDialog(
236 Widget visualParent) ;
237 extern void InfoDialog(
240 Boolean unmapParent) ;
241 extern void putDialog(
244 extern void smStateCB(
246 XtPointer client_data,
248 extern void HandleStopMsg(
250 XtPointer client_data,
252 extern void LoadDatabase(void);
255 * macro to get message catalog strings
257 #ifndef NO_MESSAGE_CATALOG
259 # define GETMESSAGE(set, number, string)\
260 _DtGetMessage(set, number, "")
262 # define CLIENT_MESSAGE_CAT_NAME "dtstyle"
263 # define GETMESSAGE(set, number, string)\
264 _DtGetMessage(CLIENT_MESSAGE_CAT_NAME, set, number, string)
265 # endif /* DT_LITE */
267 # define GETMESSAGE(set, number, string)\
272 /* DON'T ADD ANYTHING AFTER THIS #endif */