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 libraries 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.
58 #include <Dt/SessionM.h>
59 #include <Dt/SessionP.h>
62 * Copied from Xm/BaseClassI.h
64 extern XmWidgetExtData _XmGetWidgetExtData(
66 #if NeedWidePrototypes
67 unsigned int extType) ;
69 unsigned char extType) ;
70 #endif /* NeedWidePrototypes */
77 #define CMPSTR(str) XmStringCreateLocalized (str)
78 #define XMCLASS "Dtstyle"
79 #define DIALOG_MWM_FUNC MWM_FUNC_MOVE | MWM_FUNC_CLOSE
83 #define BACKDROP "Backdrop"
84 #define KEYBOARD "Keyboard"
87 #define SCREEN "Screen"
89 #define STARTUP "Startup"
92 #define COLOR_ICON "DtColor"
93 #define FONT_ICON "DtFont"
94 #define BACKDROP_ICON "DtBkdrp"
95 #define KEYBOARD_ICON "DtKeybd"
96 #define MOUSE_ICON "DtMouse"
97 #define BEEP_ICON "DtBeep"
98 #define SCREEN_ICON "DtScrn"
99 #define DTWM_ICON "DtDtwm"
100 #define STARTUP_ICON "DtStart"
101 #define I18N_ICON "DtI18N"
105 #define KB_TRAV_HELP "vs_keys"
106 #define BACKDROP_HELP "vs_back"
107 #define AUDIO_HELP "vs_beep"
108 #define PALETTE_HELP "vs_colo"
109 #define COLOR_EDIT_HELP "vs_dtd"
110 #define ADD_PALETTE_HELP "vs_coad"
111 #define DELETE_PALETTE_HELP "vs_code"
112 #define FONT_HELP "vs_font"
113 #define HOST_HELP "vs_host"
114 #define KEYBOARD_HELP "vs_keyb"
115 #define MOUSE_HELP "vs_mous"
116 #define PASSWORD_HELP "vs_pass"
117 #define SCREEN_HELP "vs_scre"
118 #define STARTUP_HELP "vs_star"
119 #define I18N_HELP "vs_i18n"
120 #define STYLE_HELP "vs_wind"
122 /* DialogBoxDialog label #defines */
124 #define CANCEL_BUTTON 2
125 #define HELP_BUTTON 3
129 #define LB_MARGIN_HEIGHT 2
130 #define LB_MARGIN_WIDTH 12
131 #define SCALE_HIGHLIGHT_THICKNESS (Dimension) 2
143 Fontset fontChoice[10];
147 timeoutScale, lockoutScale;
148 Boolean writeXrdbImmediate;
149 Boolean writeXrdbColors;
150 String componentList;
151 XmStringTable imServerHosts;
152 XmStringTable preeditType;
154 } ApplicationData, *ApplicationDataPtr;
159 Arg posArgs[MAX_ARGS];
168 Boolean useMultiColorIcons;
170 secSelectColor, /** for editable text bg **/
171 primTSCol, primBSCol, /** TS and BS colors are **/
172 secTSCol, secBSCol, /** for icon fg and bg **/
174 ApplicationData xrdb;
179 Boolean longfilename;
194 Widget errDialog, errParent;
195 char tmpBigStr[1024];
196 int fontSize, timeoutscale;
199 Boolean dynamicColor;
201 int horizontalSpacing, verticalSpacing;
210 extern char *progName;
211 extern XrmDatabase sys_pl_DB;
212 extern XrmDatabase adm_pl_DB;
213 extern XrmDatabase hm_pl_DB;
214 extern XrmDatabase pl_DB;
220 extern int local_xerror( Display *dpy, XErrorEvent *rep) ; /* defined in hostBB.c for
224 extern char *_DtGetMessage(
229 extern void raiseWindow(
231 extern void CenterMsgCB(
233 XtPointer client_data,
234 XtPointer call_data) ;
235 extern void ErrDialog(
237 Widget visualParent) ;
238 extern void InfoDialog(
241 Boolean unmapParent) ;
242 extern void putDialog(
245 extern void smStateCB(
247 XtPointer client_data,
249 extern void HandleStopMsg(
251 XtPointer client_data,
253 extern void LoadDatabase(void);
256 * macro to get message catalog strings
258 #ifndef NO_MESSAGE_CATALOG
260 # define GETMESSAGE(set, number, string)\
261 _DtGetMessage(set, number, "")
263 # define CLIENT_MESSAGE_CAT_NAME "dtstyle"
264 # define GETMESSAGE(set, number, string)\
265 _DtGetMessage(CLIENT_MESSAGE_CAT_NAME, set, number, string)
266 # endif /* DT_LITE */
268 # define GETMESSAGE(set, number, string)\
273 /* DON'T ADD ANYTHING AFTER THIS #endif */