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;
208 extern char *progName;
209 extern XrmDatabase sys_pl_DB;
210 extern XrmDatabase adm_pl_DB;
211 extern XrmDatabase hm_pl_DB;
212 extern XrmDatabase pl_DB;
218 extern int local_xerror( Display *dpy, XErrorEvent *rep) ; /* defined in hostBB.c for
222 extern char *_DtGetMessage(
227 extern void raiseWindow(
229 extern void CenterMsgCB(
231 XtPointer client_data,
232 XtPointer call_data) ;
233 extern void ErrDialog(
235 Widget visualParent) ;
236 extern void InfoDialog(
239 Boolean unmapParent) ;
240 extern void putDialog(
243 extern void smStateCB(
245 XtPointer client_data,
247 extern void HandleStopMsg(
249 XtPointer client_data,
251 extern void LoadDatabase(void);
254 * macro to get message catalog strings
256 #ifndef NO_MESSAGE_CATALOG
258 # define GETMESSAGE(set, number, string)\
259 _DtGetMessage(set, number, "")
261 # define CLIENT_MESSAGE_CAT_NAME "dtstyle"
262 # define GETMESSAGE(set, number, string)\
263 _DtGetMessage(CLIENT_MESSAGE_CAT_NAME, set, number, string)
264 # endif /* DT_LITE */
266 # define GETMESSAGE(set, number, string)\
271 /* DON'T ADD ANYTHING AFTER THIS #endif */