1 /*
2  * Motif
3  *
4  * Copyright (c) 1987-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 /*
24  * Motif Release 1.2
25 */
26 
27 /*
28  * Included Files:
29  */
30 
31 /*
32  * Value definitions:
33  */
34 
35 
36 
37 /******************************<->*************************************
38  *
39  *  Window manager resource names ...
40  *
41  *
42  *  Description:
43  *  -----------
44  *
45  ******************************<->***********************************/
46 
47 /* mwm specific appearance and behavior resources: */
48 
49 #ifdef WSM
50 #define WmNall				"all"
51 #endif /* WSM */
52 #define WmNautoKeyFocus			"autoKeyFocus"
53 #define WmNautoRaiseDelay		"autoRaiseDelay"
54 #ifdef WSM
55 #define WmNbackdropDirectories		"backdropDirectories"
56 #endif /* WSM */
57 #define WmNbitmapDirectory		"bitmapDirectory"
58 #ifdef MINIMAL_DT
59 #define WmNblinkOnExec			"blinkOnExec"
60 #endif /* MINIMAL_DT */
61 #define WmNbuttonBindings		"buttonBindings"
62 #define WmNcleanText			"cleanText"
63 #define WmNclientAutoPlace		"clientAutoPlace"
64 #define WmNcolormapFocusPolicy		"colormapFocusPolicy"
65 #define WmNconfigFile			"configFile"
66 #ifdef WSM
67 #define WmNcppCommand			"cppCommand"
68 #endif /* WSM */
69 #define WmNdeiconifyKeyFocus		"deiconifyKeyFocus"
70 #define WmNdoubleClickTime		"doubleClickTime"
71 #define WmNenableWarp			"enableWarp"
72 #define WmNenforceKeyFocus		"enforceKeyFocus"
73 #define WmNfadeNormalIcon		"fadeNormalIcon"
74 #define WmNfeedbackGeometry		"feedbackGeometry"
75 #define WmNframeBorderWidth		"frameBorderWidth"
76 #ifdef WSM
77 #define WmNframeExternalShadowWidth	"frameExternalShadowWidth"
78 #endif /* WSM */
79 #define WmNfreezeOnConfig		"freezeOnConfig"
80 #ifdef WSM
81 #define WmNgeometry			"geometry"
82 #endif /* WSM */
83 #define WmNiconAutoPlace		"iconAutoPlace"
84 #define WmNiconBoxGeometry		"iconBoxGeometry"
85 #define WmNiconBoxLayout		"iconBoxLayout"
86 #define WmNiconBoxName			"iconBoxName"
87 #define WmNiconBoxSBDisplayPolicy	"iconBoxSBDisplayPolicy"
88 #define WmNiconBoxScheme		"iconBoxScheme"
89 #define WmNiconBoxTitle			"iconBoxTitle"
90 #define WmNiconClick			"iconClick"
91 #define WmNiconDecoration		"iconDecoration"
92 #ifdef WSM
93 #define WmNiconExternalShadowWidth	"iconExternalShadowWidth"
94 #endif /* WSM */
95 #define WmNiconImageMaximum		"iconImageMaximum"
96 #define WmNiconImageMinimum		"iconImageMinimum"
97 #define WmNiconPlacement		"iconPlacement"
98 #define WmNiconPlacementMargin		"iconPlacementMargin"
99 #ifdef WSM
100 #define WmNimage			"image"
101 #define WmNimageBackground		"imageBackground"
102 #define WmNimageForeground		"imageForeground"
103 #endif /* WSM */
104 #define WmNinteractivePlacement		"interactivePlacement"
105 #define WmNkeyBindings			"keyBindings"
106 #define WmNkeyboardFocusPolicy		"keyboardFocusPolicy"
107 #define WmNlimitResize			"limitResize"
108 #define WmNlowerOnIconify		"lowerOnIconify"
109 #ifdef WSM
110 #define WmNmarqueeSelectGranularity	"marqueeSelectGranularity"
111 #endif /* WSM */
112 #define WmNmaximumMaximumSize		"maximumMaximumSize"
113 #define WmNmoveThreshold		"moveThreshold"
114 #define WmNmultiScreen			"multiScreen"
115 #define WmNpassButtons			"passButtons"
116 #define WmNpassSelectButton		"passSelectButton"
117 #define WmNpositionIsFrame		"positionIsFrame"
118 #define WmNpositionOnScreen		"positionOnScreen"
119 #define WmNquitTimeout			"quitTimeout"
120 #define WmNraiseKeyFocus		"raiseKeyFocus"
121 #ifdef WSM
122 #define WmNrefreshByClearing		"refreshByClearing"
123 #endif
124 #define WmNresizeBorderWidth		"resizeBorderWidth"
125 #define WmNresizeCursors		"resizeCursors"
126 #if ((!defined(WSM)) || defined(MWM_QATS_PROTOCOL))
127 # define WmNrootMenu			"rootMenu"
128 #endif /* !defined(WSM) || defined(MWM_QATS_PROTOCOL) */
129 #ifdef WSM
130 #define WmNrootButtonClick		"rootButtonClick"
131 #define WmNsecondariesOnTop		"secondariesOnTop"
132 #define WmNsessionVersion               "sessionVersion"
133 #endif /* WSM */
134 #ifndef WSM
135 #define WmNsessionClientDB		"sessionClientDB"
136 #endif /* ! WSM */
137 #define WmNshowFeedback			"showFeedback"
138 #ifdef WSM
139 #define WmNshowNames			"showNames"
140 #endif /* WSM */
141 #define WmNstartupKeyFocus		"startupKeyFocus"
142 #ifdef PANELIST
143 #define WmNsubpanelDecoration		"subpanelDecoration"
144 #define WmNsubpanelResources            "subpanelResources"
145 #endif /* PANELIST */
146 #define WmNsystemButtonClick		"wMenuButtonClick"
147 #define WmNsystemButtonClick2		"wMenuButtonClick2"
148 #define WmNtransientDecoration		"transientDecoration"
149 #define WmNtransientFunctions		"transientFunctions"
150 #ifdef PANELIST
151 #define WmNuseFrontPanel		"useFrontPanel"
152 #endif /* PANELIST */
153 #define WmNuseIconBox			"useIconBox"
154 #ifdef WSM
155 #define WmNuseWindowOutline		"useWindowOutline"
156 #endif /* WSM */
157 #ifdef MINIMAL_DT
158 #define WmNdtLite			"useDtLite"
159 #endif /* MINIMAL_DT */
160 #define WmNmoveOpaque                   "moveOpaque"
161 #define WmNframeStyle			"frameStyle"
162 
163 /* conponent appearance resources: */
164 
165 #define WmNactiveBackground		"activeBackground"
166 #define WmNactiveBackgroundPixmap	"activeBackgroundPixmap"
167 #define WmNactiveBottomShadowColor 	"activeBottomShadowColor"
168 #define WmNactiveBottomShadowPixmap	"activeBottomShadowPixmap"
169 #define WmNactiveForeground		"activeForeground"
170 #define WmNactiveTopShadowColor		"activeTopShadowColor"
171 #define WmNactiveTopShadowPixmap	"activeTopShadowPixmap"
172 #define WmNbackground			"background"
173 #define WmNbackgroundPixmap		"backgroundPixmap"
174 #define WmNbottomShadowColor 		"bottomShadowColor"
175 #define WmNbottomShadowPixmap		"bottomShadowPixmap"
176 #define WmNfont				"font"
177 #define WmNforeground			"foreground"
178 #define WmNsaveUnder			"saveUnder"
179 #define WmNtopShadowColor		"topShadowColor"
180 #define WmNtopShadowPixmap		"topShadowPixmap"
181 
182 /* mwm - client specific resources: */
183 
184 #ifdef WSM
185 #define WmNabsentMapBehavior		"absentMapBehavior"
186 #endif /* WSM */
187 #define WmNclientDecoration		"clientDecoration"
188 #define WmNclientFunctions		"clientFunctions"
189 #define WmNfocusAutoRaise		"focusAutoRaise"
190 #ifdef WSM
191 #define WmNhelpResources                "helpResources"
192 #endif /* WSM */
193 #define WmNiconImage			"iconImage"
194 #define WmNiconImageBackground		"iconImageBackground"
195 #define WmNiconImageBottomShadowColor	"iconImageBottomShadowColor"
196 #define WmNiconImageBottomShadowPixmap	"iconImageBottomShadowPixmap"
197 #define WmNiconImageForeground		"iconImageForeground"
198 #define WmNiconImageTopShadowColor	"iconImageTopShadowColor"
199 #define WmNiconImageTopShadowPixmap	"iconImageTopShadowPixmap"
200 #define WmNignoreWMSaveHints            "ignoreWMSaveHints"
201 #ifdef WSM
202 #define WmNinitialWorkspace             "initialWorkspace"
203 #endif /* WSM */
204 #define WmNmatteBackground		"matteBackground"
205 #define WmNmatteBottomShadowColor	"matteBottomShadowColor"
206 #define WmNmatteBottomShadowPixmap	"matteBottomShadowPixmap"
207 #define WmNmatteForeground		"matteForeground"
208 #define WmNmatteTopShadowColor		"matteTopShadowColor"
209 #define WmNmatteTopShadowPixmap		"matteTopShadowPixmap"
210 #define WmNmatteWidth			"matteWidth"
211 #define WmNmaximumClientSize		"maximumClientSize"
212 #define WmNscreenList			"screenList"
213 #define WmNscreens			"screens"
214 #define WmNsystemMenu			"windowMenu"
215 #define WmNuseClientIcon		"useClientIcon"
216 #define WmNusePPosition			"usePPosition"
217 #ifdef WSM
218 #define WmNworkspaceList	        "workspaceList"
219 #define WmNworkspaceCount	        "workspaceCount"
220 #endif /* WSM */
221 
222 /* window manager part resource names: */
223 
224 #define WmNclient			"client"
225 #define WmNfeedback			"feedback"
226 #define WmNicon				"icon"
227 #define WmNmenu				"menu"
228 #define WmNtitle			"title"
229 #define WmNdefaults			"defaults"
230 #ifdef WSM
231 #define WmNbackdrop			"backdrop"
232 #define WmNcolorSetId			"colorSetId"
233 #define WmNfrontPanel			"frontPanel"
234 #define WmNworkspaceController		"workspaceController"
235 #define WmNworkspacePresence		"workspacePresence"
236 #define WmNworkspaceSwitch		"workspaceSwitch"
237 #endif /* WSM */
238 
239 /* window manager client resource names: */
240 
241 #define WmNiconBox			"iconbox"
242 #define WmNconfirmbox			"confirmbox"
243 #ifdef WSM
244 #define WmNswitcher			"switcher"
245 #endif /* WSM */
246 
247 
248 
249 /*************************************<->*************************************
250  *
251  *  Window manager resource classes ...
252  *
253  *
254  *  Description:
255  *  -----------
256  *
257  *************************************<->***********************************/
258 
259 /* mwm specific appearance and behavior resources: */
260 
261 #define WmCAutoKeyFocus			"AutoKeyFocus"
262 #define WmCAutoRaiseDelay		"AutoRaiseDelay"
263 #ifdef WSM
264 #define WmCBackdropDirectories		"BackdropDirectories"
265 #endif /* WSM */
266 #define WmCBitmapDirectory		"BitmapDirectory"
267 #ifdef MINIMAL_DT
268 #define WmCBlinkOnExec			"BlinkOnExec"
269 #endif /* MINIMAL_DT */
270 #define WmCButtonBindings		"ButtonBindings"
271 #define WmCCleanText			"CleanText"
272 #define WmCClientAutoPlace		"ClientAutoPlace"
273 #define WmCColormapFocusPolicy		"ColormapFocusPolicy"
274 #define WmCConfigFile			"ConfigFile"
275 #ifdef WSM
276 #define WmCCppCommand			"CppCommand"
277 #endif /* WSM */
278 #define WmCDeiconifyKeyFocus		"DeiconifyKeyFocus"
279 #define WmCDoubleClickTime		"DoubleClickTime"
280 #define WmCEnableWarp			"EnableWarp"
281 #define WmCEnforceKeyFocus		"EnforceKeyFocus"
282 #define WmCFadeNormalIcon		"FadeNormalIcon"
283 #define WmCFeedbackGeometry		"FeedbackGeometry"
284 #define WmCFrameBorderWidth		"FrameBorderWidth"
285 #ifdef WSM
286 #define WmCFrameExternalShadowWidth	"FrameExternalShadowWidth"
287 #endif /* WSM */
288 #define WmCFreezeOnConfig		"FreezeOnConfig"
289 #ifdef WSM
290 #define WmCGeometry			"Geometry"
291 #endif /* WSM */
292 #define WmCIconAutoPlace		"IconAutoPlace"
293 #define WmCIconBoxGeometry		"IconBoxGeometry"
294 #define WmCIconBoxLayout		"IconBoxLayout"
295 #define WmCIconBoxName			"IconBoxName"
296 #define WmCIconBoxSBDisplayPolicy	"IconBoxSBDisplayPolicy"
297 #define WmCIconBoxScheme		"IconBoxScheme"
298 #define WmCIconBoxTitle			"IconBoxTitle"
299 #define WmCIconClick			"IconClick"
300 #define WmCIconDecoration		"IconDecoration"
301 #ifdef WSM
302 #define WmCIconExternalShadowWidth	"IconExternalShadowWidth"
303 #endif /* WSM */
304 #define WmCIconImageMaximum		"IconImageMaximum"
305 #define WmCIconImageMinimum		"IconImageMinimum"
306 #define WmCIconPlacement		"IconPlacement"
307 #define WmCIconPlacementMargin		"IconPlacementMargin"
308 #ifdef WSM
309 #define WmCImage			"Image"
310 #define WmCImageBackground		"ImageBackground"
311 #define WmCImageForeground		"ImageForeground"
312 #endif /* WSM */
313 #define WmCInteractivePlacement		"InteractivePlacement"
314 #define WmCKeyBindings			"KeyBindings"
315 #define WmCKeyboardFocusPolicy		"KeyboardFocusPolicy"
316 #define WmCLimitResize			"LimitResize"
317 #define WmCLowerOnIconify		"LowerOnIconify"
318 #ifdef WSM
319 #define WmCMarqueeSelectGranularity	"MarqueeSelectGranularity"
320 #endif /* WSM */
321 #define WmCMaximumMaximumSize		"MaximumMaximumSize"
322 #define WmCMoveThreshold		"MoveThreshold"
323 #define WmCMultiScreen			"MultiScreen"
324 #define WmCPassButtons			"PassButtons"
325 #define WmCPassSelectButton		"PassSelectButton"
326 #define WmCPositionIsFrame		"PositionIsFrame"
327 #define WmCPositionOnScreen		"PositionOnScreen"
328 #define WmCQuitTimeout			"QuitTimeout"
329 #define WmCRaiseKeyFocus		"RaiseKeyFocus"
330 #ifdef WSM
331 #define WmCRefreshByClearing		"RefreshByClearing"
332 #endif
333 #define WmCResizeBorderWidth		"ResizeBorderWidth"
334 #define WmCResizeCursors		"ResizeCursors"
335 #if ((!defined(WSM)) || defined(MWM_QATS_PROTOCOL))
336 # define WmCRootMenu			"RootMenu"
337 #endif /* !defined(WSM) || defined(MWM_QATS_PROTOCOL) */
338 #ifdef WSM
339 #define WmCRootButtonClick		"RootButtonClick"
340 #define WmCSecondariesOnTop		"SecondariesOnTop"
341 #define WmCSessionVersion               "SessionVersion"
342 #endif /* WSM */
343 #ifndef WSM
344 #define WmCSessionClientDB		"SessionClientDB"
345 #endif /* ! WSM */
346 #define WmCScreenList			"ScreenList"
347 #define WmCScreens			"Screens"
348 #define WmCShowFeedback			"ShowFeedback"
349 #ifdef WSM
350 #define WmCShowNames			"ShowNames"
351 #endif /* WSM */
352 #define WmCStartupKeyFocus		"StartupKeyFocus"
353 #ifdef PANELIST
354 #define WmCSubpanelDecoration		"SubpanelDecoration"
355 #define WmCSubpanelResources            "SubpanelResources"
356 #endif /* PANELIST */
357 #define WmCSystemButtonClick		"WMenuButtonClick"
358 #define WmCSystemButtonClick2		"WMenuButtonClick2"
359 #define WmCTransientDecoration		"TransientDecoration"
360 #define WmCTransientFunctions		"TransientFunctions"
361 #ifdef PANELIST
362 #define WmCUseFrontPanel		"UseFrontPanel"
363 #endif /* PANELIST */
364 #define WmCUseIconBox			"UseIconBox"
365 #ifdef WSM
366 #define WmCUseWindowOutline		"UseWindowOutline"
367 #endif /* WSM */
368 #ifdef MINIMAL_DT
369 #define WmCDtLite			"UseDtLite"
370 #endif /* MINIMAL_DT */
371 #define WmCMoveOpaque                   "MoveOpaque"
372 #define WmCFrameStyle			"FrameStyle"
373 #ifdef WSM
374 #define WmCWorkspaceList	        "WorkspaceList"
375 #define WmCWorkspaceCount	        "WorkspaceCount"
376 #endif /* WSM */
377 
378 /* component appearance resources: */
379 
380 #define WmCActiveBackground		"ActiveBackground"
381 #define WmCActiveBackgroundPixmap	"ActiveBackgroundPixmap"
382 #define WmCActiveBottomShadowColor 	"ActiveBottomShadowColor"
383 #define WmCActiveBottomShadowPixmap	"ActiveBottomShadowPixmap"
384 #define WmCActiveForeground		"ActiveForeground"
385 #define WmCActiveTopShadowColor		"ActiveTopShadowColor"
386 #define WmCActiveTopShadowPixmap	"ActiveTopShadowPixmap"
387 #define WmCBackground			"Background"
388 #define WmCBackgroundPixmap		"BackgroundPixmap"
389 #define WmCBottomShadowColor 		"BottomShadowColor"
390 #define WmCBottomShadowPixmap		"BottomShadowPixmap"
391 #define WmCFont				"Font"
392 #define WmCForeground			"Foreground"
393 #define WmCSaveUnder			"SaveUnder"
394 #define WmCTopShadowColor		"TopShadowColor"
395 #define WmCTopShadowPixmap		"TopShadowPixmap"
396 
397 /* mwm - client specific resources: */
398 
399 #ifdef WSM
400 #define WmCAbsentMapBehavior		"AbsentMapBehavior"
401 #endif /* WSM */
402 #define WmCClientDecoration		"ClientDecoration"
403 #define WmCClientFunctions		"ClientFunctions"
404 #define WmCFocusAutoRaise		"FocusAutoRaise"
405 #ifdef WSM
406 #define WmCHelpResources                "HelpResources"
407 #endif /* WSM */
408 #define WmCIconImage			"IconImage"
409 #define WmCIconImageBackground		"IconImageBackground"
410 #define WmCIconImageBottomShadowColor	"IconImageBottomShadowColor"
411 #define WmCIconImageBottomShadowPixmap	"IconImageBottomShadowPixmap"
412 #define WmCIconImageForeground		"IconImageForeground"
413 #define WmCIconImageTopShadowColor	"IconImageTopShadowColor"
414 #define WmCIconImageTopShadowPixmap	"IconImageTopShadowPixmap"
415 #define WmCIgnoreWMSaveHints            "IgnoreWMSaveHints"
416 #ifdef WSM
417 #define WmCInitialWorkspace             "InitialWorkspace"
418 #endif /* WSM */
419 #define WmCMatteBackground		"MatteBackground"
420 #define WmCMatteBottomShadowColor	"MatteBottomShadowColor"
421 #define WmCMatteBottomShadowPixmap	"MatteBottomShadowPixmap"
422 #define WmCMatteForeground		"MatteForeground"
423 #define WmCMatteTopShadowColor		"MatteTopShadowColor"
424 #define WmCMatteTopShadowPixmap		"MatteTopShadowPixmap"
425 #define WmCMatteWidth			"MatteWidth"
426 #define WmCMaximumClientSize		"MaximumClientSize"
427 #define WmCSystemMenu			"WindowMenu"
428 #define WmCUseClientIcon		"UseClientIcon"
429 #define WmCUsePPosition			"UsePPosition"
430 
431 /* window manager part resource names: */
432 
433 #define WmCClient			"Client"
434 #define WmCFeedback			"Feedback"
435 #define WmCIcon				"Icon"
436 #define WmCMenu				"Menu"
437 #define WmCTitle			"Title"
438 #define WmCDefaults			"Defaults"
439 #ifdef WSM
440 #define WmCBackdrop			"Backdrop"
441 #define WmCColorSetId			"ColorSetId"
442 #define WmCFrontPanel			"FrontPanel"
443 #define WmCWorkspaceController		"WorkspaceController"
444 #define WmCWorkspacePresence		"WorkspacePresence"
445 #define WmCWorkspaceSwitch		"WorkspaceSwitch"
446 #endif /* WSM */
447 
448 /* window manager client resource names: */
449 
450 #define WmCIconBox			"Iconbox"
451 #define WmCConfirmbox			"Confirmbox"
452 #ifdef WSM
453 #define WmCSwitcher			"Switcher"
454 #endif /* WSM */
455 
456 
457 
458 /*************************************<->*************************************
459  *
460  *  Window manager resource converter names ...
461  *
462  *
463  *  Description:
464  *  -----------
465  *
466  *************************************<->***********************************/
467 
468 #ifdef WSM
469 #define WmRAbsentMapBehavior            "WmAMBehavior"
470 #endif /* WSM */
471 #define WmRCFocusPolicy			"WmCFocus"
472 #define WmRClientDecor			"WmCDecor"
473 #define WmRClientFunction		"WmCFunc"
474 #define WmRFrameStyle			"WmFrameStyle"
475 #define WmRIconBoxLayout		"WmIBLayout"
476 #define WmRIconDecor			"WmIDecor"
477 #define WmRIconPlacement		"WmIPlace"
478 #define WmRKFocusPolicy			"WmKFocus"
479 #define WmRSize				"WmSize"
480 #define WmRShowFeedback			"WmShowFeedback"
481 #define WmRUsePPosition			"WmUsePPosition"
482 
483 
484 
485 /*************************************<->*************************************
486  *
487  *  Window manager resource set definitions and default resource values ...
488  *
489  *
490  *  Description:
491  *  -----------
492  *
493  *************************************<->***********************************/
494 
495 
496 
497 
498 /*************************************<->*************************************
499  *
500  *  Mwm resource description file definitions ...
501  *
502  *
503  *  Description:
504  *  -----------
505  *
506  *************************************<->***********************************/
507 
508 /* Configuration resource types: */
509 
510 #define CRS_BUTTON		(1L << 0)
511 #define CRS_KEY			(1L << 1)
512 #define CRS_MENU		(1L << 2)
513 #define CRS_ACCEL		(1L << 3)
514 #define CRS_ANY			(CRS_BUTTON | CRS_KEY | CRS_MENU | CRS_ACCEL)
515 
516 #ifdef PANELIST
517 #define WmNhelpDirectory		     "helpDirectory"
518 
519 #define WmCHelpDirectory		     "HelpDirectory"
520 #endif /* PANELIST */
521 #ifdef WSM
522 /**************************    eof  ************************/
523 #endif /* WSM */
524